about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--020run.cc6
-rw-r--r--038scheduler.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/020run.cc b/020run.cc
index 9f0a5c00..d100b140 100644
--- a/020run.cc
+++ b/020run.cc
@@ -152,14 +152,14 @@ if (argc > 1) {
   }
   transform_all();
 //?   dump_recipe("handle-keyboard-event"),  exit(0);
-  if (Run_tests) Recipe.erase(get(Recipe_ordinal, string("main")));
+  if (Run_tests) Recipe.erase(get(Recipe_ordinal, "main"));
   // End Loading .mu Files
 }
 
 //: Step 3: if we aren't running tests, locate a recipe called 'main' and
 //: start running it.
 :(before "End Main")
-if (!Run_tests && contains_key(Recipe_ordinal, string("main")) && contains_key(Recipe, get(Recipe_ordinal, string("main")))) {
+if (!Run_tests && contains_key(Recipe_ordinal, "main") && contains_key(Recipe, get(Recipe_ordinal, "main"))) {
   setup();
 //?   Trace_file = "interactive";
 //?   START_TRACING_UNTIL_END_OF_SCOPE;
@@ -170,7 +170,7 @@ if (!Run_tests && contains_key(Recipe_ordinal, string("main")) && contains_key(R
 
 :(code)
 void run_main(int argc, char* argv[]) {
-  recipe_ordinal r = get(Recipe_ordinal, string("main"));
+  recipe_ordinal r = get(Recipe_ordinal, "main");
   if (r) run(r);
 }
 
diff --git a/038scheduler.cc b/038scheduler.cc
index 34a6df8d..c6f903d9 100644
--- a/038scheduler.cc
+++ b/038scheduler.cc
@@ -111,7 +111,7 @@ Current_routine = NULL;
 //: special case for the very first routine
 :(replace{} "void run_main(int argc, char* argv[])")
 void run_main(int argc, char* argv[]) {
-  recipe_ordinal r = get(Recipe_ordinal, string("main"));
+  recipe_ordinal r = get(Recipe_ordinal, "main");
   if (r) {
     routine* main_routine = new routine(r);
     // Update main_routine