diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 10:38:56 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 10:38:56 -0300 |
| commit | 2cc94ac81bfc1e1c189f2b4c31cc46cb36e21682 (patch) | |
| tree | ccb7d1f5842ae0c24709ebd86ad284486dcb44c9 | |
| parent | 5f37134e64aec3a0414a41c11d6b055c667369d1 (diff) | |
| download | lua-2cc94ac81bfc1e1c189f2b4c31cc46cb36e21682.tar.gz lua-2cc94ac81bfc1e1c189f2b4c31cc46cb36e21682.tar.bz2 lua-2cc94ac81bfc1e1c189f2b4c31cc46cb36e21682.zip | |
avoid name clash with `sys/stat'
Diffstat (limited to '')
| -rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 1.136 2001/02/20 18:28:11 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.137 2001/02/22 18:59:59 roberto Exp roberto $ |
| 3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -1033,7 +1033,7 @@ static void breakstat (LexState *ls) { | |||
| 1033 | } | 1033 | } |
| 1034 | 1034 | ||
| 1035 | 1035 | ||
| 1036 | static int stat (LexState *ls) { | 1036 | static int statement (LexState *ls) { |
| 1037 | int line = ls->linenumber; /* may be needed for error messages */ | 1037 | int line = ls->linenumber; /* may be needed for error messages */ |
| 1038 | switch (ls->t.token) { | 1038 | switch (ls->t.token) { |
| 1039 | case TK_IF: { /* stat -> ifstat */ | 1039 | case TK_IF: { /* stat -> ifstat */ |
| @@ -1125,7 +1125,7 @@ static void chunk (LexState *ls) { | |||
| 1125 | /* chunk -> { stat [`;'] } */ | 1125 | /* chunk -> { stat [`;'] } */ |
| 1126 | int islast = 0; | 1126 | int islast = 0; |
| 1127 | while (!islast && !block_follow(ls->t.token)) { | 1127 | while (!islast && !block_follow(ls->t.token)) { |
| 1128 | islast = stat(ls); | 1128 | islast = statement(ls); |
| 1129 | optional(ls, ';'); | 1129 | optional(ls, ';'); |
| 1130 | lua_assert(ls->fs->stacklevel == ls->fs->nactloc); | 1130 | lua_assert(ls->fs->stacklevel == ls->fs->nactloc); |
| 1131 | } | 1131 | } |
