summary refs log tree commit diff
path: root/all.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-14 13:10:02 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-14 13:10:02 -0500
commit249af91ff9d9ffbd8962efcad999de442e609658 (patch)
tree0277b75b9175ba4db808c303ca10819bd0f2b1a1 /all.h
parentb698584443f17b8d0cfd88e0afe037ce351e0ee6 (diff)
downloadroux-249af91ff9d9ffbd8962efcad999de442e609658.tar.gz
minor cleanup in all.h
Diffstat (limited to 'all.h')
-rw-r--r--all.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/all.h b/all.h
index d13ef5c..a038612 100644
--- a/all.h
+++ b/all.h
@@ -9,7 +9,6 @@
 #define die(...) die_(__FILE__, __VA_ARGS__)
 
 typedef unsigned int uint;
-typedef unsigned short ushort;
 typedef unsigned long ulong;
 typedef unsigned long long bits;
 
@@ -101,8 +100,8 @@ struct BSet {
 };
 
 struct Ref {
-	uint32_t type:3;
-	uint32_t val:29;
+	uint type:3;
+	uint val:29;
 };
 
 enum {
@@ -456,14 +455,13 @@ struct Typ {
 	int align;
 	size_t size;
 	int nunion;
-
 	struct Seg {
 		enum {
-			Send,
-			Spad,
-			Sint,
-			Sflt,
-			Styp,
+			SEnd,
+			SPad,
+			SInt,
+			SFlt,
+			STyp,
 		} type;
 		uint len; /* index in typ[] for Styp */
 	} (*seg)[NSeg+1];