Go to the source code of this file.
Macros | |
#define | LUAC_DATA "\x19\x93\r\n\x1a\n" |
#define | LUAC_INT 0x5678 |
#define | LUAC_NUM cast_num(370.5) |
#define | MYINT(s) (s[0]-'0') /* assume one-digit numerals */ |
#define | LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) |
#define | LUAC_FORMAT 0 /* this is the official format */ |
Functions | |
LUAI_FUNC LClosure * | luaU_undump (lua_State *L, ZIO *Z, const char *name) |
LUAI_FUNC int | luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip) |
#define LUAC_DATA "\x19\x93\r\n\x1a\n" |
Definition at line 16 of file lundump.h.
Referenced by checkHeader(), checkliteral(), and dumpHeader().
#define LUAC_FORMAT 0 /* this is the official format */ |
Definition at line 27 of file lundump.h.
Referenced by checkHeader(), and dumpHeader().
#define LUAC_INT 0x5678 |
Definition at line 18 of file lundump.h.
Referenced by checkHeader(), and dumpHeader().
#define LUAC_NUM cast_num(370.5) |
Definition at line 19 of file lundump.h.
Referenced by checkHeader(), and dumpHeader().
#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) |
Definition at line 25 of file lundump.h.
Referenced by checkHeader(), and dumpHeader().
LUAI_FUNC int luaU_dump | ( | lua_State * | L, |
const Proto * | f, | ||
lua_Writer | w, | ||
void * | data, | ||
int | strip | ||
) |
Definition at line 213 of file ldump.cpp.
References DumpState::data, dumpByte(), dumpFunction(), dumpHeader(), DumpState::L, Proto::sizeupvalues, DumpState::status, DumpState::strip, w, and DumpState::writer.
Referenced by lua_dump().
Definition at line 311 of file lundump.cpp.
References checkHeader(), LoadState::L, loadByte(), loadFunction(), lua_assert, LUA_SIGNATURE, luaC_objbarrier, luaD_inctop(), luaF_newLclosure(), luaF_newproto(), luai_verifycode, LoadState::name, LClosure::p, setclLvalue2s, Proto::sizeupvalues, lua_State::top, and LoadState::Z.
Referenced by f_parser().