diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2026-01-20 13:06:16 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2026-01-20 13:06:16 -0300 |
| commit | e992c6a95939c8e1fe357bfce481e0d0c762c3c6 (patch) | |
| tree | 5755e2d0ce6b8e7bbca0d7c1cebf6b51b0d7e607 /lparser.c | |
| parent | f5d1e8639bf5df24c761602354218df21f796a30 (diff) | |
| download | lua-e992c6a95939c8e1fe357bfce481e0d0c762c3c6.tar.gz lua-e992c6a95939c8e1fe357bfce481e0d0c762c3c6.tar.bz2 lua-e992c6a95939c8e1fe357bfce481e0d0c762c3c6.zip | |
Some compilation options configurable from makefile
Compilation options LUA_COMPAT_GLOBAL, LUA_COMPAT_LOOPVAR, and
LUA_READLINELIB do not affect the API, so they can be changed
through the make file.
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 */ |
