From 15c17c24facb6d7e6f837b87927a54a40a54aa36 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 14 Feb 1996 16:11:09 -0300 Subject: small improvements --- lex.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lex.c') diff --git a/lex.c b/lex.c index d883fcb9..bc73a3f8 100644 --- a/lex.c +++ b/lex.c @@ -1,4 +1,4 @@ -char *rcs_lex = "$Id: lex.c,v 2.26 1996/02/13 17:30:39 roberto Exp roberto $"; +char *rcs_lex = "$Id: lex.c,v 2.27 1996/02/14 13:35:51 roberto Exp roberto $"; #include @@ -16,8 +16,6 @@ char *rcs_lex = "$Id: lex.c,v 2.26 1996/02/13 17:30:39 roberto Exp roberto $"; #define MINBUFF 260 -#define lua_strcmp(a,b) (a[0]b[0]?(1):strcmp(a,b))) - #define next() { current = input(); } #define save(x) { *yytextLast++ = (x); } #define save_and_next() { save(current); next(); } @@ -165,12 +163,12 @@ int luaY_lex (void) while (isalnum(current) || current == '_') save_and_next(); *yytextLast = 0; - if (lua_strcmp(yytext, "debug") == 0) + if (strcmp(yytext, "debug") == 0) { luaY_lval.vInt = 1; return DEBUG; } - else if (lua_strcmp(yytext, "nodebug") == 0) + else if (strcmp(yytext, "nodebug") == 0) { luaY_lval.vInt = 0; return DEBUG; -- cgit v1.2.3-55-g6feb