[Git][NTPsec/ntpsec][master] struct first, then field, for easier reading

Matt Selsky gitlab at mg.gitlab.com
Wed Feb 8 04:02:24 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
62dac3db by Matt Selsky at 2017-02-07T23:01:11-05:00
struct first, then field, for easier reading

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -259,13 +259,13 @@ def cmd_configure(ctx, config):
     ctx.check_cc(header_name="stddef.h", auto_add_header_name=True, mandatory=False)
 
     structure_fields = (
-        ("time_tick", "struct timex", ["sys/time.h", "sys/timex.h"]),
-        ("modes", "struct timex", ["sys/time.h", "sys/timex.h"]),
-        ("time.tv_nsec", "struct ntptimeval", ["sys/time.h", "sys/timex.h"]),
-        ("tai", "struct ntptimeval", ["sys/time.h", "sys/timex.h"]),
+        ("struct timex", "time_tick", ["sys/time.h", "sys/timex.h"]),
+        ("struct timex", "modes", ["sys/time.h", "sys/timex.h"]),
+        ("struct ntptimeval", "time.tv_nsec", ["sys/time.h", "sys/timex.h"]),
+        ("struct ntptimeval", "tai", ["sys/time.h", "sys/timex.h"]),
         # first in glibc 2.12
     )
-    for (f, s, h) in structure_fields:
+    for (s, f, h) in structure_fields:
         ctx.check_cc(type_name=s, field_name=f, header_name=h, mandatory=False)
 
     # mostly used by timetoa.h and timespecops.h



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


More information about the vc mailing list