From 43b866d1997e82bfebd6c40881e33a0edd2bf340 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 6 May 2016 08:33:15 -0700 Subject: 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"). --- 043space.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '043space.cc') 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 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 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 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 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; -- cgit 1.4.1-2-gfad0