30#ifdef LUAC_TRUST_BINARIES
34#define IF(c,s) if (c) error(S,s)
43#define LoadMem(S,b,n,size) LoadBlock(S,b,(n)*(size))
44#define LoadByte(S) (lu_byte)LoadChar(S)
45#define LoadVar(S,x) LoadMem(S,&x,1,sizeof(x))
46#define LoadVector(S,b,n,size) LoadMem(S,b,n,size)
51 IF (r!=0,
"unexpected end");
65 IF (x<0,
"bad integer");
133 for (i=0; i<n; i++) f->
p[i]=
NULL;
201 S.name=
"binary string";
221 *h++=(char)*(
char*)&x;
222 *h++=(char)
sizeof(
int);
223 *h++=(char)
sizeof(
size_t);
int luaG_checkcode(const Proto *pt)
void luaD_throw(lua_State *L, int errcode)
Proto * luaF_newproto(lua_State *L)
#define luaM_newvector(L, n, t)
const char * luaO_pushfstring(lua_State *L, const char *fmt,...)
#define setbvalue(obj, x)
#define setnvalue(obj, x)
TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
#define luaS_newliteral(L, s)
static void LoadHeader(LoadState *S)
static void LoadConstants(LoadState *S, Proto *f)
static TString * LoadString(LoadState *S)
static lua_Number LoadNumber(LoadState *S)
static void error(LoadState *S, const char *why)
static void LoadBlock(LoadState *S, void *b, size_t size)
#define LoadVector(S, b, n, size)
Proto * luaU_undump(lua_State *L, ZIO *Z, Mbuffer *buff, const char *name)
static void LoadDebug(LoadState *S, Proto *f)
static int LoadInt(LoadState *S)
static Proto * LoadFunction(LoadState *S, TString *p)
void luaU_header(char *h)
static void LoadCode(LoadState *S, Proto *f)
static int LoadChar(LoadState *S)
size_t luaZ_read(ZIO *z, void *b, size_t n)
char * luaZ_openspace(lua_State *L, Mbuffer *buff, size_t n)
CURL_EXTERN CURLMcode curl_socket_t s