aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-25 18:30:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-25 18:30:49 -0300
commit1713b64065d0cf5909939bb29bd4181f567cb4e9 (patch)
tree367add3feda7d27509d0dfb66f1a501fcb7913f1 /lundump.h
parent671dc6eec24bc969bec22f7778386a4a19372f89 (diff)
downloadlua-1713b64065d0cf5909939bb29bd4181f567cb4e9.tar.gz
lua-1713b64065d0cf5909939bb29bd4181f567cb4e9.tar.bz2
lua-1713b64065d0cf5909939bb29bd4181f567cb4e9.zip
Writer type must be public (so, in lua.h)
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lundump.h b/lundump.h
index c5055826..44eb202b 100644
--- a/lundump.h
+++ b/lundump.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.h,v 1.27 2002/08/12 13:37:19 roberto Exp roberto $ 2** $Id: lundump.h,v 1.28 2002/10/09 13:42:01 roberto Exp roberto $
3** load pre-compiled Lua chunks 3** load pre-compiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -10,8 +10,6 @@
10#include "lobject.h" 10#include "lobject.h"
11#include "lzio.h" 11#include "lzio.h"
12 12
13typedef int (*Writer)(const void* p, size_t size, void* u);
14
15/* load one chunk; from lundump.c */ 13/* load one chunk; from lundump.c */
16Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff); 14Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff);
17 15
@@ -19,7 +17,7 @@ Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff);
19int luaU_endianness (void); 17int luaU_endianness (void);
20 18
21/* dump one chunk; from dump.c */ 19/* dump one chunk; from dump.c */
22void luaU_dump (const Proto* Main, Writer w, void* data); 20void luaU_dump (lua_State *L, const Proto* Main, lua_Chunkwriter w, void* data);
23 21
24/* print one chunk; from print.c */ 22/* print one chunk; from print.c */
25void luaU_print (const Proto* Main); 23void luaU_print (const Proto* Main);