]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
change the value of TOKEN_EOF
authorWolfgang Bumiller <wry.git@bumiller.com>
Thu, 25 Apr 2013 15:39:12 +0000 (17:39 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Thu, 25 Apr 2013 15:39:12 +0000 (17:39 +0200)
lexer.h

diff --git a/lexer.h b/lexer.h
index 9f080dcb139fbd7ba3f6fbbf1e7d7e8031dd702e..24ac39a63f7f574d1e9a8a7dfc1f8236cc51612a 100644 (file)
--- a/lexer.h
+++ b/lexer.h
@@ -87,7 +87,11 @@ enum {
     TOKEN_WHITE,
     TOKEN_EOL,
 
-    TOKEN_EOF,
+    /* if we add additional tokens before this, the exposed API
+     * should not be broken anyway, but EOF/ERROR/... should
+     * still be at the bottom
+     */
+    TOKEN_EOF = 1024,
 
     /* We use '< TOKEN_ERROR', so TOKEN_FATAL must come after it and any
      * other error related tokens as well