The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
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.

Macros

#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 ClosureluaU_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)
 

Macro Definition Documentation

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

Definition at line 25 of file lundump.h.

Referenced by DumpHeader(), and LoadHeader().

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

Definition at line 22 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 
)
LUAI_FUNC void luaU_header ( lu_byte h)

Definition at line 243 of file lundump.cpp.

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

Referenced by DumpHeader(), and LoadHeader().

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