aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2010-04-08 14:05:29 -0700
committerChristopher Li <sparse@chrisli.org>2010-04-08 14:39:53 -0700
commit298c360ab0d1583585ea0fdefb9f9c96aefc64fe (patch)
treebbdf526fd03331c66332e8a46b018b6b674d4bd9 /token.h
parentevaluate: check for NULL type inside typeof (diff)
downloadsparse-298c360ab0d1583585ea0fdefb9f9c96aefc64fe.tar.gz
sparse-298c360ab0d1583585ea0fdefb9f9c96aefc64fe.tar.bz2
sparse-298c360ab0d1583585ea0fdefb9f9c96aefc64fe.zip
Allow parsing L'\0'
It is nasty that L'\0' start from an identifier letter. I try my best not to slow down the hot path. The test is done inside get_one_identifier() after the ident hash is built. It look a little bit out of palace but faster than testing 'L' before hand. Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'token.h')
-rw-r--r--token.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/token.h b/token.h
index ebc94b4..c527e78 100644
--- a/token.h
+++ b/token.h
@@ -67,6 +67,7 @@ enum token_type {
TOKEN_ZERO_IDENT,
TOKEN_NUMBER,
TOKEN_CHAR,
+ TOKEN_LONG_CHAR,
TOKEN_STRING,
TOKEN_SPECIAL,
TOKEN_STREAMBEGIN,