[hackers] [scc] Move rank type definition to cc1.h || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 25 Sep 2015 17:50:44 +0200 (CEST)

commit 68258c2a3d9ec811eaf4590d917d90666d549eb1
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Sep 25 17:40:51 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Sep 25 17:40:51 2015 +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.

diff --git a/cc1/arch/z80/arch.h b/cc1/arch/z80/arch.h
index 2a144bc..f2bf49e 100644
--- a/cc1/arch/z80/arch.h
+++ b/cc1/arch/z80/arch.h
_AT_@ -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
index 06b9254..f7444b4 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -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
  */
Received on Fri Sep 25 2015 - 17:50:44 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 25 2015 - 18:00:21 CEST