Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ceguilua/src/lua-5.0.3/lua/lundump.h @ 1808

Last change on this file since 1808 was 1803, checked in by rgrieder, 16 years ago

added files for lua 5.1.3, lua 5.0.3, CEGUILua-0.6.1 and CEGUILua-0.5.0b

  • Property svn:eol-style set to native
File size: 970 bytes
Line 
1/*
2** $Id: lundump.h,v 1.30 2003/04/07 20:34:20 lhf Exp $
3** load pre-compiled Lua chunks
4** See Copyright Notice in lua.h
5*/
6
7#ifndef lundump_h
8#define lundump_h
9
10#include "lobject.h"
11#include "lzio.h"
12
13/* load one chunk; from lundump.c */
14Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff);
15
16/* find byte order; from lundump.c */
17int luaU_endianness (void);
18
19/* dump one chunk; from ldump.c */
20void luaU_dump (lua_State* L, const Proto* Main, lua_Chunkwriter w, void* data);
21
22/* print one chunk; from print.c */
23void luaU_print (const Proto* Main);
24
25/* definitions for headers of binary files */
26#define LUA_SIGNATURE   "\033Lua"       /* binary files start with "<esc>Lua" */
27#define VERSION         0x50            /* last format change was in 5.0 */
28#define VERSION0        0x50            /* last major  change was in 5.0 */
29
30/* a multiple of PI for testing native format */
31/* multiplying by 1E7 gives non-trivial integer values */
32#define TEST_NUMBER     ((lua_Number)3.14159265358979323846E7)
33
34#endif
Note: See TracBrowser for help on using the repository browser.