From 1161633db54ce8fd1180649f52909390a2986213 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 5 Jun 2024 15:07:06 -0400 Subject: rename all per-header internal structs to __
_h --- src/time/__time.c | 8 -------- src/time/__time_h.c | 8 ++++++++ src/time/_time.h | 6 ++---- 3 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 src/time/__time.c create mode 100644 src/time/__time_h.c (limited to 'src/time') diff --git a/src/time/__time.c b/src/time/__time.c deleted file mode 100644 index de0c93fe..00000000 --- a/src/time/__time.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "_time.h" - -struct __time __time; - -/* -STDC(-1) -SIGNAL_SAFE(0) -*/ diff --git a/src/time/__time_h.c b/src/time/__time_h.c new file mode 100644 index 00000000..88312857 --- /dev/null +++ b/src/time/__time_h.c @@ -0,0 +1,8 @@ +#include "_time.h" + +struct __time_h __time_h = { 0 }; + +/* +STDC(-1) +SIGNAL_SAFE(0) +*/ diff --git a/src/time/_time.h b/src/time/_time.h index b6d05212..76be4a7b 100644 --- a/src/time/_time.h +++ b/src/time/_time.h @@ -24,12 +24,10 @@ #define TZNAMELEN 64 -struct __time { +extern struct __time_h { char stdtz[TZNAMELEN]; char dsttz[TZNAMELEN]; -}; - -extern struct __time __time; +} __time_h; /* STDC(0) -- cgit v1.2.1