diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-26 20:50:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-26 20:50:56 -0700 |
commit | f48f6c143583d809984d8f3b902a99c00ba8a4a4 (patch) | |
tree | 9245a8d839da217a4fe57f3d8be141042c6f6ad1 /cpp/010vm | |
parent | 3076bab4b62ce2b56c53db6d0b1715429c5bda27 (diff) | |
download | mu-f48f6c143583d809984d8f3b902a99c00ba8a4a4.tar.gz |
980
Diffstat (limited to 'cpp/010vm')
-rw-r--r-- | cpp/010vm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/010vm b/cpp/010vm index 1d45f157..1a33fe50 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -82,13 +82,10 @@ void setup_types() { Next_type_number = 1; // Mu Types Initialization. int integer = Type_number["integer"] = Next_type_number++; - Type[integer].size = 1; Type[integer].name = "integer"; int address = Type_number["address"] = Next_type_number++; - Type[address].size = 1; Type[address].name = "address"; int boolean = Type_number["boolean"] = Next_type_number++; - Type[boolean].size = 1; Type[boolean].name = "boolean"; // End Mu Types Initialization. } @@ -104,14 +101,14 @@ void setup_types() { // high scores in a game might need an array of numbers. struct type_info { string name; - size_t size; bool is_record; bool is_array; + size_t size; // only if is_record 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() :size(0), is_record(false), is_array(false) {} + type_info() :is_record(false), is_array(false), size(0) {} }; :(before "End Globals") |