Improved constant arithmetic: had several bugs

This commit is contained in:
ceriel
1993-03-18 13:24:20 +00:00
parent a2bf695f83
commit a2cb61e0f0
11 changed files with 212 additions and 66 deletions

View File

@@ -15,7 +15,10 @@ struct token {
int tok_symb; /* the token itself */
union {
char *tok_str;
arith tok_val; /* for INTEGER */
struct {
int tok_unsigned;
arith tok_val; /* for INTEGER */
} tok_int;
} tok_data;
};
@@ -23,7 +26,8 @@ struct token {
#define tk_symb tok_symb
#define tk_str tok_data.tok_str
#define tk_val tok_data.tok_val
#define tk_val tok_data.tok_int.tok_val
#define tk_unsigned tok_data.tok_int.tok_unsigned
extern struct token dot;