From 53a569b8ee7960fb2c648374f746af167ed7ef68 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 8 Apr 2015 11:17:00 -0700 Subject: 1043 - clean up indent in generated mu.cc --- cpp/002trace | 4 ++-- cpp/010vm | 18 +++++++++--------- cpp/024brace | 2 +- cpp/025name | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cpp/002trace b/cpp/002trace index 68b73def..3a25502f 100644 --- a/cpp/002trace +++ b/cpp/002trace @@ -205,8 +205,8 @@ struct lease_tracer { #define START_TRACING_UNTIL_END_OF_SCOPE lease_tracer leased_tracer; :(before "End Test Setup") - START_TRACING_UNTIL_END_OF_SCOPE -//? Trace_stream->dump_layer = "all"; //? 1 +START_TRACING_UNTIL_END_OF_SCOPE +//? Trace_stream->dump_layer = "all"; //? 1 :(before "End Tracing") void trace_all(const string& label, const list& in) { diff --git a/cpp/010vm b/cpp/010vm index 826c2069..a21655ed 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -58,7 +58,7 @@ struct property { // Locations refer to a common 'memory'. Each location can store a number. unordered_map Memory; :(before "End Setup") - Memory.clear(); +Memory.clear(); :(after "Types") // Mu types encode how the numbers stored in different parts of memory are @@ -94,7 +94,7 @@ void setup_types() { // End Mu Types Initialization. } :(before "End One-time Setup") - setup_types(); +setup_types(); :(before "End Types") // You can construct arbitrary new types. Types are either 'records', containing @@ -138,14 +138,14 @@ void setup_recipes() { //: startup. Later layers will carefully undo each test's additions after //: itself. :(before "End One-time Setup") - setup_recipes(); - // End Load Recipes - // give tests a consistent starting point - assert(Next_recipe_number < 100); - Next_recipe_number = 100; - delete Trace_stream; Trace_stream = new trace_stream; +setup_recipes(); +// End Load Recipes +// give tests a consistent starting point +assert(Next_recipe_number < 100); +Next_recipe_number = 100; +delete Trace_stream; Trace_stream = new trace_stream; :(before "End Setup") - Next_recipe_number = 100; // consistent new numbers for each test +Next_recipe_number = 100; // consistent new numbers for each test diff --git a/cpp/024brace b/cpp/024brace index a0f4aa29..0d68b54f 100644 --- a/cpp/024brace +++ b/cpp/024brace @@ -33,7 +33,7 @@ recipe main [ //: one-time setup :(after "int main") -Transform.push_back(transform_braces); + Transform.push_back(transform_braces); :(code) void transform_braces(const recipe_number r) { diff --git a/cpp/025name b/cpp/025name index 83103f1f..c1992506 100644 --- a/cpp/025name +++ b/cpp/025name @@ -19,7 +19,7 @@ recipe main [ +warn: use before set: y in main :(after "int main") -Transform.push_back(transform_names); + Transform.push_back(transform_names); :(before "End Globals") unordered_map > Name; -- cgit 1.4.1-2-gfad0