aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-13 09:16:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-13 09:16:51 -0300
commitcc2b66c85687b095e68304c010b59851ca4093e1 (patch)
treee85314ebbc0a27d4ece319c0313cebf77a62a96b /lundump.h
parent65b07dd53d7938a60112fc4473f5cad3473e3534 (diff)
downloadlua-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.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lundump.h b/lundump.h
index ff66d2e7..1d6e50ea 100644
--- a/lundump.h
+++ b/lundump.h
@@ -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)
37typedef unsigned long long varint_t;
38#else
39typedef unsigned long varint_t;
40#endif
41
42
43/* load one chunk; from lundump.c */ 31/* load one chunk; from lundump.c */
44LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name, 32LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name,
45 int fixed); 33 int fixed);