diff options
Diffstat (limited to 'lparser.h')
-rw-r--r-- | lparser.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ typedef enum { | |||
35 | (string is fixed by the lexer) */ | 35 | (string is fixed by the lexer) */ |
36 | VNONRELOC, /* expression has its value in a fixed register; | 36 | VNONRELOC, /* expression has its value in a fixed register; |
37 | info = result register */ | 37 | info = result register */ |
38 | VLOCAL, /* local variable; var.sidx = stack index (local register); | 38 | VLOCAL, /* local variable; var.ridx = register index; |
39 | var.vidx = relative index in 'actvar.arr' */ | 39 | var.vidx = relative index in 'actvar.arr' */ |
40 | VUPVAL, /* upvalue variable; info = index of upvalue in 'upvalues' */ | 40 | VUPVAL, /* upvalue variable; info = index of upvalue in 'upvalues' */ |
41 | VCONST, /* compile-time <const> variable; | 41 | VCONST, /* compile-time <const> variable; |
@@ -77,7 +77,7 @@ typedef struct expdesc { | |||
77 | lu_byte t; /* table (register or upvalue) */ | 77 | lu_byte t; /* table (register or upvalue) */ |
78 | } ind; | 78 | } ind; |
79 | struct { /* for local variables */ | 79 | struct { /* for local variables */ |
80 | lu_byte sidx; /* index in the stack */ | 80 | lu_byte ridx; /* register holding the variable */ |
81 | unsigned short vidx; /* compiler index (in 'actvar.arr') */ | 81 | unsigned short vidx; /* compiler index (in 'actvar.arr') */ |
82 | } var; | 82 | } var; |
83 | } u; | 83 | } u; |
@@ -97,7 +97,7 @@ typedef union Vardesc { | |||
97 | struct { | 97 | struct { |
98 | TValuefields; /* constant value (if it is a compile-time constant) */ | 98 | TValuefields; /* constant value (if it is a compile-time constant) */ |
99 | lu_byte kind; | 99 | lu_byte kind; |
100 | lu_byte sidx; /* index of the variable in the stack */ | 100 | lu_byte ridx; /* register holding the variable */ |
101 | short pidx; /* index of the variable in the Proto's 'locvars' array */ | 101 | short pidx; /* index of the variable in the Proto's 'locvars' array */ |
102 | TString *name; /* variable name */ | 102 | TString *name; /* variable name */ |
103 | } vd; | 103 | } vd; |