ref: 68258c2a3d9ec811eaf4590d917d90666d549eb1
parent: 8b00f72b25f932c65f7b3f54ca5f94742d0d00be
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Sep 25 13:40:51 EDT 2015
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.
--- 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
--- 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
*/