aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-12-03 13:45:15 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-12-03 13:45:15 -0200
commit5ca2709ba055901ba9d658aa2ca51e0682dfdb30 (patch)
tree89a4b5b3252e0c50eed39132493f6a5a362660ac
parentbb1cb7b9f112be1fb8453cc7ef4cbaf544850618 (diff)
downloadlua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.tar.gz
lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.tar.bz2
lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.zip
small warnings
-rw-r--r--lapi.c4
-rw-r--r--lbuiltin.c4
-rw-r--r--llex.c6
-rw-r--r--lvm.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/lapi.c b/lapi.c
index 6db29a61..65cd28b4 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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
37static int normalized_type (TObject *o) 37static lua_Type normalized_type (TObject *o)
38{ 38{
39 int t = ttype(o); 39 int t = ttype(o);
40 switch (t) { 40 switch (t) {
diff --git a/lbuiltin.c b/lbuiltin.c
index 0707ea26..495f43d8 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -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':
diff --git a/llex.c b/llex.c
index e5570723..3c3cf430 100644
--- a/llex.c
+++ b/llex.c
@@ -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)
234static int read_long_string (LexState *LS) 234static 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)
272int luaX_lex (LexState *LS) { 272int 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 */
diff --git a/lvm.c b/lvm.c
index ace249ed..586267e7 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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