diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-17 16:49:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-17 16:49:15 -0300 |
commit | 67578ec51f1a3ec2c967f15d370067caf9e0b87b (patch) | |
tree | d77b292ddec33d7e6987bae808fa1db250ebd830 /ldump.c | |
parent | c2bb9abceceef125554595e23b7cc18ad3555c7c (diff) | |
download | lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.gz lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.bz2 lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.zip |
several small details
Diffstat (limited to 'ldump.c')
-rw-r--r-- | ldump.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldump.c,v 2.4 2004/10/04 19:01:12 roberto Exp roberto $ | 2 | ** $Id: ldump.c,v 2.5 2005/05/05 20:47:02 roberto Exp roberto $ |
3 | ** save pre-compiled Lua chunks | 3 | ** save pre-compiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | typedef struct { | 22 | typedef struct { |
23 | lua_State* L; | 23 | lua_State* L; |
24 | lua_Chunkwriter writer; | 24 | lua_Writer writer; |
25 | void* data; | 25 | void* data; |
26 | int strip; | 26 | int strip; |
27 | int status; | 27 | int status; |
@@ -164,7 +164,8 @@ static void DumpHeader(DumpState* D) | |||
164 | /* | 164 | /* |
165 | ** dump Lua function as precompiled chunk | 165 | ** dump Lua function as precompiled chunk |
166 | */ | 166 | */ |
167 | int luaU_dump (lua_State* L, const Proto* f, lua_Chunkwriter w, void* data, int strip) | 167 | int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, |
168 | int strip) | ||
168 | { | 169 | { |
169 | DumpState D; | 170 | DumpState D; |
170 | D.L=L; | 171 | D.L=L; |