From 2cc94ac81bfc1e1c189f2b4c31cc46cb36e21682 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 23 Feb 2001 10:38:56 -0300 Subject: avoid name clash with `sys/stat' --- lparser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 17dd2983..bb4ea097 100644 --- 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); } -- cgit v1.2.3-55-g6feb