From: Wolfgang (Blub) Bumiller Date: Thu, 22 Nov 2012 19:42:55 +0000 (+0100) Subject: Removing unused _tokennames from lexer.h X-Git-Tag: 0.1.9~348 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a87bc6a5759621ae7d7e018ade969337f239ccd2;p=xonotic%2Fgmqcc.git Removing unused _tokennames from lexer.h --- diff --git a/lexer.h b/lexer.h index a6f9100..e58a98d 100644 --- a/lexer.h +++ b/lexer.h @@ -69,30 +69,6 @@ enum { TOKEN_FATAL /* internal error, eg out of memory */ }; -static const char *_tokennames[] = { - "TOKEN_START", - "TOKEN_IDENT", - "TOKEN_TYPENAME", - "TOKEN_OPERATOR", - "TOKEN_KEYWORD", - "TOKEN_DOTS", - "TOKEN_STRINGCONST", - "TOKEN_CHARCONST", - "TOKEN_VECTORCONST", - "TOKEN_INTCONST", - "TOKEN_FLOATCONST", - "TOKEN_WHITE", - "TOKEN_EOL", - "TOKEN_EOF", - "TOKEN_ERROR", - "TOKEN_FATAL", -}; -typedef int -_all_tokennames_added_[ - ((TOKEN_FATAL - TOKEN_START + 1) == - (sizeof(_tokennames)/sizeof(_tokennames[0]))) - ? 1 : -1]; - typedef struct { char *name; int value;