diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-06 08:33:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-06 08:33:15 -0700 |
commit | 43b866d1997e82bfebd6c40881e33a0edd2bf340 (patch) | |
tree | 565c40a8dce9d5b831c38b5c6c3800873090dfd4 /043space.cc | |
parent | 3473c63ad94756d6f79ddd5c48813e79d87429ca (diff) | |
download | mu-43b866d1997e82bfebd6c40881e33a0edd2bf340.tar.gz |
2932
More consistent labeling of waypoints. Use types only when you need to distinguish between function overloadings. Otherwise just use variable names unless it's truly not apparent what they are (like that the result is a recipe in "End Rewrite Instruction").
Diffstat (limited to '043space.cc')
-rw-r--r-- | 043space.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/043space.cc b/043space.cc index e4a39b7c..936f552d 100644 --- a/043space.cc +++ b/043space.cc @@ -82,7 +82,7 @@ int address(int offset, int base) { //:: reads and writes to the 'default-space' variable have special behavior -:(after "Begin Preprocess write_memory(reagent x, vector<double> data)") +:(after "Begin Preprocess write_memory(x, data)") if (x.name == "default-space") { if (!scalar(data) || !x.type @@ -105,7 +105,7 @@ def main [ ] +mem: storing 10 in location 1 -:(after "Begin Preprocess read_memory(reagent x)") +:(after "Begin Preprocess read_memory(x)") if (x.name == "default-space") { vector<double> result; result.push_back(current_call().default_space); @@ -178,7 +178,7 @@ if (s == "number-of-locals") return true; if (curr.name == "new-default-space") { rewrite_default_space_instruction(curr); } -:(after "Begin Preprocess read_memory(reagent x)") +:(after "Begin Preprocess read_memory(x)") if (x.name == "number-of-locals") { vector<double> result; result.push_back(Name[get(Recipe_ordinal, current_recipe_name())][""]); @@ -186,7 +186,7 @@ if (x.name == "number-of-locals") { raise << "no space allocated for default-space in recipe " << current_recipe_name() << "; are you using names?\n" << end(); return result; } -:(after "Begin Preprocess write_memory(reagent x, vector<double> data)") +:(after "Begin Preprocess write_memory(x, data)") if (x.name == "number-of-locals") { raise << maybe(current_recipe_name()) << "can't write to special name 'number-of-locals'\n" << end(); return; |