Fix bug with user function calls not being renamed.

This commit is contained in:
Sei Lisa 2014-08-01 05:34:09 +02:00
parent 6a9278cd28
commit dd446217a9

View file

@ -139,7 +139,7 @@ class parser(object):
def AddSymbol(self, kind, scope, name, **values): def AddSymbol(self, kind, scope, name, **values):
values['Kind'] = kind values['Kind'] = kind
if kind in 'vl': if kind in 'vlf':
values['Scope'] = scope values['Scope'] = scope
self.symtab[scope][name] = values self.symtab[scope][name] = values
@ -1706,7 +1706,7 @@ class parser(object):
elif self.tok[0] == '}': elif self.tok[0] == '}':
bracelevel -= 1 bracelevel -= 1
self.NextToken() self.NextToken()
ret[name] = {'Kind':'f','Type':typ,'ParamTypes':params} ret[name] = {'Kind':'f','Type':typ,'ParamTypes':params,'Scope':0}
elif typ is None: elif typ is None:
return ret # A variable needs a type return ret # A variable needs a type