1
0
Fork 0
forked from fte/fteqw

divVerent's patch to enable subscoped locals, not sure if subscoped_away is required, but committing that anyway. Its copied from pastebin, so sorry for conflicts.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3705 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2010-12-22 00:33:19 +00:00
parent 3a413ede89
commit ec206be55a

View file

@ -5538,9 +5538,13 @@ void QCC_PR_ParseStatement (void)
if (pr_subscopedlocals)
{
for (e2 = pr.localvars; e2 != e; e2 = e2->nextlocal)
for (e2 = pr.localvars; e2 != e; e2 = e2->nextlocal)
{
Hash_RemoveData(&localstable, e2->name, e2);
if (!e2->subscoped_away)
{
Hash_RemoveData(&localstable, e2->name, e2);
e2->subscoped_away = true;
}
}
}
return;