lua/lundump.h

Go to the documentation of this file.
00001 /*
00002 ** $Id: lundump.h,v 1.44 2011/05/06 13:35:17 lhf Exp $
00003 ** load precompiled Lua chunks
00004 ** See Copyright Notice in lua.h
00005 */
00006 
00007 #ifndef lundump_h
00008 #define lundump_h
00009 
00010 #include "lobject.h"
00011 #include "lzio.h"
00012 
00013 /* load one chunk; from lundump.c */
00014 LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name);
00015 
00016 /* make header; from lundump.c */
00017 LUAI_FUNC void luaU_header (lu_byte* h);
00018 
00019 /* dump one chunk; from ldump.c */
00020 LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
00021 
00022 /* data to catch conversion errors */
00023 #define LUAC_TAIL       "\x19\x93\r\n\x1a\n"
00024 
00025 /* size in bytes of header of binary files */
00026 #define LUAC_HEADERSIZE     (sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char))
00027 
00028 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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