summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lundump.c10
-rw-r--r--lundump.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/lundump.c b/lundump.c
index a0079e26..8fd8f1d0 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.17 1999/03/29 16:16:18 lhf Exp $ 2** $Id: lundump.c,v 1.8 1999/03/30 20:29:34 roberto Exp roberto $
3** load bytecodes from files 3** load bytecodes from files
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -134,7 +134,7 @@ static void LoadLocals (TProtoFunc* tf, ZIO* Z)
134 tf->locvars[i].varname=NULL; 134 tf->locvars[i].varname=NULL;
135} 135}
136 136
137static TProtoFunc* LoadFunction(ZIO* Z); 137static TProtoFunc* LoadFunction (ZIO* Z);
138 138
139static void LoadConstants (TProtoFunc* tf, ZIO* Z) 139static void LoadConstants (TProtoFunc* tf, ZIO* Z)
140{ 140{
@@ -224,7 +224,7 @@ static TProtoFunc* LoadChunk (ZIO* Z)
224** load one chunk from a file or buffer 224** load one chunk from a file or buffer
225** return main if ok and NULL at EOF 225** return main if ok and NULL at EOF
226*/ 226*/
227TProtoFunc* luaU_undump1(ZIO* Z) 227TProtoFunc* luaU_undump1 (ZIO* Z)
228{ 228{
229 int c=zgetc(Z); 229 int c=zgetc(Z);
230 if (c==ID_CHUNK) 230 if (c==ID_CHUNK)
@@ -237,7 +237,7 @@ TProtoFunc* luaU_undump1(ZIO* Z)
237/* 237/*
238** test number representation 238** test number representation
239*/ 239*/
240void luaU_testnumber(void) 240void luaU_testnumber (void)
241{ 241{
242 if (sizeof(real)!=SIZEOF_NUMBER) 242 if (sizeof(real)!=SIZEOF_NUMBER)
243 luaL_verror("numbers have %d bytes; expected %d. see lundump.h", 243 luaL_verror("numbers have %d bytes; expected %d. see lundump.h",
@@ -259,7 +259,7 @@ void luaU_testnumber(void)
259/* 259/*
260* handle constants that cannot happen 260* handle constants that cannot happen
261*/ 261*/
262void luaU_badconstant(char* s, int i, TObject* o, TProtoFunc* tf) 262void luaU_badconstant (char* s, int i, TObject* o, TProtoFunc* tf)
263{ 263{
264 int t=ttype(o); 264 int t=ttype(o);
265 char* name= (t>0 || t<LUA_T_LINE) ? "?" : luaO_typenames[-t]; 265 char* name= (t>0 || t<LUA_T_LINE) ? "?" : luaO_typenames[-t];
diff --git a/lundump.h b/lundump.h
index 6b3d1101..399a72db 100644
--- a/lundump.h
+++ b/lundump.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.h,v 1.13 1999/03/29 16:16:18 lhf Exp $ 2** $Id: lundump.h,v 1.6 1999/03/30 20:29:34 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*/
@@ -41,9 +41,9 @@
41/* -- end of user configuration -- DO NOT CHANGE ANYTHING BELOW THIS LINE -- */ 41/* -- end of user configuration -- DO NOT CHANGE ANYTHING BELOW THIS LINE -- */
42 42
43 43
44TProtoFunc* luaU_undump1(ZIO* Z); /* load one chunk */ 44TProtoFunc* luaU_undump1 (ZIO* Z); /* load one chunk */
45void luaU_testnumber(void); /* test number representation */ 45void luaU_testnumber (void); /* test number representation */
46void luaU_badconstant(char* s, int i, TObject* o, TProtoFunc* tf); 46void luaU_badconstant (char* s, int i, TObject* o, TProtoFunc* tf);
47 /* handle cases that cannot happen */ 47 /* handle cases that cannot happen */
48 48
49/* definitions for headers of binary files */ 49/* definitions for headers of binary files */