lua/lundump.h

Go to the documentation of this file.
00001 /*
00002 ** $Id: lundump.h,v 1.2 2004/03/23 05:09:14 jbj Exp $
00003 ** load pre-compiled 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 /*@null@*/
00015 Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff)
00016         /*@*/;
00017 
00018 /* find byte order; from lundump.c */
00019 int luaU_endianness (void)
00020         /*@*/;
00021 
00022 /* dump one chunk; from ldump.c */
00023 void luaU_dump (lua_State* L, const Proto* Main, lua_Chunkwriter w, void* data)
00024         /*@*/;
00025 
00026 /* print one chunk; from print.c */
00027 /*@unused@*/
00028 void luaU_print (const Proto* Main)
00029         /*@*/;
00030 
00031 /* definitions for headers of binary files */
00032 #define LUA_SIGNATURE   "\033Lua"       /* binary files start with "<esc>Lua" */
00033 #define VERSION         0x50            /* last format change was in 5.0 */
00034 #define VERSION0        0x50            /* last major  change was in 5.0 */
00035 
00036 /* a multiple of PI for testing native format */
00037 /* multiplying by 1E7 gives non-trivial integer values */
00038 #define TEST_NUMBER     ((lua_Number)3.14159265358979323846E7)
00039 
00040 #endif

Generated on Fri Oct 12 08:44:54 2007 for rpm by  doxygen 1.5.2