Go to the source code of this file.
Classes | |
struct | LoadState |
Defines | |
#define | lundump_c |
#define | LUA_CORE |
#define | IF(c, s) if (c) error(S,s) |
#define | LoadMem(S, b, n, size) LoadBlock(S,b,(n)*(size)) |
#define | LoadByte(S) (lu_byte)LoadChar(S) |
#define | LoadVar(S, x) LoadMem(S,&x,1,sizeof(x)) |
#define | LoadVector(S, b, n, size) LoadMem(S,b,n,size) |
Functions | |
static void | error (LoadState *S, const char *why) |
static void | LoadBlock (LoadState *S, void *b, size_t size) |
static int | LoadChar (LoadState *S) |
static int | LoadInt (LoadState *S) |
static lua_Number | LoadNumber (LoadState *S) |
static TString * | LoadString (LoadState *S) |
static void | LoadCode (LoadState *S, Proto *f) |
static Proto * | LoadFunction (LoadState *S, TString *p) |
static void | LoadConstants (LoadState *S, Proto *f) |
static void | LoadDebug (LoadState *S, Proto *f) |
static void | LoadHeader (LoadState *S) |
Proto * | luaU_undump (lua_State *L, ZIO *Z, Mbuffer *buff, const char *name) |
void | luaU_header (char *h) |
#define IF | ( | c, | |||
s | ) | if (c) error(S,s) |
Definition at line 34 of file lundump.c.
Referenced by LoadBlock(), LoadFunction(), LoadHeader(), and LoadInt().
#define LoadByte | ( | S | ) | (lu_byte)LoadChar(S) |
Definition at line 44 of file lundump.c.
Referenced by LoadFunction().
#define LoadMem | ( | S, | |||
b, | |||||
n, | |||||
size | ) | LoadBlock(S,b,(n)*(size)) |
#define LoadVar | ( | S, | |||
x | ) | LoadMem(S,&x,1,sizeof(x)) |
Definition at line 45 of file lundump.c.
Referenced by LoadChar(), LoadInt(), LoadNumber(), and LoadString().
#define LoadVector | ( | S, | |||
b, | |||||
n, | |||||
size | ) | LoadMem(S,b,n,size) |
Definition at line 46 of file lundump.c.
Referenced by LoadCode(), and LoadDebug().
static void error | ( | LoadState * | S, | |
const char * | why | |||
) | [static] |
Definition at line 36 of file lundump.c.
References LoadState::L, LUA_ERRSYNTAX, luaD_throw(), luaO_pushfstring(), and LoadState::name.
Referenced by _rk_Remokon::_rk_Remokon(), cl2GlobalInit(), cl2RunOnceGetExitCode(), current_iap_is_cellular(), er_log_base(), FUNC(), GetBody(), _rk_Remokon::gotJabberError(), gx_error_new(), gx_error_new_valist(), LoadConstants(), LoadFunction(), CUploader::NextOldFileL(), rb_parse_interval(), rb_parse_moment(), CUtTimer::RunL(), CActiveRunG::RunL(), sa_Array_start(), and worker_task().
static void LoadBlock | ( | LoadState * | S, | |
void * | b, | |||
size_t | size | |||
) | [static] |
Definition at line 48 of file lundump.c.
References IF, luaZ_read(), and LoadState::Z.
Referenced by LoadHeader(), and LoadString().
static int LoadChar | ( | LoadState * | S | ) | [static] |
Definition at line 90 of file lundump.c.
References Proto::code, LoadState::L, LoadInt(), LoadVector, luaM_newvector, and Proto::sizecode.
Referenced by LoadFunction().
Definition at line 100 of file lundump.c.
References error(), Proto::k, LoadState::L, LoadChar(), LoadFunction(), LoadInt(), LoadNumber(), LoadString(), LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, luaM_newvector, Proto::p, setbvalue, setnilvalue, setnvalue, setsvalue2n, Proto::sizek, Proto::sizep, and Proto::source.
Referenced by LoadFunction().
Definition at line 137 of file lundump.c.
References LocVar::endpc, LoadState::L, Proto::lineinfo, LoadInt(), LoadString(), LoadVector, Proto::locvars, luaM_newvector, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizeupvalues, LocVar::startpc, Proto::upvalues, and LocVar::varname.
Referenced by LoadFunction().
Definition at line 161 of file lundump.c.
References error(), f(), IF, incr_top, Proto::is_vararg, LoadState::L, Proto::lastlinedefined, Proto::linedefined, LoadByte, LoadCode(), LoadConstants(), LoadDebug(), LoadInt(), LoadString(), luaF_newproto(), luaG_checkcode(), LUAI_MAXCCALLS, Proto::maxstacksize, lua_State::nCcalls, Proto::numparams, Proto::nups, setptvalue2s, Proto::source, and lua_State::top.
Referenced by LoadConstants(), and luaU_undump().
static void LoadHeader | ( | LoadState * | S | ) | [static] |
Definition at line 183 of file lundump.c.
References IF, LoadBlock(), LUAC_HEADERSIZE, and luaU_header().
Referenced by luaU_undump().
static int LoadInt | ( | LoadState * | S | ) | [static] |
Definition at line 61 of file lundump.c.
Referenced by LoadCode(), LoadConstants(), LoadDebug(), and LoadFunction().
static lua_Number LoadNumber | ( | LoadState * | S | ) | [static] |
Definition at line 76 of file lundump.c.
References LoadState::b, LoadState::L, LoadBlock(), LoadVar, luaS_newlstr(), and luaZ_openspace().
Referenced by LoadConstants(), LoadDebug(), and LoadFunction().
void luaU_header | ( | char * | h | ) |
Definition at line 214 of file lundump.c.
References LUA_SIGNATURE, LUAC_FORMAT, and LUAC_VERSION.
Referenced by DumpHeader(), and LoadHeader().
Definition at line 195 of file lundump.c.
References LoadState::b, LoadState::L, LoadFunction(), LoadHeader(), LUA_SIGNATURE, luaS_newliteral, LoadState::name, S, and LoadState::Z.
Referenced by f_parser().
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:00 2011 by Doxygen 1.6.1