aboutsummaryrefslogtreecommitdiff
path: root/llex.c
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 /llex.c
parentbb1cb7b9f112be1fb8453cc7ef4cbaf544850618 (diff)
downloadlua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.tar.gz
lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.tar.bz2
lua-5ca2709ba055901ba9d658aa2ca51e0682dfdb30.zip
small warnings
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c6
1 files changed, 3 insertions, 3 deletions
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 */