scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 5afd8ffd00a8843c2d0983dbf3a24c4aa73589dd
parent ce7d1c12da13b469b23887720b5e4cd847f1a1c2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Apr 2014 22:24:14 +0200

Remove POINTER and PTYPE() macros

These macros are no longer valid because
isaddr() was already deleted.

Diffstat:
Mcc.h | 23++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/cc.h b/cc.h @@ -127,9 +127,6 @@ extern Type *voidtype, *pvoidtype, *booltype, (TQUALIFIER|CONST)) -#define POINTER 32 -#define PTYPE(x) (POINTER| (x)) - #define FTN 1 #define ENUM 2 #define TYPENAME 3 @@ -142,18 +139,18 @@ extern Type *voidtype, *pvoidtype, *booltype, #define STRUCT 8 #define UNION 9 -#define PTR PTYPE(1) -#define ARY PTYPE(2) +#define PTR 10 +#define ARY 11 -#define CHAR (ARY+1) -#define DOUBLE (ARY+2) -#define SHORT (ARY+3) -#define LONG (ARY+4) +#define CHAR 12 +#define DOUBLE 13 +#define SHORT 14 +#define LONG 15 -#define COMPLEX (ARY+5) -#define IMAGINARY (ARY+6) -#define UNSIGNED (ARY+7) -#define SIGNED (ARY+8) +#define COMPLEX 16 +#define IMAGINARY 17 +#define UNSIGNED 18 +#define SIGNED 19 #define CONST (1<<0) #define VOLATILE (1<<1)