commit 2cc94ac81bfc1e1c189f2b4c31cc46cb36e21682
parent 5f37134e64aec3a0414a41c11d6b055c667369d1
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 23 Feb 2001 10:38:34 -0300
avoid name clash with `sys/stat'
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lparser.c b/lparser.c
@@ -1,5 +1,5 @@
/*
-** $Id: lparser.c,v 1.136 2001/02/20 18:28:11 roberto Exp roberto $
+** $Id: lparser.c,v 1.137 2001/02/22 18:59:59 roberto Exp roberto $
** LL(1) Parser and code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -1033,7 +1033,7 @@ static void breakstat (LexState *ls) {
}
-static int stat (LexState *ls) {
+static int statement (LexState *ls) {
int line = ls->linenumber; /* may be needed for error messages */
switch (ls->t.token) {
case TK_IF: { /* stat -> ifstat */
@@ -1125,7 +1125,7 @@ static void chunk (LexState *ls) {
/* chunk -> { stat [`;'] } */
int islast = 0;
while (!islast && !block_follow(ls->t.token)) {
- islast = stat(ls);
+ islast = statement(ls);
optional(ls, ';');
lua_assert(ls->fs->stacklevel == ls->fs->nactloc);
}