diff options
Diffstat (limited to '3rdparty/lua/src/llex.h')
-rw-r--r-- | 3rdparty/lua/src/llex.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/3rdparty/lua/src/llex.h b/3rdparty/lua/src/llex.h index 2363d87e40e..389d2f86359 100644 --- a/3rdparty/lua/src/llex.h +++ b/3rdparty/lua/src/llex.h @@ -1,5 +1,5 @@ /* -** $Id: llex.h,v 1.79 2016/05/02 14:02:12 roberto Exp $ +** $Id: llex.h $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -7,11 +7,17 @@ #ifndef llex_h #define llex_h +#include <limits.h> + #include "lobject.h" #include "lzio.h" -#define FIRST_RESERVED 257 +/* +** Single-char tokens (terminal symbols) are represented by their own +** numeric code. Other tokens start at the following value. +*/ +#define FIRST_RESERVED (UCHAR_MAX + 1) #if !defined(LUA_ENV) @@ -37,7 +43,7 @@ enum RESERVED { }; /* number of reserved words */ -#define NUM_RESERVED (cast(int, TK_WHILE-FIRST_RESERVED+1)) +#define NUM_RESERVED (cast_int(TK_WHILE-FIRST_RESERVED + 1)) typedef union { |