aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-20 17:36:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-20 17:36:05 -0300
commitbe05c444818989463dc307eed283503d391f93eb (patch)
tree16e08bf2e0256a1aeffcd848379af98577aec602 /lparser.h
parent6d53701c7a0dc4736d824fd891ee6f22265d0d68 (diff)
downloadlua-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lparser.h b/lparser.h
index 524df6ea..b08008ce 100644
--- a/lparser.h
+++ b/lparser.h
@@ -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 */
110typedef union Vardesc { 113typedef union Vardesc {