shithub: scc

Download patch

ref: 91cc5b95f08b79cefba27608f1ad94874ba34064
parent: a1f4b88d0fd4e5d3b1b537f69db56fc282a2964f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jan 22 11:53:21 EST 2016

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

--- 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
--- a/inc/cc.h
+++ b/inc/cc.h
@@ -24,8 +24,13 @@
 #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 @@
 #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, ...);