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(D, v, n) dumpBlock(D,v,(n)*sizeof((v)[0])) |
#define | dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char)) |
#define | dumpVar(D, x) dumpVector(D,&x,1) |
#define | DIBS ((sizeof(size_t) * 8 / 7) + 1) |
Functions | |
static void | dumpBlock (DumpState *D, const void *b, size_t size) |
static void | dumpByte (DumpState *D, int y) |
static void | dumpSize (DumpState *D, size_t x) |
static void | dumpInt (DumpState *D, int x) |
static void | dumpNumber (DumpState *D, lua_Number x) |
static void | dumpInteger (DumpState *D, lua_Integer x) |
static void | dumpString (DumpState *D, const TString *s) |
static void | dumpCode (DumpState *D, const Proto *f) |
static void | dumpFunction (DumpState *D, const Proto *f, TString *psource) |
static void | dumpConstants (DumpState *D, const Proto *f) |
static void | dumpProtos (DumpState *D, const Proto *f) |
static void | dumpUpvalues (DumpState *D, const Proto *f) |
static void | dumpDebug (DumpState *D, const Proto *f) |
static void | dumpHeader (DumpState *D) |
int | luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip) |
#define DIBS ((sizeof(size_t) * 8 / 7) + 1) |
Definition at line 59 of file lua-5.4.3/src/ldump.c.
Referenced by dumpSize().
Definition at line 37 of file lua-5.4.3/src/ldump.c.
Referenced by dumpHeader().
#define dumpVar | ( | D, | |
x ) dumpVector(D,&x,1) |
Definition at line 49 of file lua-5.4.3/src/ldump.c.
Referenced by dumpByte(), dumpInteger(), and dumpNumber().
#define dumpVector | ( | D, | |
v, | |||
n ) dumpBlock(D,v,(n)*sizeof((v)[0])) |
Definition at line 35 of file lua-5.4.3/src/ldump.c.
Referenced by dumpCode(), dumpDebug(), dumpSize(), and dumpString().
#define ldump_c |
Definition at line 7 of file lua-5.4.3/src/ldump.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/ldump.c.
|
static |
Definition at line 40 of file lua-5.4.3/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.4.3/src/ldump.c.
References dumpVar.
Referenced by dumpConstants(), dumpFunction(), dumpHeader(), dumpUpvalues(), and luaU_dump().
Definition at line 100 of file lua-5.4.3/src/ldump.c.
References Proto::code, dumpInt(), dumpVector, and Proto::sizecode.
Referenced by dumpFunction().
Definition at line 108 of file lua-5.4.3/src/ldump.c.
References dumpByte(), dumpInt(), dumpInteger(), dumpNumber(), dumpString(), fltvalue, ivalue, Proto::k, lua_assert, LUA_VFALSE, LUA_VLNGSTR, LUA_VNIL, LUA_VNUMFLT, LUA_VNUMINT, LUA_VSHRSTR, LUA_VTRUE, Proto::sizek, tsvalue, and ttypetag.
Referenced by dumpFunction().
Definition at line 154 of file lua-5.4.3/src/ldump.c.
References Proto::abslineinfo, dumpInt(), dumpString(), dumpVector, LocVar::endpc, AbsLineInfo::line, Proto::lineinfo, Proto::locvars, AbsLineInfo::pc, Proto::sizeabslineinfo, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizeupvalues, LocVar::startpc, DumpState::strip, Proto::upvalues, and LocVar::varname.
Referenced by dumpFunction().
Definition at line 179 of file lua-5.4.3/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 197 of file lua-5.4.3/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 73 of file lua-5.4.3/src/ldump.c.
References dumpSize().
Referenced by dumpCode(), dumpConstants(), dumpDebug(), dumpFunction(), dumpProtos(), and dumpUpvalues().
|
static |
Definition at line 83 of file lua-5.4.3/src/ldump.c.
References dumpVar.
Referenced by dumpConstants(), and dumpHeader().
|
static |
Definition at line 78 of file lua-5.4.3/src/ldump.c.
References dumpVar.
Referenced by dumpConstants(), and dumpHeader().
Definition at line 134 of file lua-5.4.3/src/ldump.c.
References dumpFunction(), dumpInt(), Proto::p, Proto::sizep, and Proto::source.
Referenced by dumpFunction().
|
static |
Definition at line 61 of file lua-5.4.3/src/ldump.c.
References DIBS, and dumpVector.
Referenced by dumpInt(), and dumpString().
Definition at line 88 of file lua-5.4.3/src/ldump.c.
References dumpSize(), dumpVector, getstr, NULL, s, and tsslen.
Referenced by dumpConstants(), dumpDebug(), and dumpFunction().
Definition at line 143 of file lua-5.4.3/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 213 of file lua-5.4.3/src/ldump.c.
References DumpState::data, dumpByte(), dumpFunction(), dumpHeader(), DumpState::L, NULL, Proto::sizeupvalues, DumpState::status, DumpState::strip, and DumpState::writer.