no casts in constants used in #if!
authorceriel <none@none>
Thu, 9 Nov 1989 18:07:14 +0000 (18:07 +0000)
committerceriel <none@none>
Thu, 9 Nov 1989 18:07:14 +0000 (18:07 +0000)
lang/cem/cemcom.ansi/BigPars
lang/cem/cemcom.ansi/LintPars
lang/cem/cemcom.ansi/SmallPars
lang/cem/cemcom.ansi/sizes.h

index ef12fed..a12e089 100644 (file)
 #define MAXSIZE                8       /* the maximum of the SZ_* constants    */
 
 /* target machine sizes        */
-#define        SZ_CHAR         (arith)1
-#define        SZ_SHORT        (arith)2
-#define SZ_WORD                (arith)4
-#define        SZ_INT          (arith)4
-#define        SZ_LONG         (arith)4
-#define        SZ_FLOAT        (arith)4
-#define        SZ_DOUBLE       (arith)8
-#define        SZ_LNGDBL       (arith)8        /* for now */
-#define        SZ_POINTER      (arith)4
+#define        SZ_CHAR         1
+#define        SZ_SHORT        2
+#define SZ_WORD                4
+#define        SZ_INT          4
+#define        SZ_LONG         4
+#define        SZ_FLOAT        4
+#define        SZ_DOUBLE       8
+#define        SZ_LNGDBL       8       /* for now */
+#define        SZ_POINTER      4
 
 /* target machine alignment requirements       */
 #define        AL_CHAR         1
index e3de245..7cb276f 100644 (file)
 #define MAXSIZE                8       /* the maximum of the SZ_* constants    */
 
 /* target machine sizes        */
-#define        SZ_CHAR         (arith)1
-#define        SZ_SHORT        (arith)2
-#define SZ_WORD                (arith)4
-#define        SZ_INT          (arith)4
-#define        SZ_LONG         (arith)4
-#define        SZ_FLOAT        (arith)4
-#define        SZ_DOUBLE       (arith)8
-#define        SZ_POINTER      (arith)4
+#define        SZ_CHAR         1
+#define        SZ_SHORT        2
+#define SZ_WORD                4
+#define        SZ_INT          4
+#define        SZ_LONG         4
+#define        SZ_FLOAT        4
+#define        SZ_DOUBLE       8
+#define        SZ_POINTER      4
 
 /* target machine alignment requirements       */
 #define        AL_CHAR         1
index 78ff595..96ef3e1 100644 (file)
 #define MAXSIZE                8       /* the maximum of the SZ_* constants    */
 
 /* target machine sizes        */
-#define        SZ_CHAR         (arith)1
-#define        SZ_SHORT        (arith)2
-#define SZ_WORD                (arith)4
-#define        SZ_INT          (arith)4
-#define        SZ_LONG         (arith)4
-#define        SZ_FLOAT        (arith)4
-#define        SZ_DOUBLE       (arith)8
-#define        SZ_LNGDBL       (arith)8        /* for now */
-#define        SZ_POINTER      (arith)4
+#define        SZ_CHAR         1
+#define        SZ_SHORT        2
+#define SZ_WORD                4
+#define        SZ_INT          4
+#define        SZ_LONG         4
+#define        SZ_FLOAT        4
+#define        SZ_DOUBLE       8
+#define        SZ_LNGDBL       8       /* for now */
+#define        SZ_POINTER      4
 
 /* target machine alignment requirements       */
 #define        AL_CHAR         1
index e23951e..7027a50 100644 (file)
@@ -16,20 +16,20 @@ extern arith
 
 extern arith max_int, max_unsigned;    /* cstoper.c    */
 #else NOCROSS
-#define short_size     (SZ_SHORT)
-#define word_size      (SZ_WORD)
-#define dword_size     (2*SZ_WORD)
-#define int_size       (SZ_INT)
-#define long_size      (SZ_LONG)
-#define float_size     (SZ_FLOAT)
-#define double_size    (SZ_DOUBLE)
-#define        lngdbl_size     (SZ_LNGDBL)
-#define pointer_size   (SZ_POINTER)
+#define short_size     ((arith)SZ_SHORT)
+#define word_size      ((arith)SZ_WORD)
+#define dword_size     ((arith)2*SZ_WORD)
+#define int_size       ((arith)SZ_INT)
+#define long_size      ((arith)SZ_LONG)
+#define float_size     ((arith)SZ_FLOAT)
+#define double_size    ((arith)SZ_DOUBLE)
+#define        lngdbl_size     ((arith)SZ_LNGDBL)
+#define pointer_size   ((arith)SZ_POINTER)
 
-#if int_size == 2
+#if SZ_INT == 2
 #define max_int                ((arith)32767)
 #define max_unsigned   ((arith)65535)
-#else /* int_size == 4 */
+#else /* SZ_INT == 4 */
 #define max_int                ((arith)2147483647)
 #define max_unsigned   ((arith)4294967295)
 #endif