From dcb904416af1c9c9f6cbadc4832c600614cade4d Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Thu, 16 Jun 2016 01:04:42 +0300
Subject: [PATCH] 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.
---
 py/makeqstrdefs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
GitLab