summaryrefslogtreecommitdiff
path: root/libs/liblua/src/lparser.h
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2021-04-03 15:33:54 +0300
committerdartraiden <wowemuh@gmail.com>2021-04-03 15:33:54 +0300
commit875bc74fa5fe083ba0b5c5a785c53ec0f49b9a1b (patch)
tree8c025467c2f85d9a9b7bb2fdd644cee4a9996d7f /libs/liblua/src/lparser.h
parenta0970c309b5c9cb655f58ef3c5154296e975580e (diff)
liblua: update to 5.4.3
Diffstat (limited to 'libs/liblua/src/lparser.h')
-rw-r--r--libs/liblua/src/lparser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/liblua/src/lparser.h b/libs/liblua/src/lparser.h
index 2e6dae72f2..5e4500f181 100644
--- a/libs/liblua/src/lparser.h
+++ b/libs/liblua/src/lparser.h
@@ -35,7 +35,7 @@ typedef enum {
(string is fixed by the lexer) */
VNONRELOC, /* expression has its value in a fixed register;
info = result register */
- VLOCAL, /* local variable; var.sidx = stack index (local register);
+ VLOCAL, /* local variable; var.ridx = register index;
var.vidx = relative index in 'actvar.arr' */
VUPVAL, /* upvalue variable; info = index of upvalue in 'upvalues' */
VCONST, /* compile-time <const> variable;
@@ -77,7 +77,7 @@ typedef struct expdesc {
lu_byte t; /* table (register or upvalue) */
} ind;
struct { /* for local variables */
- lu_byte sidx; /* index in the stack */
+ lu_byte ridx; /* register holding the variable */
unsigned short vidx; /* compiler index (in 'actvar.arr') */
} var;
} u;
@@ -97,7 +97,7 @@ typedef union Vardesc {
struct {
TValuefields; /* constant value (if it is a compile-time constant) */
lu_byte kind;
- lu_byte sidx; /* index of the variable in the stack */
+ lu_byte ridx; /* register holding the variable */
short pidx; /* index of the variable in the Proto's 'locvars' array */
TString *name; /* variable name */
} vd;