diff options
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1685,7 +1685,7 @@ static void forbody (LexState *ls, int base, int line, int nvars, int isgen) { | |||
| 1685 | /* | 1685 | /* |
| 1686 | ** Control whether for-loop control variables are read-only | 1686 | ** Control whether for-loop control variables are read-only |
| 1687 | */ | 1687 | */ |
| 1688 | #if defined(LUA_COMPAT_LOOPVAR) | 1688 | #if LUA_COMPAT_LOOPVAR |
| 1689 | #define LOOPVARKIND VDKREG | 1689 | #define LOOPVARKIND VDKREG |
| 1690 | #else /* by default, these variables are read only */ | 1690 | #else /* by default, these variables are read only */ |
| 1691 | #define LOOPVARKIND RDKCONST | 1691 | #define LOOPVARKIND RDKCONST |
| @@ -2120,7 +2120,7 @@ static void statement (LexState *ls) { | |||
| 2120 | gotostat(ls, line); | 2120 | gotostat(ls, line); |
| 2121 | break; | 2121 | break; |
| 2122 | } | 2122 | } |
| 2123 | #if defined(LUA_COMPAT_GLOBAL) | 2123 | #if LUA_COMPAT_GLOBAL |
| 2124 | case TK_NAME: { | 2124 | case TK_NAME: { |
| 2125 | /* compatibility code to parse global keyword when "global" | 2125 | /* compatibility code to parse global keyword when "global" |
| 2126 | is not reserved */ | 2126 | is not reserved */ |
