lua

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

commit 0133610315f42f9ec35acacd028f31e4a95a16b5
parent de04533dc020553a94ecb16480e55e51b1368dbf
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  7 Apr 1999 12:36:40 -0300

format for function prototypes.

Diffstat:
Mlundump.c | 10+++++-----
Mlundump.h | 8++++----
2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/lundump.c b/lundump.c @@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 1.17 1999/03/29 16:16:18 lhf Exp $ +** $Id: lundump.c,v 1.8 1999/03/30 20:29:34 roberto Exp roberto $ ** load bytecodes from files ** See Copyright Notice in lua.h */ @@ -134,7 +134,7 @@ static void LoadLocals (TProtoFunc* tf, ZIO* Z) tf->locvars[i].varname=NULL; } -static TProtoFunc* LoadFunction(ZIO* Z); +static TProtoFunc* LoadFunction (ZIO* Z); static void LoadConstants (TProtoFunc* tf, ZIO* Z) { @@ -224,7 +224,7 @@ static TProtoFunc* LoadChunk (ZIO* Z) ** load one chunk from a file or buffer ** return main if ok and NULL at EOF */ -TProtoFunc* luaU_undump1(ZIO* Z) +TProtoFunc* luaU_undump1 (ZIO* Z) { int c=zgetc(Z); if (c==ID_CHUNK) @@ -237,7 +237,7 @@ TProtoFunc* luaU_undump1(ZIO* Z) /* ** test number representation */ -void luaU_testnumber(void) +void luaU_testnumber (void) { if (sizeof(real)!=SIZEOF_NUMBER) luaL_verror("numbers have %d bytes; expected %d. see lundump.h", @@ -259,7 +259,7 @@ void luaU_testnumber(void) /* * handle constants that cannot happen */ -void luaU_badconstant(char* s, int i, TObject* o, TProtoFunc* tf) +void luaU_badconstant (char* s, int i, TObject* o, TProtoFunc* tf) { int t=ttype(o); char* name= (t>0 || t<LUA_T_LINE) ? "?" : luaO_typenames[-t]; diff --git a/lundump.h b/lundump.h @@ -1,5 +1,5 @@ /* -** $Id: lundump.h,v 1.13 1999/03/29 16:16:18 lhf Exp $ +** $Id: lundump.h,v 1.6 1999/03/30 20:29:34 roberto Exp roberto $ ** load pre-compiled Lua chunks ** See Copyright Notice in lua.h */ @@ -41,9 +41,9 @@ /* -- end of user configuration -- DO NOT CHANGE ANYTHING BELOW THIS LINE -- */ -TProtoFunc* luaU_undump1(ZIO* Z); /* load one chunk */ -void luaU_testnumber(void); /* test number representation */ -void luaU_badconstant(char* s, int i, TObject* o, TProtoFunc* tf); +TProtoFunc* luaU_undump1 (ZIO* Z); /* load one chunk */ +void luaU_testnumber (void); /* test number representation */ +void luaU_badconstant (char* s, int i, TObject* o, TProtoFunc* tf); /* handle cases that cannot happen */ /* definitions for headers of binary files */