diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-04-07 12:37:02 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-04-07 12:37:02 -0300 |
| commit | 0133610315f42f9ec35acacd028f31e4a95a16b5 (patch) | |
| tree | fd76c1531b5d17c6f2511be8b3cc4c5aad34037f | |
| parent | de04533dc020553a94ecb16480e55e51b1368dbf (diff) | |
| download | lua-0133610315f42f9ec35acacd028f31e4a95a16b5.tar.gz lua-0133610315f42f9ec35acacd028f31e4a95a16b5.tar.bz2 lua-0133610315f42f9ec35acacd028f31e4a95a16b5.zip | |
format for function prototypes.
| -rw-r--r-- | lundump.c | 10 | ||||
| -rw-r--r-- | lundump.h | 8 |
2 files changed, 9 insertions, 9 deletions
| @@ -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 | ||
| 137 | static TProtoFunc* LoadFunction(ZIO* Z); | 137 | static TProtoFunc* LoadFunction (ZIO* Z); |
| 138 | 138 | ||
| 139 | static void LoadConstants (TProtoFunc* tf, ZIO* Z) | 139 | static 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 | */ |
| 227 | TProtoFunc* luaU_undump1(ZIO* Z) | 227 | TProtoFunc* 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 | */ |
| 240 | void luaU_testnumber(void) | 240 | void 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 | */ |
| 262 | void luaU_badconstant(char* s, int i, TObject* o, TProtoFunc* tf) | 262 | void 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]; |
| @@ -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 | ||
| 44 | TProtoFunc* luaU_undump1(ZIO* Z); /* load one chunk */ | 44 | TProtoFunc* luaU_undump1 (ZIO* Z); /* load one chunk */ |
| 45 | void luaU_testnumber(void); /* test number representation */ | 45 | void luaU_testnumber (void); /* test number representation */ |
| 46 | void luaU_badconstant(char* s, int i, TObject* o, TProtoFunc* tf); | 46 | void 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 */ |
