diff options
Diffstat (limited to 'cpp/010vm')
-rw-r--r-- | cpp/010vm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/010vm b/cpp/010vm index abb53732..d6eead5e 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -79,7 +79,7 @@ void setup_types() { Type.clear(); Type_number.clear(); Type_number["literal"] = 0; Next_type_number = 1; - // Mu Types Initialization. + // Mu Types Initialization int integer = Type_number["integer"] = Next_type_number++; Type_number["location"] = Type_number["integer"]; // wildcard type Type[integer].name = "integer"; @@ -91,7 +91,7 @@ void setup_types() { Type[character].name = "character"; int array = Type_number["array"] = Next_type_number++; Type[array].name = "array"; - // End Mu Types Initialization. + // End Mu Types Initialization } :(before "End One-time Setup") setup_types(); @@ -109,7 +109,7 @@ struct type_info { size_t size; // only if is_record; primitives and addresses have size 1 while arrays are dynamic vector<vector<type_number> > elements; // only if is_record vector<string> element_names; // only if is_record - // End type_info Fields. + // End type_info Fields type_info() :is_record(false), size(0) {} }; @@ -127,11 +127,11 @@ void setup_recipes() { Recipe_number["idle"] = IDLE; assert(Next_recipe_number == IDLE); Next_recipe_number++; - // Primitive Recipe Numbers. + // Primitive Recipe Numbers Recipe_number["copy"] = COPY; assert(Next_recipe_number == COPY); Next_recipe_number++; - // End Primitive Recipe Numbers. + // End Primitive Recipe Numbers } //: We could just reset the recipe table after every test, but that gets slow //: all too quickly. Instead, initialize the common stuff just once at |