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");
317 S.name =
"binary string";
void luaD_throw(lua_State *L, int errcode)
Proto * luaF_newproto(lua_State *L)
Closure * luaF_newLclosure(lua_State *L, int nelems, Table *e)
#define luaC_objbarrier(L, p, o)
const char * luaO_pushfstring(lua_State *L, const char *fmt,...)
TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
size_t luaZ_read(ZIO *z, void *b, size_t n)
void luaD_inctop(lua_State *L)
#define setfltvalue(obj, x)
#define setivalue(obj, x)
TString * luaS_createlngstrobj(lua_State *L, size_t l)
#define luaM_newvectorchecked(L, n, t)
#define setclLvalue2s(L, o, cl)
static void checkliteral(LoadState *S, const char *s, const char *msg)
static void loadUpvalues(LoadState *S, Proto *f)
static void loadDebug(LoadState *S, Proto *f)
static lu_byte loadByte(LoadState *S)
static l_noret error(LoadState *S, const char *why)
static void loadBlock(LoadState *S, void *b, size_t size)
static lua_Integer loadInteger(LoadState *S)
static void loadConstants(LoadState *S, Proto *f)
static void loadProtos(LoadState *S, Proto *f)
LClosure * luaU_undump(lua_State *L, ZIO *Z, const char *name)
static TString * loadString(LoadState *S, Proto *p)
static void loadFunction(LoadState *S, Proto *f, TString *psource)
static int loadInt(LoadState *S)
static lua_Number loadNumber(LoadState *S)
static TString * loadStringN(LoadState *S, Proto *p)
#define luai_verifycode(L, f)
#define loadVector(S, b, n)
static void loadCode(LoadState *S, Proto *f)
static size_t loadSize(LoadState *S)
static void fchecksize(LoadState *S, size_t size, const char *tname)
static size_t loadUnsigned(LoadState *S, size_t limit)
static void checkHeader(LoadState *S)
CURL_EXTERN CURLMcode curl_socket_t s
AbsLineInfo * abslineinfo