diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-12-03 13:45:15 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-12-03 13:45:15 -0200 |
| commit | 5ca2709ba055901ba9d658aa2ca51e0682dfdb30 (patch) | |
| tree | 89a4b5b3252e0c50eed39132493f6a5a362660ac | |
| parent | bb1cb7b9f112be1fb8453cc7ef4cbaf544850618 (diff) | |
| download | lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.tar.gz lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.tar.bz2 lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.zip | |
small warnings
Diffstat (limited to '')
| -rw-r--r-- | lapi.c | 4 | ||||
| -rw-r--r-- | lbuiltin.c | 4 | ||||
| -rw-r--r-- | llex.c | 6 | ||||
| -rw-r--r-- | lvm.c | 4 |
4 files changed, 9 insertions, 9 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 1.27 1998/08/21 17:43:44 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.28 1998/09/07 18:59:59 roberto Exp roberto $ |
| 3 | ** Lua API | 3 | ** Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -34,7 +34,7 @@ TObject *luaA_Address (lua_Object o) { | |||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | 36 | ||
| 37 | static int normalized_type (TObject *o) | 37 | static lua_Type normalized_type (TObject *o) |
| 38 | { | 38 | { |
| 39 | int t = ttype(o); | 39 | int t = ttype(o); |
| 40 | switch (t) { | 40 | switch (t) { |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbuiltin.c,v 1.34 1998/08/21 17:43:44 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.35 1998/11/13 16:39:18 roberto Exp roberto $ |
| 3 | ** Built-in functions | 3 | ** Built-in functions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -549,7 +549,7 @@ static void testC (void) | |||
| 549 | char nome[2]; | 549 | char nome[2]; |
| 550 | char *s = luaL_check_string(1); | 550 | char *s = luaL_check_string(1); |
| 551 | nome[1] = 0; | 551 | nome[1] = 0; |
| 552 | while (1) { | 552 | for (;;) { |
| 553 | switch (*s++) { | 553 | switch (*s++) { |
| 554 | case '0': case '1': case '2': case '3': case '4': | 554 | case '0': case '1': case '2': case '3': case '4': |
| 555 | case '5': case '6': case '7': case '8': case '9': | 555 | case '5': case '6': case '7': case '8': case '9': |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llex.c,v 1.23 1998/07/06 22:04:58 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.24 1998/07/24 18:02:38 roberto Exp roberto $ |
| 3 | ** Lexical Analizer | 3 | ** Lexical Analizer |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -234,7 +234,7 @@ static void inclinenumber (LexState *LS) | |||
| 234 | static int read_long_string (LexState *LS) | 234 | static int read_long_string (LexState *LS) |
| 235 | { | 235 | { |
| 236 | int cont = 0; | 236 | int cont = 0; |
| 237 | while (1) { | 237 | for (;;) { |
| 238 | switch (LS->current) { | 238 | switch (LS->current) { |
| 239 | case EOZ: | 239 | case EOZ: |
| 240 | luaX_error(LS, "unfinished long string"); | 240 | luaX_error(LS, "unfinished long string"); |
| @@ -272,7 +272,7 @@ static int read_long_string (LexState *LS) | |||
| 272 | int luaX_lex (LexState *LS) { | 272 | int luaX_lex (LexState *LS) { |
| 273 | double a; | 273 | double a; |
| 274 | luaL_resetbuffer(); | 274 | luaL_resetbuffer(); |
| 275 | while (1) { | 275 | for (;;) { |
| 276 | switch (LS->current) { | 276 | switch (LS->current) { |
| 277 | 277 | ||
| 278 | case ' ': case '\t': case '\r': /* CR: to avoid problems with DOS */ | 278 | case ' ': case '\t': case '\r': /* CR: to avoid problems with DOS */ |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.30 1998/06/11 18:21:37 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.31 1998/07/12 16:16:43 roberto Exp roberto $ |
| 3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -316,7 +316,7 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) | |||
| 316 | luaC_checkGC(); | 316 | luaC_checkGC(); |
| 317 | adjust_varargs(base+(*pc++)-ZEROVARARG); | 317 | adjust_varargs(base+(*pc++)-ZEROVARARG); |
| 318 | } | 318 | } |
| 319 | while (1) { | 319 | for (;;) { |
| 320 | int aux; | 320 | int aux; |
| 321 | switch ((OpCode)(aux = *pc++)) { | 321 | switch ((OpCode)(aux = *pc++)) { |
| 322 | 322 | ||
