about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-24 14:19:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-24 14:19:52 -0700
commit793fcf5fcea2e218fbc7fa356019399b26f005f8 (patch)
tree6b44228eaf137023e0144607e00400e5a96ade37
parent91e4967619e66ac17da37f135c8ce6a26632d40c (diff)
downloadmu-793fcf5fcea2e218fbc7fa356019399b26f005f8.tar.gz
2067
-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