diff src/lua/lundump.h @ 11:27763b933818

raise lua sources up one level
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 11:07:39 -0600
parents src/lua/src/lundump.h@f9f4f1b99eed
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/lua/lundump.h	Sat Mar 03 11:07:39 2012 -0600
     1.3 @@ -0,0 +1,36 @@
     1.4 +/*
     1.5 +** $Id: lundump.h,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp $
     1.6 +** load precompiled Lua chunks
     1.7 +** See Copyright Notice in lua.h
     1.8 +*/
     1.9 +
    1.10 +#ifndef lundump_h
    1.11 +#define lundump_h
    1.12 +
    1.13 +#include "lobject.h"
    1.14 +#include "lzio.h"
    1.15 +
    1.16 +/* load one chunk; from lundump.c */
    1.17 +LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name);
    1.18 +
    1.19 +/* make header; from lundump.c */
    1.20 +LUAI_FUNC void luaU_header (char* h);
    1.21 +
    1.22 +/* dump one chunk; from ldump.c */
    1.23 +LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
    1.24 +
    1.25 +#ifdef luac_c
    1.26 +/* print one chunk; from print.c */
    1.27 +LUAI_FUNC void luaU_print (const Proto* f, int full);
    1.28 +#endif
    1.29 +
    1.30 +/* for header of binary files -- this is Lua 5.1 */
    1.31 +#define LUAC_VERSION		0x51
    1.32 +
    1.33 +/* for header of binary files -- this is the official format */
    1.34 +#define LUAC_FORMAT		0
    1.35 +
    1.36 +/* size of header of binary files */
    1.37 +#define LUAC_HEADERSIZE		12
    1.38 +
    1.39 +#endif