Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstring.h"
#include "lundump.h"
#include "lzio.h"
Go to the source code of this file.
Data Structures | |
struct | LoadState |
Macros | |
#define | lundump_c |
#define | LUA_CORE |
#define | luai_verifycode(L, b, f) /* empty */ |
#define | LoadVector(S, b, n) LoadBlock(S,b,(n)*sizeof((b)[0])) |
#define | LoadVar(S, x) LoadVector(S,&x,1) |
#define | checksize(S, t) fchecksize(S,sizeof(t),#t) |
Functions | |
static l_noret | error (LoadState *S, const char *why) |
static void | LoadBlock (LoadState *S, void *b, size_t size) |
static lu_byte | LoadByte (LoadState *S) |
static int | LoadInt (LoadState *S) |
static lua_Number | LoadNumber (LoadState *S) |
static lua_Integer | LoadInteger (LoadState *S) |
static TString * | LoadString (LoadState *S, Proto *p) |
static void | LoadCode (LoadState *S, Proto *f) |
static void | LoadFunction (LoadState *S, Proto *f, TString *psource) |
static void | LoadConstants (LoadState *S, Proto *f) |
static void | LoadProtos (LoadState *S, Proto *f) |
static void | LoadUpvalues (LoadState *S, Proto *f) |
static void | LoadDebug (LoadState *S, Proto *f) |
static void | checkliteral (LoadState *S, const char *s, const char *msg) |
static void | fchecksize (LoadState *S, size_t size, const char *tname) |
static void | checkHeader (LoadState *S) |
LClosure * | luaU_undump (lua_State *L, ZIO *Z, const char *name) |
#define checksize | ( | S, | |
t ) fchecksize(S,sizeof(t),#t) |
Definition at line 241 of file lua-5.3.6/src/lundump.c.
Referenced by checkHeader().
#define LoadVar | ( | S, | |
x ) LoadVector(S,&x,1) |
Definition at line 57 of file lua-5.3.6/src/lundump.c.
Referenced by LoadByte(), LoadInt(), LoadInteger(), LoadNumber(), and LoadString().
Definition at line 49 of file lua-5.3.6/src/lundump.c.
Referenced by checkliteral(), LoadCode(), LoadDebug(), and LoadString().
#define LUA_CORE |
Definition at line 8 of file lua-5.3.6/src/lundump.c.
#define luai_verifycode | ( | L, | |
b, | |||
f ) /* empty */ |
Definition at line 28 of file lua-5.3.6/src/lundump.c.
Referenced by luaU_undump().
#define lundump_c |
Definition at line 7 of file lua-5.3.6/src/lundump.c.
|
static |
Definition at line 243 of file lua-5.3.6/src/lundump.c.
References checkliteral(), checksize, error(), LoadByte, LoadInteger(), LoadNumber(), LUA_SIGNATURE, LUAC_DATA, LUAC_FORMAT, LUAC_INT, LUAC_NUM, LUAC_VERSION, and S.
Referenced by luaU_undump().
|
static |
Definition at line 226 of file lua-5.3.6/src/lundump.c.
References error(), LoadVector, LUA_SIGNATURE, LUAC_DATA, S, and s.
Referenced by checkHeader().
Definition at line 39 of file lua-5.3.6/src/lundump.c.
References LUA_ERRSYNTAX, luaD_throw(), luaO_pushfstring(), and S.
Referenced by checkHeader(), checkliteral(), fchecksize(), and LoadBlock().
|
static |
Definition at line 235 of file lua-5.3.6/src/lundump.c.
References error(), LoadByte, luaO_pushfstring(), and S.
|
static |
Definition at line 51 of file lua-5.3.6/src/lundump.c.
References error(), luaZ_read(), and S.
Definition at line 60 of file lua-5.3.6/src/lundump.c.
Definition at line 113 of file lua-5.3.6/src/lundump.c.
References Proto::code, LoadInt(), LoadVector, luaM_newvector, S, and Proto::sizecode.
Referenced by LoadFunction().
Definition at line 124 of file lua-5.3.6/src/lundump.c.
References Proto::k, LoadByte, LoadInt(), LoadInteger(), LoadNumber(), LoadString(), lua_assert, LUA_TBOOLEAN, LUA_TLNGSTR, LUA_TNIL, LUA_TNUMFLT, LUA_TNUMINT, LUA_TSHRSTR, luaM_newvector, S, setbvalue, setfltvalue, setivalue, setnilvalue, setsvalue2n, and Proto::sizek.
Referenced by LoadFunction().
Definition at line 187 of file lua-5.3.6/src/lundump.c.
References LocVar::endpc, Proto::lineinfo, LoadInt(), LoadString(), LoadVector, Proto::locvars, luaM_newvector, NULL, S, Proto::sizelineinfo, Proto::sizelocvars, LocVar::startpc, Proto::upvalues, and LocVar::varname.
Referenced by LoadFunction().
Definition at line 209 of file lua-5.3.6/src/lundump.c.
References Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, LoadByte, LoadCode(), LoadConstants(), LoadDebug(), LoadInt(), LoadProtos(), LoadString(), LoadUpvalues(), Proto::maxstacksize, NULL, Proto::numparams, S, and Proto::source.
Referenced by LoadProtos(), and luaU_undump().
|
static |
Definition at line 67 of file lua-5.3.6/src/lundump.c.
Referenced by LoadCode(), LoadConstants(), LoadDebug(), LoadFunction(), LoadProtos(), and LoadUpvalues().
|
static |
Definition at line 81 of file lua-5.3.6/src/lundump.c.
Referenced by checkHeader(), and LoadConstants().
|
static |
Definition at line 74 of file lua-5.3.6/src/lundump.c.
Referenced by checkHeader(), and LoadConstants().
Definition at line 158 of file lua-5.3.6/src/lundump.c.
References LoadFunction(), LoadInt(), luaC_objbarrier, luaF_newproto(), luaM_newvector, NULL, Proto::p, S, Proto::sizep, and Proto::source.
Referenced by LoadFunction().
Definition at line 88 of file lua-5.3.6/src/lundump.c.
References getstr, LoadByte, LoadVar, LoadVector, luaC_objbarrier, luaD_inctop(), LUAI_MAXSHORTLEN, luaS_createlngstrobj(), luaS_newlstr(), NULL, S, setsvalue2s, and lua_State::top.
Referenced by LoadConstants(), LoadDebug(), and LoadFunction().
Definition at line 173 of file lua-5.3.6/src/lundump.c.
References LoadByte, LoadInt(), luaM_newvector, NULL, S, Proto::sizeupvalues, and Proto::upvalues.
Referenced by LoadFunction().
Definition at line 265 of file lua-5.3.6/src/lundump.c.
References checkHeader(), LoadByte, LoadFunction(), lua_assert, LUA_SIGNATURE, luaC_objbarrier, luaD_inctop(), luaF_newLclosure(), luaF_newproto(), luai_verifycode, name, NULL, LClosure::p, S, setclLvalue, Proto::sizeupvalues, and lua_State::top.