Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
struct | DumpState |
Macros | |
#define | ldump_c |
#define | LUA_CORE |
#define | DumpMem(b, n, size, D) DumpBlock(b,(n)*(size),D) |
#define | DumpVar(x, D) DumpMem(&x,1,sizeof(x),D) |
#define | DumpCode(f, D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D) |
Functions | |
static void | DumpBlock (const void *b, size_t size, DumpState *D) |
static void | DumpChar (int y, DumpState *D) |
static void | DumpInt (int x, DumpState *D) |
static void | DumpNumber (lua_Number x, DumpState *D) |
static void | DumpVector (const void *b, int n, size_t size, DumpState *D) |
static void | DumpString (const TString *s, DumpState *D) |
static void | DumpFunction (const Proto *f, const TString *p, DumpState *D) |
static void | DumpConstants (const Proto *f, DumpState *D) |
static void | DumpDebug (const Proto *f, DumpState *D) |
static void | DumpHeader (DumpState *D) |
int | luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip) |
#define DumpCode | ( | f, | |
D ) DumpVector(f->code,f->sizecode,sizeof(Instruction),D) |
Definition at line 76 of file lua-5.1.5/src/ldump.c.
Referenced by DumpFunction(), and DumpFunction().
#define DumpMem | ( | b, | |
n, | |||
size, | |||
D ) DumpBlock(b,(n)*(size),D) |
Definition at line 26 of file lua-5.1.5/src/ldump.c.
Referenced by DumpVector().
#define DumpVar | ( | x, | |
D ) DumpMem(&x,1,sizeof(x),D) |
Definition at line 27 of file lua-5.1.5/src/ldump.c.
Referenced by DumpChar(), DumpInt(), DumpNumber(), and DumpString().
#define ldump_c |
Definition at line 9 of file lua-5.1.5/src/ldump.c.
#define LUA_CORE |
Definition at line 10 of file lua-5.1.5/src/ldump.c.
|
static |
Definition at line 29 of file lua-5.1.5/src/ldump.c.
References DumpState::data, DumpState::L, lua_lock, lua_unlock, DumpState::status, and DumpState::writer.
Referenced by DumpHeader(), and DumpString().
|
static |
Definition at line 39 of file lua-5.1.5/src/ldump.c.
References DumpVar.
Referenced by DumpConstants(), and DumpFunction().
Definition at line 80 of file lua-5.1.5/src/ldump.c.
References bvalue, DumpChar(), DumpFunction(), DumpInt(), DumpNumber(), DumpString(), Proto::k, lua_assert, LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, nvalue, Proto::p, rawtsvalue, Proto::sizek, Proto::sizep, Proto::source, and ttype.
Referenced by DumpFunction().
Definition at line 111 of file lua-5.1.5/src/ldump.c.
References DumpInt(), DumpString(), DumpVector, LocVar::endpc, Proto::lineinfo, Proto::locvars, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizeupvalues, LocVar::startpc, DumpState::strip, Proto::upvalues, and LocVar::varname.
Referenced by DumpFunction().
Definition at line 129 of file lua-5.1.5/src/ldump.c.
References DumpChar(), DumpCode, DumpConstants(), DumpDebug(), DumpInt(), DumpString(), Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, Proto::maxstacksize, NULL, Proto::numparams, Proto::nups, Proto::source, and DumpState::strip.
Referenced by DumpConstants(), and luaU_dump().
|
static |
Definition at line 143 of file lua-5.1.5/src/ldump.c.
References DumpBlock(), LUAC_HEADERSIZE, and luaU_header().
Referenced by luaU_dump().
|
static |
Definition at line 45 of file lua-5.1.5/src/ldump.c.
References DumpVar.
Referenced by DumpConstants(), DumpDebug(), DumpFunction(), and DumpVector().
|
static |
Definition at line 50 of file lua-5.1.5/src/ldump.c.
References DumpVar.
Referenced by DumpConstants().
Definition at line 61 of file lua-5.1.5/src/ldump.c.
References DumpBlock(), DumpVar, getstr, NULL, and s.
Referenced by DumpConstants(), DumpDebug(), and DumpFunction().
|
static |
Definition at line 55 of file lua-5.1.5/src/ldump.c.
int luaU_dump | ( | lua_State * | L, |
const Proto * | f, | ||
lua_Writer | w, | ||
void * | data, | ||
int | strip ) |
Definition at line 153 of file lua-5.1.5/src/ldump.c.
References DumpState::data, DumpFunction(), DumpHeader(), DumpState::L, NULL, DumpState::status, DumpState::strip, and DumpState::writer.
Referenced by lua_dump(), lua_dump(), pmain(), pmain(), pmain(), and pmain().