diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-25 18:30:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-25 18:30:49 -0300 |
commit | 1713b64065d0cf5909939bb29bd4181f567cb4e9 (patch) | |
tree | 367add3feda7d27509d0dfb66f1a501fcb7913f1 /lundump.h | |
parent | 671dc6eec24bc969bec22f7778386a4a19372f89 (diff) | |
download | lua-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.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 | ||
13 | typedef 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 */ |
16 | Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff); | 14 | Proto* 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); | |||
19 | int luaU_endianness (void); | 17 | int luaU_endianness (void); |
20 | 18 | ||
21 | /* dump one chunk; from dump.c */ | 19 | /* dump one chunk; from dump.c */ |
22 | void luaU_dump (const Proto* Main, Writer w, void* data); | 20 | void 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 */ |
25 | void luaU_print (const Proto* Main); | 23 | void luaU_print (const Proto* Main); |