tools/llvm: Do not build with symbols
[minix3.git] / external / mit / lua / dist / src / lundump.h
blobe49af401818c2e256f4d575b4aa5b7cec9c1df87
1 /* $NetBSD: lundump.h,v 1.1.1.2 2012/03/15 00:08:04 alnsn Exp $ */
3 /*
4 ** $Id: lundump.h,v 1.1.1.2 2012/03/15 00:08:04 alnsn Exp $
5 ** load precompiled Lua chunks
6 ** See Copyright Notice in lua.h
7 */
9 #ifndef lundump_h
10 #define lundump_h
12 #include "lobject.h"
13 #include "lzio.h"
15 /* load one chunk; from lundump.c */
16 LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name);
18 /* make header; from lundump.c */
19 LUAI_FUNC void luaU_header (char* h);
21 /* dump one chunk; from ldump.c */
22 LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
24 #ifdef luac_c
25 /* print one chunk; from print.c */
26 LUAI_FUNC void luaU_print (const Proto* f, int full);
27 #endif
29 /* for header of binary files -- this is Lua 5.1 */
30 #define LUAC_VERSION 0x51
32 /* for header of binary files -- this is the official format */
33 #define LUAC_FORMAT 0
35 /* size of header of binary files */
36 #define LUAC_HEADERSIZE 12
38 #endif