diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-14 22:54:08 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-14 22:54:08 +0000 |
commit | 805729e206b7586c57483aa0f4a90f7e0e2c9661 (patch) | |
tree | 4d4afb75b73cd11c953853faa48dc4cc7f236380 /src/libstddjb/djbtime-internal.h | |
parent | 2e0421fc58922697f2bb51c428599fbd44055556 (diff) | |
download | skalibs-805729e206b7586c57483aa0f4a90f7e0e2c9661.tar.xz |
- Remove /etc/leapsecs.datv2.3.8.0
- Publish tools to create the leap second table as a .c
- Simplify functions using leap seconds
- rc for 2.3.8.0
Diffstat (limited to 'src/libstddjb/djbtime-internal.h')
-rw-r--r-- | src/libstddjb/djbtime-internal.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/libstddjb/djbtime-internal.h b/src/libstddjb/djbtime-internal.h index f402832..eb4e676 100644 --- a/src/libstddjb/djbtime-internal.h +++ b/src/libstddjb/djbtime-internal.h @@ -3,26 +3,13 @@ #ifndef DJBTIME_INTERNAL_H #define DJBTIME_INTERNAL_H -#include <skalibs/config.h> #include <skalibs/uint64.h> +extern unsigned int const leapsecs_table_len ; +extern uint64 const *const leapsecs_table ; - /* Leap second handling, for UTC <--> TAI conversions */ - -#define LEAPSECS_MAX 39 -#define LEAPSECS_FILE SKALIBS_ETC "/leapsecs.dat" -extern uint64 *leapsecs_here ; - -extern int leapsecs_init_r (char const *, uint64 *) ; -#define leapsecs_init() leapsecs_init_r(LEAPSECS_FILE, leapsecs_here) -extern int leapsecs_add_r (uint64 *, char const *, uint64 *, int) ; -#define leapsecs_add(t, h) leapsecs_add_r(t, LEAPSECS_FILE, leapsecs_here, h) -extern int leapsecs_sub_r (uint64 *, char const *, uint64 *) ; -#define leapsecs_sub(t) leapsecs_sub_r((t), LEAPSECS_FILE, leapsecs_here) - - - /* Run-time test: does the current timezone handle leap seconds ? */ - +extern void leapsecs_add (uint64 *, int) ; +extern int leapsecs_sub (uint64 *) ; extern int skalibs_tzisright (void) ; #endif |