mirror of https://gitlab.com/ita1024/waf.git
Remove undeclared `ve` variable for performance improvement #1950
This commit is contained in:
parent
f2366e8c93
commit
6e5baffd47
|
@ -1037,8 +1037,6 @@ class c_parser(object):
|
||||||
state[-1] = accepted
|
state[-1] = accepted
|
||||||
elif token == 'include' or token == 'import':
|
elif token == 'include' or token == 'import':
|
||||||
(kind, inc) = extract_include(line, self.defs)
|
(kind, inc) = extract_include(line, self.defs)
|
||||||
if ve:
|
|
||||||
Logs.debug('preproc: include found %s (%s) ', inc, kind)
|
|
||||||
if kind == '"' or not strict_quotes:
|
if kind == '"' or not strict_quotes:
|
||||||
self.current_file = self.tryfind(inc)
|
self.current_file = self.tryfind(inc)
|
||||||
if token == 'import':
|
if token == 'import':
|
||||||
|
@ -1104,4 +1102,3 @@ def scan(task):
|
||||||
tmp = c_parser(nodepaths)
|
tmp = c_parser(nodepaths)
|
||||||
tmp.start(task.inputs[0], task.env)
|
tmp.start(task.inputs[0], task.env)
|
||||||
return (tmp.nodes, tmp.names)
|
return (tmp.nodes, tmp.names)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue