Skip to content

Commit dcb9044

Browse files
committed
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.
1 parent cd796f8 commit dcb9044

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/makeqstrdefs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def process_file(f):
3030
m = re.match(r"#[line]*\s\d+\s\"([^\"]+)\"", line)
3131
assert m is not None
3232
fname = m.group(1)
33-
if fname[0] == "/" or not fname.endswith(".c"):
33+
if not fname.endswith(".c"):
3434
continue
3535
if fname != last_fname:
3636
write_out(last_fname, output)

0 commit comments

Comments
 (0)