diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-18 16:45:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-18 16:45:55 -0300 |
| commit | 07b009c3712c062957593d0a4fa82e0fe9023024 (patch) | |
| tree | 1628514f820fdbf452d6e9c524a22d3dd14198b2 /lparser.h | |
| parent | f71156744851701b5d5fabdda5061b31e53f8f14 (diff) | |
| download | lua-07b009c3712c062957593d0a4fa82e0fe9023024.tar.gz lua-07b009c3712c062957593d0a4fa82e0fe9023024.tar.bz2 lua-07b009c3712c062957593d0a4fa82e0fe9023024.zip | |
No need to limit variable declarations to 250
Only local variables, which use registers, need this low limit.
Diffstat (limited to 'lparser.h')
| -rw-r--r-- | lparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -128,7 +128,7 @@ typedef struct Labeldesc { | |||
| 128 | TString *name; /* label identifier */ | 128 | TString *name; /* label identifier */ |
| 129 | int pc; /* position in code */ | 129 | int pc; /* position in code */ |
| 130 | int line; /* line where it appeared */ | 130 | int line; /* line where it appeared */ |
| 131 | lu_byte nactvar; /* number of active variables in that position */ | 131 | short nactvar; /* number of active variables in that position */ |
| 132 | lu_byte close; /* true for goto that escapes upvalues */ | 132 | lu_byte close; /* true for goto that escapes upvalues */ |
| 133 | } Labeldesc; | 133 | } Labeldesc; |
| 134 | 134 | ||
| @@ -173,7 +173,7 @@ typedef struct FuncState { | |||
| 173 | int firstlocal; /* index of first local var (in Dyndata array) */ | 173 | int firstlocal; /* index of first local var (in Dyndata array) */ |
| 174 | int firstlabel; /* index of first label (in 'dyd->label->arr') */ | 174 | int firstlabel; /* index of first label (in 'dyd->label->arr') */ |
| 175 | short ndebugvars; /* number of elements in 'f->locvars' */ | 175 | short ndebugvars; /* number of elements in 'f->locvars' */ |
| 176 | lu_byte nactvar; /* number of active local variables */ | 176 | short nactvar; /* number of active variable declarations */ |
| 177 | lu_byte nups; /* number of upvalues */ | 177 | lu_byte nups; /* number of upvalues */ |
| 178 | lu_byte freereg; /* first free register */ | 178 | lu_byte freereg; /* first free register */ |
| 179 | lu_byte iwthabs; /* instructions issued since last absolute line info */ | 179 | lu_byte iwthabs; /* instructions issued since last absolute line info */ |
