aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-21 10:16:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-21 10:16:57 -0300
commite4b02ca8e48b499c57dd3e5882d18145db60fd4c (patch)
treee04e28b662e455a74d87b05f78b2d73eb0627873 /lparser.h
parent20a9853e0279903d255846108ffe320826dddcca (diff)
downloadlua-e4b02ca8e48b499c57dd3e5882d18145db60fd4c.tar.gz
lua-e4b02ca8e48b499c57dd3e5882d18145db60fd4c.tar.bz2
lua-e4b02ca8e48b499c57dd3e5882d18145db60fd4c.zip
Structure 'Vardesc' does not need a 'name' field
Removed the field 'name' from the structure 'Vardesc', as the name of the local variable is already available in the prototype of the function, through the index 'idx'.
Diffstat (limited to 'lparser.h')
-rw-r--r--lparser.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lparser.h b/lparser.h
index 3b5d399f..228d4a5c 100644
--- a/lparser.h
+++ b/lparser.h
@@ -81,7 +81,6 @@ typedef struct expdesc {
81 81
82/* description of an active local variable */ 82/* description of an active local variable */
83typedef struct Vardesc { 83typedef struct Vardesc {
84 TString *name;
85 short idx; /* index of the variable in the Proto's 'locvars' array */ 84 short idx; /* index of the variable in the Proto's 'locvars' array */
86 lu_byte ro; /* true if variable is 'const' */ 85 lu_byte ro; /* true if variable is 'const' */
87} Vardesc; 86} Vardesc;