Nut/OS  4.10.3
API Reference
lundump.h
Go to the documentation of this file.
00001 /*
00002 ** $Id: lundump.h 2345 2008-10-10 11:52:25Z haraldkipp $
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 <lua/lobject.h>
00011 #include <lua/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 (char* 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 #ifdef luac_c
00023 /* print one chunk; from print.c */
00024 LUAI_FUNC void luaU_print (const Proto* f, int full);
00025 #endif
00026 
00027 /* for header of binary files -- this is Lua 5.1 */
00028 #define LUAC_VERSION            0x51
00029 
00030 /* for header of binary files -- this is the official format */
00031 #define LUAC_FORMAT             0
00032 
00033 /* size of header of binary files */
00034 #define LUAC_HEADERSIZE         12
00035 
00036 #endif