scc

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

commit 91cc5b95f08b79cefba27608f1ad94874ba34064
parent a1f4b88d0fd4e5d3b1b537f69db56fc282a2964f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 22 Jan 2016 16:53:21 +0100

Move no architecture types to cc.h

These types are going to be repeated all the time
in all the different architectures, so it is a
better idea putting them in a cc.h

Diffstat:
cc1/arch/z80/arch.h | 4----
inc/cc.h | 9++++++++-
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/cc1/arch/z80/arch.h b/cc1/arch/z80/arch.h @@ -30,8 +30,4 @@ #define L_ULONG L_UINT32 #define L_LLONG L_INT64 #define L_ULLONG L_UINT64 -#define L_BOOL 'B' -#define L_FLOAT 'J' -#define L_DOUBLE 'D' -#define L_LDOUBLE 'H' #define L_ENUM L_INT diff --git a/inc/cc.h b/inc/cc.h @@ -24,8 +24,13 @@ extern int debug; #define L_UINT16 'N' #define L_UINT32 'Z' #define L_UINT64 'O' -#define L_ELLIPSIS 'E' +#define L_BOOL 'B' + +#define L_FLOAT 'J' +#define L_DOUBLE 'D' +#define L_LDOUBLE 'H' +#define L_ELLIPSIS 'E' #define L_VOID '0' #define L_POINTER 'P' #define L_FUNCTION 'F' @@ -40,6 +45,8 @@ extern int debug; #define L_FIELD 'M' #define L_AUTO 'A' #define L_EXTERN 'X' +#define L_LABEL 'L' + #define L_NAME '"' extern void die(const char *fmt, ...);