[hackers] [scc] Move no architecture types to cc.h || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 22 Jan 2016 18:40:59 +0100 (CET)

commit 91cc5b95f08b79cefba27608f1ad94874ba34064
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 22 16:53:21 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 22 17:14:39 2016 +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

diff --git a/cc1/arch/z80/arch.h b/cc1/arch/z80/arch.h
index 7f8b5bf..a90b864 100644
--- a/cc1/arch/z80/arch.h
+++ b/cc1/arch/z80/arch.h
_AT_@ -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
index 72afb4c..2c44600 100644
--- a/inc/cc.h
+++ b/inc/cc.h
_AT_@ -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'
_AT_@ -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, ...);
Received on Fri Jan 22 2016 - 18:40:59 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 22 2016 - 18:48:17 CET