1/* $NetBSD$ */ 2 3/* 4** Id: lundump.h,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp 5** load precompiled Lua chunks 6** See Copyright Notice in lua.h 7*/ 8 9#ifndef lundump_h 10#define lundump_h 11 12#include "lobject.h" 13#include "lzio.h" 14 15/* load one chunk; from lundump.c */ 16LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 17 18/* make header; from lundump.c */ 19LUAI_FUNC void luaU_header (char* h); 20 21/* dump one chunk; from ldump.c */ 22LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 23 24#ifdef luac_c 25/* print one chunk; from print.c */ 26LUAI_FUNC void luaU_print (const Proto* f, int full); 27#endif 28 29/* for header of binary files -- this is Lua 5.1 */ 30#define LUAC_VERSION 0x51 31 32/* for header of binary files -- this is the official format */ 33#define LUAC_FORMAT 0 34 35/* size of header of binary files */ 36#define LUAC_HEADERSIZE 12 37 38#endif 39