rlm@1: /* rlm@1: ** $Id: lundump.h,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp $ rlm@1: ** load precompiled Lua chunks rlm@1: ** See Copyright Notice in lua.h rlm@1: */ rlm@1: rlm@1: #ifndef lundump_h rlm@1: #define lundump_h rlm@1: rlm@1: #include "lobject.h" rlm@1: #include "lzio.h" rlm@1: rlm@1: /* load one chunk; from lundump.c */ rlm@1: LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); rlm@1: rlm@1: /* make header; from lundump.c */ rlm@1: LUAI_FUNC void luaU_header (char* h); rlm@1: rlm@1: /* dump one chunk; from ldump.c */ rlm@1: LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); rlm@1: rlm@1: #ifdef luac_c rlm@1: /* print one chunk; from print.c */ rlm@1: LUAI_FUNC void luaU_print (const Proto* f, int full); rlm@1: #endif rlm@1: rlm@1: /* for header of binary files -- this is Lua 5.1 */ rlm@1: #define LUAC_VERSION 0x51 rlm@1: rlm@1: /* for header of binary files -- this is the official format */ rlm@1: #define LUAC_FORMAT 0 rlm@1: rlm@1: /* size of header of binary files */ rlm@1: #define LUAC_HEADERSIZE 12 rlm@1: rlm@1: #endif