aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
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 */