#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lundump.h"
Go to the source code of this file.
Data Structures | |
struct | DumpState |
Defines | |
#define | ldump_c |
#define | DumpVector(b, n, size, D) DumpBlock(b,(n)*(size),D) |
#define | DumpLiteral(s, D) DumpBlock("" s,(sizeof(s))-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 | DumpSize (size_t x, DumpState *D) |
static void | DumpNumber (lua_Number x, DumpState *D) |
static void | DumpString (TString *s, DumpState *D) |
static void | DumpCode (const Proto *f, DumpState *D) |
static void | DumpLocals (const Proto *f, DumpState *D) |
static void | DumpLines (const Proto *f, DumpState *D) |
static void | DumpUpvalues (const Proto *f, DumpState *D) |
static void | DumpFunction (const Proto *f, const TString *p, DumpState *D) |
static void | DumpConstants (const Proto *f, DumpState *D) |
static void | DumpHeader (DumpState *D) |
void | luaU_dump (lua_State *L, const Proto *Main, lua_Chunkwriter w, void *data) |
|
Definition at line 19 of file ldump.c. Referenced by DumpHeader(). |
|
Definition at line 18 of file ldump.c. Referenced by DumpCode(), and DumpLines(). |
|
|
|
Definition at line 27 of file ldump.c. References DumpState::data, DumpState::L, lua_lock, lua_unlock, and DumpState::write. Referenced by DumpByte(), DumpInt(), DumpNumber(), DumpSize(), and DumpString(). |
|
Definition at line 35 of file ldump.c. References DumpBlock(). Referenced by DumpConstants(), DumpFunction(), and DumpHeader(). |
|
Definition at line 73 of file ldump.c. References Proto::code, DumpInt(), DumpVector, and Proto::sizecode. Referenced by DumpFunction(). |
|
Definition at line 110 of file ldump.c. References DumpByte(), DumpFunction(), DumpInt(), DumpNumber(), DumpString(), Proto::k, lua_assert, nvalue, Proto::p, Proto::sizek, Proto::sizep, Proto::source, tsvalue, and ttype. Referenced by DumpFunction(). |
|
Definition at line 138 of file ldump.c. References DumpByte(), DumpCode(), DumpConstants(), DumpInt(), DumpLines(), DumpLocals(), DumpString(), DumpUpvalues(), Proto::is_vararg, Proto::lineDefined, Proto::maxstacksize, Proto::numparams, Proto::nups, and Proto::source. Referenced by DumpConstants(), and luaU_dump(). |
|
Definition at line 154 of file ldump.c. References DumpByte(), DumpLiteral, DumpNumber(), LUA_SIGNATURE, luaU_endianness(), SIZE_A, SIZE_B, SIZE_C, SIZE_OP, TEST_NUMBER, and VERSION. Referenced by luaU_dump(). |
|
Definition at line 42 of file ldump.c. References DumpBlock(). Referenced by DumpCode(), DumpConstants(), DumpFunction(), DumpLines(), DumpLocals(), and DumpUpvalues(). |
|
Definition at line 93 of file ldump.c. References DumpInt(), DumpVector, Proto::lineinfo, and Proto::sizelineinfo. Referenced by DumpFunction(). |
|
Definition at line 80 of file ldump.c. References DumpInt(), DumpString(), LocVar::endpc, Proto::locvars, Proto::sizelocvars, LocVar::startpc, and LocVar::varname. Referenced by DumpFunction(). |
|
Definition at line 54 of file ldump.c. References DumpBlock(). Referenced by DumpConstants(), and DumpHeader(). |
|
Definition at line 48 of file ldump.c. References DumpBlock(). Referenced by DumpString(). |
|
Definition at line 60 of file ldump.c. References DumpBlock(), DumpSize(), getstr, size, and TString::tsv. Referenced by DumpConstants(), DumpFunction(), DumpLocals(), and DumpUpvalues(). |
|
Definition at line 100 of file ldump.c. References DumpInt(), DumpString(), Proto::sizeupvalues, and Proto::upvalues. Referenced by DumpFunction(). |
|
Definition at line 174 of file ldump.c. References DumpState::data, DumpFunction(), DumpHeader(), DumpState::L, and DumpState::write. Referenced by lua_dump(). |