about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--050scenario.cc2
-rw-r--r--makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/050scenario.cc b/050scenario.cc
index 5b444ab3..cfaedc24 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -170,7 +170,7 @@ recipe scenario-foo [
 +warn: redefining recipe scenario-foo
 
 :(after "bool warn_on_redefine(const string& recipe_name)")
-if (recipe_name.find("scenario-") == 0) return true;
+  if (recipe_name.find("scenario-") == 0) return true;
 
 //:: The special instructions we want to support inside scenarios.
 //: In a compiler for the mu VM these will require more work.
diff --git a/makefile b/makefile
index a46a9c41..27d4cbd6 100644
--- a/makefile
+++ b/makefile
@@ -30,8 +30,8 @@ autogenerated_lists: mu.cc function_list test_list
 # autogenerated list of function declarations, so I can define them in any order
 function_list: mu.cc
 	@# functions start out unindented, have all args on the same line, and end in ') {'
-	@#                                    ignore methods
-	@grep -h "^[^[:space:]#].*) {" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list
+	@#                                      ignore methods
+	@grep -h "^[^[:space:]#].*) {$$" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list
 	@# occasionally we need to modify a declaration in a later layer without messing with ugly unbalanced brackets
 	@# assume such functions move the '{' to column 0 of the very next line
 	@grep -v "^#line" mu.cc |grep -B1 "^{" |grep -v "^{" |perl -pwe 's/$$/;/' >> function_list