1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
lua/lundump.h

29 lines
776 B
C
Raw Normal View History

1998-01-14 13:49:01 -02:00
/*
** $Id: lundump.h,v 1.38 2011/05/17 12:42:43 roberto Exp roberto $
2005-11-16 09:55:07 -02:00
** load precompiled Lua chunks
1998-01-14 13:49:01 -02:00
** See Copyright Notice in lua.h
*/
#ifndef lundump_h
#define lundump_h
#include "lobject.h"
#include "lzio.h"
2002-06-05 14:26:23 -03:00
/* load one chunk; from lundump.c */
LUAI_FUNC Closure* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name);
1999-12-02 17:11:51 -02:00
2005-11-16 09:55:07 -02:00
/* make header; from lundump.c */
LUAI_FUNC void luaU_header (lu_byte* h);
1999-03-30 17:29:34 -03:00
2003-01-27 13:52:57 -02:00
/* dump one chunk; from ldump.c */
2005-11-16 09:55:07 -02:00
LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
2002-06-05 14:26:23 -03:00
/* data to catch conversion errors */
#define LUAC_TAIL "\x19\x93\r\n\x1a\n"
1998-01-14 13:49:01 -02:00
/* size in bytes of header of binary files */
#define LUAC_HEADERSIZE (sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char))
1999-03-30 17:29:34 -03:00
#endif