aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-18 16:45:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-18 16:45:55 -0300
commit07b009c3712c062957593d0a4fa82e0fe9023024 (patch)
tree1628514f820fdbf452d6e9c524a22d3dd14198b2 /lparser.h
parentf71156744851701b5d5fabdda5061b31e53f8f14 (diff)
downloadlua-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.h b/lparser.h
index b08008ce..fdbb9b8a 100644
--- a/lparser.h
+++ b/lparser.h
@@ -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 */