about summary refs log tree commit diff stats
path: root/cpp/010vm
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-26 21:47:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-26 21:47:29 -0700
commit7e9c69251b700dbdec47dee47f37ba1194ad88e9 (patch)
tree9ba03cb52d5318f3f66de65887520ce92fc30345 /cpp/010vm
parentf608504a44b9b47682f336f5b6357b8993d9bb0d (diff)
downloadmu-7e9c69251b700dbdec47dee47f37ba1194ad88e9.tar.gz
983 - arc 'integer-array' => c++ 'array:integer'
Diffstat (limited to 'cpp/010vm')
-rw-r--r--cpp/010vm6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/010vm b/cpp/010vm
index c54e5441..c3f3286d 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -86,6 +86,8 @@ void setup_types() {
   Type[address].name = "address";
   int boolean = Type_number["boolean"] = Next_type_number++;
   Type[boolean].name = "boolean";
+  int array = Type_number["array"] = Next_type_number++;
+  Type[array].name = "array";
   // End Mu Types Initialization.
 }
 :(before "End Setup")
@@ -101,13 +103,11 @@ void setup_types() {
 struct type_info {
   string name;
   bool is_record;
-  bool is_array;
   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
-  vector<type_number> element;  // only if is_array
   // End type_info Fields.
-  type_info() :is_record(false), is_array(false), size(0) {}
+  type_info() :is_record(false), size(0) {}
 };
 
 :(before "End Globals")