aboutsummaryrefslogtreecommitdiff
path: root/py/makeqstrdefs.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-16 01:04:42 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-16 01:04:42 +0300
commitdcb904416af1c9c9f6cbadc4832c600614cade4d (patch)
tree73fb83f4194666bc207e76ea8b48c82e4e71b3c2 /py/makeqstrdefs.py
parentcd796f85aff18013d8024b034055f58044649d91 (diff)
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.
Diffstat (limited to 'py/makeqstrdefs.py')
-rw-r--r--py/makeqstrdefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py
index 194d901d2..69aaefb3e 100644
--- a/py/makeqstrdefs.py
+++ b/py/makeqstrdefs.py
@@ -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)