28 #if !defined(luai_verifycode) 29 #define luai_verifycode(L,f) 50 #define loadVector(S,b,n) loadBlock(S,b,(n)*sizeof((b)[0])) 54 error(S,
"truncated chunk");
58 #define loadVar(S,x) loadVector(S,&x,1) 64 error(S,
"truncated chunk");
76 error(S,
"integer overflow");
77 x = (x << 7) | (b & 0x7f);
78 }
while ((b & 0x80) == 0);
139 error(S,
"bad format for constant string");
160 for (i = 0; i < n; i++)
162 for (i = 0; i < n; i++) {
196 for (i = 0; i < n; i++)
198 for (i = 0; i < n; i++) {
217 for (i = 0; i < n; i++)
219 for (i = 0; i < n; i++) {
236 for (i = 0; i < n; i++) {
243 for (i = 0; i < n; i++)
245 for (i = 0; i < n; i++) {
251 for (i = 0; i < n; i++)
275 size_t len = strlen(s);
277 if (memcmp(s, buff, len) != 0)
288 #define checksize(S,t) fchecksize(S,sizeof(t),#t) 294 error(S,
"version mismatch");
296 error(S,
"format mismatch");
302 error(S,
"integer format mismatch");
304 error(S,
"float format mismatch");
314 if (*name ==
'@' || *name ==
'=')
317 S.
name =
"binary string";
static void checkliteral(LoadState *S, const char *s, const char *msg)
#define luai_verifycode(L, f)
LClosure * luaU_undump(lua_State *L, ZIO *Z, const char *name)
static void checkHeader(LoadState *S)
LClosure * luaF_newLclosure(lua_State *L, int nupvals)
static void loadUpvalues(LoadState *S, Proto *f)
static void loadProtos(LoadState *S, Proto *f)
static void loadDebug(LoadState *S, Proto *f)
static l_noret error(LoadState *S, const char *why)
AbsLineInfo * abslineinfo
void luaD_inctop(lua_State *L)
TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
static size_t loadUnsigned(LoadState *S, size_t limit)
#define setclLvalue2s(L, o, cl)
static void fchecksize(LoadState *S, size_t size, const char *tname)
TString * luaS_createlngstrobj(lua_State *L, size_t l)
static void loadFunction(LoadState *S, Proto *f, TString *psource)
static TString * loadStringN(LoadState *S, Proto *p)
static void loadConstants(LoadState *S, Proto *f)
static TString * loadString(LoadState *S, Proto *p)
static void loadBlock(LoadState *S, void *b, size_t size)
#define luaM_newvectorchecked(L, n, t)
size_t luaZ_read(ZIO *z, void *b, size_t n)
#define setsvalue2s(L, o, s)
static int loadInt(LoadState *S)
#define setivalue(obj, x)
static void loadCode(LoadState *S, Proto *f)
#define setfltvalue(obj, x)
static size_t loadSize(LoadState *S)
static lua_Integer loadInteger(LoadState *S)
static lu_byte loadByte(LoadState *S)
#define loadVector(S, b, n)
const char * luaO_pushfstring(lua_State *L, const char *fmt,...)
static lua_Number loadNumber(LoadState *S)
#define luaC_objbarrier(L, p, o)
Proto * luaF_newproto(lua_State *L)
l_noret luaD_throw(lua_State *L, int errcode)