diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lua/lundump.h (renamed from src/lua-5.3/lundump.h) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lua-5.3/lundump.h b/src/lua/lundump.h index ce492d6..f3748a9 100644 --- a/src/lua-5.3/lundump.h +++ b/src/lua/lundump.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ | 2 | ** $Id: lundump.h $ |
| 3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -18,8 +18,12 @@ | |||
| 18 | #define LUAC_INT 0x5678 | 18 | #define LUAC_INT 0x5678 |
| 19 | #define LUAC_NUM cast_num(370.5) | 19 | #define LUAC_NUM cast_num(370.5) |
| 20 | 20 | ||
| 21 | #define MYINT(s) (s[0]-'0') | 21 | /* |
| 22 | ** Encode major-minor version in one byte, one nibble for each | ||
| 23 | */ | ||
| 24 | #define MYINT(s) (s[0]-'0') /* assume one-digit numerals */ | ||
| 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) | 25 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) |
| 26 | |||
| 23 | #define LUAC_FORMAT 0 /* this is the official format */ | 27 | #define LUAC_FORMAT 0 /* this is the official format */ |
| 24 | 28 | ||
| 25 | /* load one chunk; from lundump.c */ | 29 | /* load one chunk; from lundump.c */ |
