many little changes: removed some lint complaints; max_int and max_unsigned
are now constants if NOCROSS is defined; added lexstrict and expr_strict, and changed calls where needed
This commit is contained in:
@@ -13,6 +13,8 @@ extern arith
|
||||
short_size, word_size, dword_size, int_size, long_size,
|
||||
float_size, double_size, lngdbl_size,
|
||||
pointer_size;
|
||||
|
||||
extern arith max_int, max_unsigned; /* cstoper.c */
|
||||
#else NOCROSS
|
||||
#define short_size (SZ_SHORT)
|
||||
#define word_size (SZ_WORD)
|
||||
@@ -23,6 +25,13 @@ extern arith
|
||||
#define double_size (SZ_DOUBLE)
|
||||
#define lngdbl_size (SZ_LNGDBL)
|
||||
#define pointer_size (SZ_POINTER)
|
||||
|
||||
#if int_size == 2
|
||||
#define max_int ((arith)32767)
|
||||
#define max_unsigned ((arith)65535)
|
||||
#else /* int_size == 4 */
|
||||
#define max_int ((arith)2147483647)
|
||||
#define max_unsigned ((arith)4294967295)
|
||||
#endif
|
||||
#endif NOCROSS
|
||||
|
||||
extern arith max_int, max_unsigned; /* cstoper.c */
|
||||
|
||||
Reference in New Issue
Block a user