aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/token.h
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-05 13:22:51 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:02:01 -0700
commit1694b992f1834bed9cbceafa795b511ee52efaca (patch)
treeb144a4906130b7df87a847472e82bc04d242223d /token.h
parent930f205a62cd53ecf19d68297895bb4025db28e8 (diff)
downloadsparse-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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/token.h b/token.h
index b9a699c8..cc9ff9a2 100644
--- a/token.h
+++ b/token.h
@@ -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;