ref: a907607678ffea129a5fc8c5ac8f79f76b8bdc18
parent: c547475936a45e80b96c6346217c925c5637e318
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Apr 16 18:39:41 EDT 2014
Replace type macros by enum constants The old macros are no longer needed, so there is no reason to avoid a enum change.
--- a/cc.h
+++ b/cc.h
@@ -127,29 +127,11 @@
(TQUALIFIER|CONST))
-#define FTN 1
-#define ENUM 2
-#define TYPENAME 3
-#define VOID 4
-
-#define FLOAT 5
-#define INT 6
-#define BOOL 7
-
-#define STRUCT 8
-#define UNION 9
-
-#define PTR 10
-#define ARY 11
-
-#define CHAR 12
-#define DOUBLE 13
-#define SHORT 14
-#define LONG 15
-
-#define COMPLEX 16
-#define UNSIGNED 17
-#define SIGNED 18
+enum {
+ FTN = 1, ENUM, TYPENAME, VOID, FLOAT, INT, BOOL,
+ STRUCT, UNION, PTR, ARY, CHAR, DOUBLE, SHORT,
+ LONG, COMPLEX, UNSIGNED, SIGNED
+};
#define CONST (1<<0)
#define VOLATILE (1<<1)