diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-13 09:16:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-13 09:16:51 -0300 |
commit | cc2b66c85687b095e68304c010b59851ca4093e1 (patch) | |
tree | e85314ebbc0a27d4ece319c0313cebf77a62a96b /lundump.h | |
parent | 65b07dd53d7938a60112fc4473f5cad3473e3534 (diff) | |
download | lua-cc2b66c85687b095e68304c010b59851ca4093e1.tar.gz lua-cc2b66c85687b095e68304c010b59851ca4093e1.tar.bz2 lua-cc2b66c85687b095e68304c010b59851ca4093e1.zip |
Removed type 'varint_t'
size_t should be big enough to count the number of strings in a dump.
(And, by definition, it is big enough to count the length of each
string.)
Diffstat (limited to 'lundump.h')
-rw-r--r-- | lundump.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -28,18 +28,6 @@ | |||
28 | #define LUAC_FORMAT 0 /* this is the official format */ | 28 | #define LUAC_FORMAT 0 /* this is the official format */ |
29 | 29 | ||
30 | 30 | ||
31 | /* | ||
32 | ** Type to handle MSB Varint encoding: Try to get the largest unsigned | ||
33 | ** integer available. (It was enough to be the largest between size_t and | ||
34 | ** lua_Integer, but the C89 preprocessor knows nothing about size_t.) | ||
35 | */ | ||
36 | #if !defined(LUA_USE_C89) && defined(LLONG_MAX) | ||
37 | typedef unsigned long long varint_t; | ||
38 | #else | ||
39 | typedef unsigned long varint_t; | ||
40 | #endif | ||
41 | |||
42 | |||
43 | /* load one chunk; from lundump.c */ | 31 | /* load one chunk; from lundump.c */ |
44 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name, | 32 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name, |
45 | int fixed); | 33 | int fixed); |