Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lundump.h"
Go to the source code of this file.
Data Structures | |
struct | DumpState |
Macros | |
#define | ldump_c |
#define | LUA_CORE |
#define | DumpVector(v, n, D) DumpBlock(v,(n)*sizeof((v)[0]),D) |
#define | DumpLiteral(s, D) DumpBlock(s, sizeof(s) - sizeof(char), D) |
#define | DumpVar(x, D) DumpVector(&x,1,D) |
Functions | |
static void | DumpBlock (const void *b, size_t size, DumpState *D) |
static void | DumpByte (int y, DumpState *D) |
static void | DumpInt (int x, DumpState *D) |
static void | DumpNumber (lua_Number x, DumpState *D) |
static void | DumpInteger (lua_Integer x, DumpState *D) |
static void | DumpString (const TString *s, DumpState *D) |
static void | DumpCode (const Proto *f, DumpState *D) |
static void | DumpFunction (const Proto *f, TString *psource, DumpState *D) |
static void | DumpConstants (const Proto *f, DumpState *D) |
static void | DumpProtos (const Proto *f, DumpState *D) |
static void | DumpUpvalues (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) |
Definition at line 37 of file lua-5.3.6/src/ldump.c.
Referenced by DumpHeader().
#define DumpVar | ( | x, | |
D ) DumpVector(&x,1,D) |
Definition at line 49 of file lua-5.3.6/src/ldump.c.
Referenced by DumpByte(), DumpInt(), DumpInteger(), DumpNumber(), and DumpString().
#define DumpVector | ( | v, | |
n, | |||
D ) DumpBlock(v,(n)*sizeof((v)[0]),D) |
Definition at line 35 of file lua-5.3.6/src/ldump.c.
Referenced by DumpCode(), DumpDebug(), DumpDebug(), DumpDebug(), and DumpString().
#define ldump_c |
Definition at line 7 of file lua-5.3.6/src/ldump.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.3.6/src/ldump.c.
|
static |
Definition at line 40 of file lua-5.3.6/src/ldump.c.
References DumpState::data, DumpState::L, lua_lock, lua_unlock, DumpState::status, and DumpState::writer.
|
static |
Definition at line 52 of file lua-5.3.6/src/ldump.c.
References DumpVar.
Referenced by DumpConstants(), DumpFunction(), DumpHeader(), DumpString(), DumpUpvalues(), and luaU_dump().
Definition at line 90 of file lua-5.3.6/src/ldump.c.
References Proto::code, DumpInt(), DumpVector, and Proto::sizecode.
Definition at line 98 of file lua-5.3.6/src/ldump.c.
References bvalue, DumpByte(), DumpInt(), DumpInteger(), DumpNumber(), DumpString(), fltvalue, ivalue, Proto::k, lua_assert, LUA_TBOOLEAN, LUA_TLNGSTR, LUA_TNIL, LUA_TNUMFLT, LUA_TNUMINT, LUA_TSHRSTR, Proto::sizek, tsvalue, and ttype.
Referenced by DumpFunction().
Definition at line 147 of file lua-5.3.6/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 166 of file lua-5.3.6/src/ldump.c.
References DumpByte(), DumpCode, DumpConstants(), DumpDebug(), DumpInt(), DumpProtos(), DumpString(), DumpUpvalues(), Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, Proto::maxstacksize, NULL, Proto::numparams, Proto::source, and DumpState::strip.
Referenced by DumpProtos(), and luaU_dump().
|
static |
Definition at line 184 of file lua-5.3.6/src/ldump.c.
References DumpByte(), DumpInteger(), DumpLiteral, DumpNumber(), LUA_SIGNATURE, LUAC_DATA, LUAC_FORMAT, LUAC_INT, LUAC_NUM, and LUAC_VERSION.
Referenced by luaU_dump().
|
static |
Definition at line 58 of file lua-5.3.6/src/ldump.c.
References DumpVar.
Referenced by DumpCode(), DumpConstants(), DumpDebug(), DumpFunction(), DumpProtos(), and DumpUpvalues().
|
static |
Definition at line 68 of file lua-5.3.6/src/ldump.c.
References DumpVar.
Referenced by DumpConstants(), and DumpHeader().
|
static |
Definition at line 63 of file lua-5.3.6/src/ldump.c.
References DumpVar.
Referenced by DumpConstants(), and DumpHeader().
Definition at line 128 of file lua-5.3.6/src/ldump.c.
References DumpFunction(), DumpInt(), Proto::p, Proto::sizep, and Proto::source.
Referenced by DumpFunction().
Definition at line 73 of file lua-5.3.6/src/ldump.c.
References cast_int, DumpByte(), DumpVar, DumpVector, getstr, NULL, s, and tsslen.
Referenced by DumpConstants(), DumpDebug(), and DumpFunction().
Definition at line 137 of file lua-5.3.6/src/ldump.c.
References DumpByte(), DumpInt(), Proto::sizeupvalues, and Proto::upvalues.
Referenced by DumpFunction().
int luaU_dump | ( | lua_State * | L, |
const Proto * | f, | ||
lua_Writer | w, | ||
void * | data, | ||
int | strip ) |
Definition at line 202 of file lua-5.3.6/src/ldump.c.
References DumpState::data, DumpByte(), DumpFunction(), DumpHeader(), DumpState::L, NULL, Proto::sizeupvalues, DumpState::status, DumpState::strip, and DumpState::writer.