scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 729956f2a8ef3dc646ba92cfc5ad1d52f9c6c73e
parent c58da86b07e75bb748a45db71fcf8f0daf38995f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Apr 2014 22:17:53 +0200

Remove ARITH and ATYPE() macros

These macros  were written only to allow
the macro isarith(), but this macro is no longer
valid, so they can be deleted.

Diffstat:
cc.h | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/cc.h b/cc.h @@ -128,10 +128,8 @@ extern Type *voidtype, *pvoidtype, *booltype, (TQUALIFIER|CONST)) -#define ARITH 8 #define RECORD 16 #define POINTER 32 -#define ATYPE(x) (ARITH | (x)) #define RTYPE(x) (RECORD | (x)) #define PTYPE(x) (POINTER| (x)) @@ -140,9 +138,9 @@ extern Type *voidtype, *pvoidtype, *booltype, #define TYPENAME 3 #define VOID 4 -#define FLOAT ATYPE(1) -#define INT ATYPE(2) -#define BOOL ATYPE(3) +#define FLOAT 5 +#define INT 6 +#define BOOL 7 #define STRUCT RTYPE(1) #define UNION RTYPE(2)