The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lundump.h
Go to the documentation of this file.
1 /*
2 ** load precompiled Lua chunks
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef lundump_h
7 #define lundump_h
8 
9 #include "lobject.h"
10 #include "lzio.h"
11 
12 /* load one chunk; from lundump.c */
13 LUAI_FUNC Closure* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name);
14 
15 /* make header; from lundump.c */
17 
18 /* dump one chunk; from ldump.c */
19 LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
20 
21 /* data to catch conversion errors */
22 #define LUAC_TAIL "\x19\x93\r\n\x1a\n"
23 
24 /* size in bytes of header of binary files */
25 #define LUAC_HEADERSIZE (sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char))
26 
27 #endif
Definition: lobject.h:466
#define LUAI_FUNC
Definition: luaconf.h:187
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Definition: glew.h:1347
LUAI_FUNC int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
Definition: ldump.cpp:161
std::string & strip(std::string &str)
Remove whitespace from the front and back of the string 'str'.
unsigned char lu_byte
Definition: llimits.h:26
GLubyte GLubyte GLubyte GLubyte w
Definition: glew.h:1858
Definition: lzio.h:53
int(* lua_Writer)(lua_State *L, const void *p, size_t sz, void *ud)
Definition: lua.h:63
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:5910
LUAI_FUNC void luaU_header(lu_byte *h)
Definition: lundump.cpp:243
GLuint const GLchar * name
Definition: glew.h:1782
Definition: lzio.h:22
LUAI_FUNC Closure * luaU_undump(lua_State *L, ZIO *Z, Mbuffer *buff, const char *name)
Definition: lundump.cpp:205
GLclampf f
Definition: glew.h:3024