mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
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.)
This commit is contained in:
parent
65b07dd53d
commit
cc2b66c856
3 changed files with 23 additions and 32 deletions
12
lundump.h
12
lundump.h
|
|
@ -28,18 +28,6 @@
|
|||
#define LUAC_FORMAT 0 /* this is the official format */
|
||||
|
||||
|
||||
/*
|
||||
** Type to handle MSB Varint encoding: Try to get the largest unsigned
|
||||
** integer available. (It was enough to be the largest between size_t and
|
||||
** lua_Integer, but the C89 preprocessor knows nothing about size_t.)
|
||||
*/
|
||||
#if !defined(LUA_USE_C89) && defined(LLONG_MAX)
|
||||
typedef unsigned long long varint_t;
|
||||
#else
|
||||
typedef unsigned long varint_t;
|
||||
#endif
|
||||
|
||||
|
||||
/* load one chunk; from lundump.c */
|
||||
LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name,
|
||||
int fixed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue