Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <limits.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, 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 size_t | loadUnsigned (LoadState *S, size_t limit) |
static size_t | loadSize (LoadState *S) |
static int | loadInt (LoadState *S) |
static lua_Number | loadNumber (LoadState *S) |
static lua_Integer | loadInteger (LoadState *S) |
static TString * | loadStringN (LoadState *S, Proto *p) |
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 288 of file lua-5.4.3/src/lundump.c.
Referenced by checkHeader().
#define loadVar | ( | S, | |
x ) loadVector(S,&x,1) |
Definition at line 58 of file lua-5.4.3/src/lundump.c.
Referenced by loadInteger(), and loadNumber().
Definition at line 50 of file lua-5.4.3/src/lundump.c.
Referenced by checkliteral(), loadCode(), loadDebug(), and loadStringN().
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/lundump.c.
#define luai_verifycode | ( | L, | |
f ) /* empty */ |
Definition at line 29 of file lua-5.4.3/src/lundump.c.
Referenced by luaU_undump().
#define lundump_c |
Definition at line 7 of file lua-5.4.3/src/lundump.c.
|
static |
Definition at line 290 of file lua-5.4.3/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 273 of file lua-5.4.3/src/lundump.c.
References error(), loadVector, LUA_SIGNATURE, LUAC_DATA, S, and s.
Referenced by checkHeader().
Definition at line 40 of file lua-5.4.3/src/lundump.c.
References LUA_ERRSYNTAX, luaD_throw(), luaO_pushfstring(), and S.
Referenced by checkHeader(), checkliteral(), fchecksize(), loadBlock(), loadByte(), loadString(), and loadUnsigned().
|
static |
Definition at line 282 of file lua-5.4.3/src/lundump.c.
References error(), loadByte(), luaO_pushfstring(), and S.
|
static |
Definition at line 52 of file lua-5.4.3/src/lundump.c.
References error(), luaZ_read(), and S.
Definition at line 61 of file lua-5.4.3/src/lundump.c.
References cast_byte, EOZ, error(), S, and zgetc.
Referenced by checkHeader(), fchecksize(), loadConstants(), loadFunction(), loadUnsigned(), loadUpvalues(), and luaU_undump().
Definition at line 144 of file lua-5.4.3/src/lundump.c.
References Proto::code, loadInt(), loadVector, luaM_newvectorchecked, S, and Proto::sizecode.
Referenced by loadFunction().
Definition at line 155 of file lua-5.4.3/src/lundump.c.
References Proto::k, loadByte(), loadInt(), loadInteger(), loadNumber(), loadString(), lua_assert, LUA_VFALSE, LUA_VLNGSTR, LUA_VNIL, LUA_VNUMFLT, LUA_VNUMINT, LUA_VSHRSTR, LUA_VTRUE, luaM_newvectorchecked, S, setbfvalue, setbtvalue, setfltvalue, setivalue, setnilvalue, setsvalue2n, and Proto::sizek.
Referenced by loadFunction().
Definition at line 227 of file lua-5.4.3/src/lundump.c.
References Proto::abslineinfo, LocVar::endpc, AbsLineInfo::line, Proto::lineinfo, loadInt(), loadStringN(), loadVector, Proto::locvars, luaM_newvectorchecked, NULL, AbsLineInfo::pc, S, Proto::sizeabslineinfo, Proto::sizelineinfo, Proto::sizelocvars, LocVar::startpc, Proto::upvalues, and LocVar::varname.
Referenced by loadFunction().
Definition at line 256 of file lua-5.4.3/src/lundump.c.
References Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, loadByte(), loadCode(), loadConstants(), loadDebug(), loadInt(), loadProtos(), loadStringN(), loadUpvalues(), Proto::maxstacksize, NULL, Proto::numparams, S, and Proto::source.
Referenced by loadProtos(), and luaU_undump().
|
static |
Definition at line 88 of file lua-5.4.3/src/lundump.c.
References cast_int, loadUnsigned(), and S.
Referenced by loadCode(), loadConstants(), loadDebug(), loadFunction(), loadProtos(), and loadUpvalues().
|
static |
Definition at line 100 of file lua-5.4.3/src/lundump.c.
Referenced by checkHeader(), and loadConstants().
|
static |
Definition at line 93 of file lua-5.4.3/src/lundump.c.
Referenced by checkHeader(), and loadConstants().
Definition at line 191 of file lua-5.4.3/src/lundump.c.
References loadFunction(), loadInt(), luaC_objbarrier, luaF_newproto(), luaM_newvectorchecked, NULL, Proto::p, S, Proto::sizep, and Proto::source.
Referenced by loadFunction().
|
static |
Definition at line 83 of file lua-5.4.3/src/lundump.c.
References loadUnsigned(), and S.
Referenced by loadStringN().
Definition at line 136 of file lua-5.4.3/src/lundump.c.
References error(), loadStringN(), NULL, and S.
Referenced by loadConstants().
Definition at line 110 of file lua-5.4.3/src/lundump.c.
References getstr, loadSize(), loadVector, luaC_objbarrier, luaD_inctop(), LUAI_MAXSHORTLEN, luaS_createlngstrobj(), luaS_newlstr(), NULL, S, setsvalue2s, and lua_State::top.
Referenced by loadDebug(), loadFunction(), and loadString().
|
static |
Definition at line 69 of file lua-5.4.3/src/lundump.c.
References error(), loadByte(), and S.
Referenced by loadInt(), and loadSize().
Definition at line 212 of file lua-5.4.3/src/lundump.c.
References loadByte(), loadInt(), luaM_newvectorchecked, NULL, S, Proto::sizeupvalues, and Proto::upvalues.
Referenced by loadFunction().
Definition at line 311 of file lua-5.4.3/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, setclLvalue2s, Proto::sizeupvalues, and lua_State::top.