mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-11 19:05:04 +01:00
Save a few function calls in waflib/Tools/c_preproc.py
This commit is contained in:
parent
ca01ddb83a
commit
5d8d7bf700
@ -156,7 +156,7 @@ def filter_comments(filename):
|
||||
for (a, b) in trig_def: code = code.split(a).join(b)
|
||||
code = re_nl.sub('', code)
|
||||
code = re_cpp.sub(repl, code)
|
||||
return [(m.group(2), m.group(3)) for m in re.finditer(re_lines, code)]
|
||||
return [(m.group(2), m.group(3)) for m in re_lines.finditer(code)]
|
||||
|
||||
prec = {}
|
||||
"""
|
||||
@ -903,6 +903,7 @@ class c_parser(object):
|
||||
# issue #812
|
||||
raise PreprocError("recursion limit exceeded")
|
||||
|
||||
if Logs.verbose:
|
||||
debug('preproc: reading file %r', node)
|
||||
try:
|
||||
lines = self.parse_lines(node)
|
||||
|
Loading…
Reference in New Issue
Block a user