Skip to content
Snippets Groups Projects
Commit dcb90441 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/makeqstrdefs.py: Remove restriction that source path can't be absolute.

That's arbitrary restriction, in case of embedding, a source file path may
be absolute. For the purpose of filtering out system includes, checking
for ".c" suffix is enough.
parent cd796f85
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ def process_file(f):
m = re.match(r"#[line]*\s\d+\s\"([^\"]+)\"", line)
assert m is not None
fname = m.group(1)
if fname[0] == "/" or not fname.endswith(".c"):
if not fname.endswith(".c"):
continue
if fname != last_fname:
write_out(last_fname, output)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment