1 /* $NetBSD: lundump.h,v 1.1.1.2 2012/03/15 00:08:04 alnsn Exp $ */
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
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
);
25 /* print one chunk; from print.c */
26 LUAI_FUNC
void luaU_print (const Proto
* f
, int full
);
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 */
35 /* size of header of binary files */
36 #define LUAC_HEADERSIZE 12