Defines | Functions

lua/lundump.h File Reference

#include "lobject.h"
#include "lzio.h"
Include dependency graph for lundump.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LUAC_TAIL   "\x19\x93\r\n\x1a\n"
#define LUAC_HEADERSIZE   (sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char))

Functions

LUAI_FUNC ProtoluaU_undump (lua_State *L, ZIO *Z, Mbuffer *buff, const char *name)
LUAI_FUNC void luaU_header (lu_byte *h)
LUAI_FUNC int luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)

Define Documentation

#define LUAC_HEADERSIZE   (sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char))

Definition at line 26 of file lundump.h.

Referenced by DumpHeader(), and LoadHeader().

#define LUAC_TAIL   "\x19\x93\r\n\x1a\n"

Definition at line 23 of file lundump.h.

Referenced by luaU_header().


Function Documentation

LUAI_FUNC int luaU_dump ( lua_State L,
const Proto f,
lua_Writer  w,
void *  data,
int  strip 
)

Definition at line 161 of file ldump.c.

References DumpState::data, DumpFunction(), DumpHeader(), DumpState::L, DumpState::status, DumpState::strip, and DumpState::writer.

Referenced by lua_dump(), and pmain().

Here is the call graph for this function:

Here is the caller graph for this function:

LUAI_FUNC void luaU_header ( lu_byte h  ) 

Definition at line 230 of file lundump.c.

References cast_byte, FORMAT, LUA_SIGNATURE, LUAC_TAIL, and VERSION.

Referenced by DumpHeader(), and LoadHeader().

Here is the caller graph for this function:

LUAI_FUNC Proto* luaU_undump ( lua_State L,
ZIO Z,
Mbuffer buff,
const char *  name 
)

Definition at line 205 of file lundump.c.

References LoadState::b, LoadState::L, LoadFunction(), LoadHeader(), LUA_SIGNATURE, luai_verifycode, LoadState::name, and LoadState::Z.

Referenced by f_parser().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:08:20 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs