lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 1713b64065d0cf5909939bb29bd4181f567cb4e9
parent 671dc6eec24bc969bec22f7778386a4a19372f89
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 25 Oct 2002 18:30:27 -0300

Writer type must be public (so, in lua.h)

Diffstat:
Mlundump.h | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lundump.h b/lundump.h @@ -1,5 +1,5 @@ /* -** $Id: lundump.h,v 1.27 2002/08/12 13:37:19 roberto Exp roberto $ +** $Id: lundump.h,v 1.28 2002/10/09 13:42:01 roberto Exp roberto $ ** load pre-compiled Lua chunks ** See Copyright Notice in lua.h */ @@ -10,8 +10,6 @@ #include "lobject.h" #include "lzio.h" -typedef int (*Writer)(const void* p, size_t size, void* u); - /* load one chunk; from lundump.c */ Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff); @@ -19,7 +17,7 @@ Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff); int luaU_endianness (void); /* dump one chunk; from dump.c */ -void luaU_dump (const Proto* Main, Writer w, void* data); +void luaU_dump (lua_State *L, const Proto* Main, lua_Chunkwriter w, void* data); /* print one chunk; from print.c */ void luaU_print (const Proto* Main);