mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-17 01:21:18 +00:00
Make functions implicit local
This commit is contained in:
parent
db4dc10100
commit
c097101e48
1 changed files with 3 additions and 0 deletions
|
@ -1381,6 +1381,7 @@ static void localstat (LexState *ls) {
|
|||
static int funcname (LexState *ls, expdesc *v) {
|
||||
/* funcname -> NAME {field} [`:' NAME] */
|
||||
int needself = 0;
|
||||
int nvars = 0;
|
||||
singlevar(ls, v);
|
||||
while (ls->t.token == '.')
|
||||
field(ls, v);
|
||||
|
@ -1388,6 +1389,8 @@ static int funcname (LexState *ls, expdesc *v) {
|
|||
needself = 1;
|
||||
field(ls, v);
|
||||
}
|
||||
implicitlocal(ls, v, &nvars);
|
||||
adjustlocalvars(ls, nvars);
|
||||
return needself;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue