about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-05 17:17:43 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-05 17:17:43 -0700
commitca12558ef7f0678cd7b4aee9e8dda459e61f1bc1 (patch)
tree1a5b955c214c8e5b099e6f6ec6ca141e909a15aa /cpp
parentf1f8cadf10bfa234819cbe55234358fd1c886ce7 (diff)
downloadmu-ca12558ef7f0678cd7b4aee9e8dda459e61f1bc1.tar.gz
1264
Diffstat (limited to 'cpp')
-rw-r--r--cpp/010vm.cc10
-rw-r--r--cpp/030container.cc4
-rw-r--r--cpp/034exclusive_container.cc2
3 files changed, 8 insertions, 8 deletions
diff --git a/cpp/010vm.cc b/cpp/010vm.cc
index 7df0e03e..12558073 100644
--- a/cpp/010vm.cc
+++ b/cpp/010vm.cc
@@ -81,18 +81,18 @@ void setup_types() {
   Type_number["literal"] = 0;
   Next_type_number = 1;
   // Mu Types Initialization
-  int integer = Type_number["integer"] = Next_type_number++;
+  type_number integer = Type_number["integer"] = Next_type_number++;
   Type_number["location"] = Type_number["integer"];  // wildcard type: either a pointer or a scalar
   Type[integer].name = "integer";
-  int address = Type_number["address"] = Next_type_number++;
+  type_number address = Type_number["address"] = Next_type_number++;
   Type[address].name = "address";
-  int boolean = Type_number["boolean"] = Next_type_number++;
+  type_number boolean = Type_number["boolean"] = Next_type_number++;
   Type[boolean].name = "boolean";
-  int character = Type_number["character"] = Next_type_number++;
+  type_number character = Type_number["character"] = Next_type_number++;
   Type[character].name = "character";
   // Array types are a special modifier to any other type. For example,
   // array:integer or array:address:boolean.
-  int array = Type_number["array"] = Next_type_number++;
+  type_number array = Type_number["array"] = Next_type_number++;
   Type[array].name = "array";
   // End Mu Types Initialization
 }
diff --git a/cpp/030container.cc b/cpp/030container.cc
index 51d2fdde..0572b693 100644
--- a/cpp/030container.cc
+++ b/cpp/030container.cc
@@ -2,7 +2,7 @@
 
 :(before "End Mu Types Initialization")
 //: We'll use this container as a running example, with two integer elements.
-int point = Type_number["point"] = Next_type_number++;
+type_number point = Type_number["point"] = Next_type_number++;
 Type[point].size = 2;
 Type[point].kind = container;
 Type[point].name = "point";
@@ -28,7 +28,7 @@ recipe main [
 :(before "End Mu Types Initialization")
 // A more complex container, containing another container as one of its
 // elements.
-int point_integer = Type_number["point-integer"] = Next_type_number++;
+type_number point_integer = Type_number["point-integer"] = Next_type_number++;
 Type[point_integer].size = 2;
 Type[point_integer].kind = container;
 Type[point_integer].name = "point-integer";
diff --git a/cpp/034exclusive_container.cc b/cpp/034exclusive_container.cc
index b0edebfa..9b8c4b7f 100644
--- a/cpp/034exclusive_container.cc
+++ b/cpp/034exclusive_container.cc
@@ -7,7 +7,7 @@
 :(before "End Mu Types Initialization")
 //: We'll use this container as a running example, with two integer elements.
 {
-int tmp = Type_number["integer-or-point"] = Next_type_number++;
+type_number tmp = Type_number["integer-or-point"] = Next_type_number++;
 Type[tmp].size = 2;
 Type[tmp].kind = exclusive_container;
 Type[tmp].name = "integer-or-point";