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'.
This commit is contained in:
Roberto Ierusalimschy
2019-06-21 10:16:57 -03:00
parent 20a9853e02
commit e4b02ca8e4
2 changed files with 13 additions and 13 deletions

View File

@@ -81,7 +81,6 @@ typedef struct expdesc {
/* description of an active local variable */
typedef struct Vardesc {
TString *name;
short idx; /* index of the variable in the Proto's 'locvars' array */
lu_byte ro; /* true if variable is 'const' */
} Vardesc;