diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-20 17:36:05 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-20 17:36:05 -0300 |
| commit | be05c444818989463dc307eed283503d391f93eb (patch) | |
| tree | 16e08bf2e0256a1aeffcd848379af98577aec602 /lparser.h | |
| parent | 6d53701c7a0dc4736d824fd891ee6f22265d0d68 (diff) | |
| download | lua-be05c444818989463dc307eed283503d391f93eb.tar.gz lua-be05c444818989463dc307eed283503d391f93eb.tar.bz2 lua-be05c444818989463dc307eed283503d391f93eb.zip | |
New way to control preambular declaration
Validity of the preambular global declaration in controled together
with all declarations, when checking variable names.
Diffstat (limited to 'lparser.h')
| -rw-r--r-- | lparser.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -105,6 +105,9 @@ typedef struct expdesc { | |||
| 105 | /* variables that live in registers */ | 105 | /* variables that live in registers */ |
| 106 | #define varinreg(v) ((v)->vd.kind <= RDKTOCLOSE) | 106 | #define varinreg(v) ((v)->vd.kind <= RDKTOCLOSE) |
| 107 | 107 | ||
| 108 | /* test for global variables */ | ||
| 109 | #define varglobal(v) ((v)->vd.kind >= GDKREG) | ||
| 110 | |||
| 108 | 111 | ||
| 109 | /* description of an active variable */ | 112 | /* description of an active variable */ |
| 110 | typedef union Vardesc { | 113 | typedef union Vardesc { |
