diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-30 10:18:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-30 10:18:54 -0300 |
commit | 94cbe4651156a84dd9114d7daaa61acd050adbe0 (patch) | |
tree | 38828b49afc061309c475c0ca6a05605ceefef1a /lparser.h | |
parent | 69b71a69197de0cb6f7f58f5d7c55d9a9a6e529d (diff) | |
download | lua-94cbe4651156a84dd9114d7daaa61acd050adbe0.tar.gz lua-94cbe4651156a84dd9114d7daaa61acd050adbe0.tar.bz2 lua-94cbe4651156a84dd9114d7daaa61acd050adbe0.zip |
Details
- small corrections in the manual
- ldo.c: 'docall' -> 'ccall' ('docall' already used in 'lua.c')
- comments
Diffstat (limited to 'lparser.h')
-rw-r--r-- | lparser.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | /* kinds of variables/expressions */ | 24 | /* kinds of variables/expressions */ |
25 | typedef enum { | 25 | typedef enum { |
26 | VVOID, /* when 'expdesc' describes the last expression a list, | 26 | VVOID, /* when 'expdesc' describes the last expression of a list, |
27 | this kind means an empty list (so, no expression) */ | 27 | this kind means an empty list (so, no expression) */ |
28 | VNIL, /* constant nil */ | 28 | VNIL, /* constant nil */ |
29 | VTRUE, /* constant true */ | 29 | VTRUE, /* constant true */ |
@@ -38,7 +38,8 @@ typedef enum { | |||
38 | VLOCAL, /* local variable; var.sidx = stack index (local register); | 38 | VLOCAL, /* local variable; var.sidx = stack index (local register); |
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 constant; info = absolute index in 'actvar.arr' */ | 41 | VCONST, /* compile-time <const> variable; |
42 | info = absolute index in 'actvar.arr' */ | ||
42 | VINDEXED, /* indexed variable; | 43 | VINDEXED, /* indexed variable; |
43 | ind.t = table register; | 44 | ind.t = table register; |
44 | ind.idx = key's R index */ | 45 | ind.idx = key's R index */ |