scc

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

commit 68258c2a3d9ec811eaf4590d917d90666d549eb1
parent 8b00f72b25f932c65f7b3f54ca5f94742d0d00be
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 25 Sep 2015 17:40:51 +0200

Move rank type definition to cc1.h

These values are not going to change between different
architectures, because they are defined in c99 standard
in a way that they don't depend of the phisical
representation of the type.

Diffstat:
Mcc1/arch/z80/arch.h | 16----------------
Mcc1/cc1.h | 16++++++++++++++++
2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/cc1/arch/z80/arch.h b/cc1/arch/z80/arch.h @@ -3,22 +3,6 @@ #define TUINT unsigned long long #define TFLOAT double -#define RANK_BOOL 0 -#define RANK_SCHAR 1 -#define RANK_UCHAR 2 -#define RANK_CHAR 3 -#define RANK_SHORT 4 -#define RANK_USHORT 5 -#define RANK_INT 6 -#define RANK_UINT 7 -#define RANK_LONG 8 -#define RANK_ULONG 9 -#define RANK_LLONG 10 -#define RANK_ULLONG 11 -#define RANK_FLOAT 12 -#define RANK_DOUBLE 13 -#define RANK_LDOUBLE 15 - #define L_SCHAR L_INT8 #define L_UCHAR L_UINT8 #define L_CHAR L_UINT8 diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -8,6 +8,22 @@ #define GLOBALCTX 0 +#define RANK_BOOL 0 +#define RANK_SCHAR 1 +#define RANK_UCHAR 2 +#define RANK_CHAR 3 +#define RANK_SHORT 4 +#define RANK_USHORT 5 +#define RANK_INT 6 +#define RANK_UINT 7 +#define RANK_LONG 8 +#define RANK_ULONG 9 +#define RANK_LLONG 10 +#define RANK_ULLONG 11 +#define RANK_FLOAT 12 +#define RANK_DOUBLE 13 +#define RANK_LDOUBLE 15 + /* * Definition of structures */