[Git][NTPsec/ntpsec][master] Address Gitlab issue #355: ntpq traceback on macOS

Eric S. Raymond gitlab at mg.gitlab.com
Fri Aug 11 19:25:38 UTC 2017


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


Commits:
91bed4f0 by Eric S. Raymond at 2017-08-11T15:25:24-04:00
Address Gitlab issue #355: ntpq traceback on macOS

- - - - -


1 changed file:

- wafhelpers/pythonize-header


Changes:

=====================================
wafhelpers/pythonize-header
=====================================
--- a/wafhelpers/pythonize-header
+++ b/wafhelpers/pythonize-header
@@ -27,6 +27,8 @@ patterns = (
 
 skipstarters = ("struct", "union", "typedef struct", "typedef union")
 
+skipender = re.compile("^}.*;")	# Has to allow a structure attribute
+
 skippers = (
     re.compile(r"^#include"),
     re.compile(r"^typedef.*;\s*$"),
@@ -65,7 +67,7 @@ def pythonize(rfp, wfp):
             if line.startswith(skipstart):
                 skipto = True
                 break
-        if line.startswith("};"):
+        if skipender.match(line):
             skipto = False
             continue
         # Hack remaining content



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/91bed4f0eebcd77e03f26a5c52cb5827b9daf320

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/91bed4f0eebcd77e03f26a5c52cb5827b9daf320
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170811/8ad51a35/attachment.html>


More information about the vc mailing list