diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-05 13:22:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:02:01 -0700 |
| commit | 1694b992f1834bed9cbceafa795b511ee52efaca (patch) | |
| tree | b144a4906130b7df87a847472e82bc04d242223d /token.h | |
| parent | 930f205a62cd53ecf19d68297895bb4025db28e8 (diff) | |
| download | sparse-dev-1694b992f1834bed9cbceafa795b511ee52efaca.tar.gz | |
Remove TOKEN_FP vs TOKEN_INTEGER distinction, and make numbers be
just TOKEN_NUMBER.
This matches how tokenization is supposed to be done, and simplifies
the code.
Expression evaluation changed to cope with the new rules.
Diffstat (limited to 'token.h')
| -rw-r--r-- | token.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -50,8 +50,7 @@ enum token_type { TOKEN_EOF, TOKEN_ERROR, TOKEN_IDENT, - TOKEN_INTEGER, - TOKEN_FP, + TOKEN_NUMBER, TOKEN_CHAR, TOKEN_STRING, TOKEN_SPECIAL, @@ -122,8 +121,7 @@ struct token { struct token *next; struct token *parent; union { - char *integer; - char *fp; + char *number; struct ident *ident; unsigned int special; struct string *string; |
