summaryrefslogtreecommitdiff
path: root/ldump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-17 16:49:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-17 16:49:15 -0300
commit67578ec51f1a3ec2c967f15d370067caf9e0b87b (patch)
treed77b292ddec33d7e6987bae808fa1db250ebd830 /ldump.c
parentc2bb9abceceef125554595e23b7cc18ad3555c7c (diff)
downloadlua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.gz
lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.bz2
lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.zip
several small details
Diffstat (limited to 'ldump.c')
-rw-r--r--ldump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldump.c b/ldump.c
index e3823a0d..c453175d 100644
--- a/ldump.c
+++ b/ldump.c
@@ -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
22typedef struct { 22typedef 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*/
167int luaU_dump (lua_State* L, const Proto* f, lua_Chunkwriter w, void* data, int strip) 167int 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;