Improved constant arithmetic: had several bugs
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user