[Git][NTPsec/ntpsec][master] In pythonize-header, translare a wider range of macros.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Dec 15 10:44:47 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
a8d8ab8a by Eric S. Raymond at 2016-12-15T05:44:38-05:00
In pythonize-header, translare a wider range of macros.

- - - - -


1 changed file:

- wafhelpers/pythonize-header


Changes:

=====================================
wafhelpers/pythonize-header
=====================================
--- a/wafhelpers/pythonize-header
+++ b/wafhelpers/pythonize-header
@@ -18,8 +18,8 @@ patterns = (
     (re.compile(r"^/\*"), r"#"),
     (re.compile(r"^ *\*/"), r"#"),
     (re.compile(r"^ \*"), r"#"),
-    (re.compile(r"^#define\s+([A-Z0-9_]+[ \t]+)(.*)"), r"\1= \2"), 
-    (re.compile(r"^#define\s+([A-Z0-9_]+)\(([a-z_, ]*)\)"),
+    (re.compile(r"^#define\s+([A-Za-z0-9_]+[ \t]+)(.*)"), r"\1= \2"), 
+    (re.compile(r"^#define\s+([A-Za-z0-9_]+)\(([a-z_, ]*)\)"),
      r"def \1(\2): return"), 
     )
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a8d8ab8a0f64c95207f31132df0847eabf7eb3cd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161215/d7c0d505/attachment.html>


More information about the vc mailing list