23#define SMALLEST(a, b) (((a) < (b)) ? (a) : (b))
24#define BIGGEST(a, b) (((a) > (b)) ? (a) : (b))
77extern int tzload(
const char *name,
char *canonname,
struct state *sp,
79extern bool tzparse(
const char *name,
struct state *sp,
bool lastditch);
signed int int32
Definition: pg_ext_defs.in.h:8
long int int64
Definition: pg_ext_defs.in.h:9
#define TZ_STRLEN_MAX
Definition: pgtime.h:44
int64 pg_time_t
Definition: pgtime.h:23
int tzload(const char *name, char *canonname, struct state *sp, bool doextend)
Definition: localtime.c:586
#define BIGGEST(a, b)
Definition: pgtz.h:24
int pg_open_tzfile(const char *name, char *canonname)
Definition: pgtz.c:79
bool tzparse(const char *name, struct state *sp, bool lastditch)
Definition: localtime.c:936
pg_time_t ls_trans
Definition: pgtz.h:37
int64 ls_corr
Definition: pgtz.h:38
char TZname[TZ_STRLEN_MAX+1]
Definition: pgtz.h:68
int timecnt
Definition: pgtz.h:44
bool goback
Definition: pgtz.h:47
struct ttinfo ttis[TZ_MAX_TYPES]
Definition: pgtz.h:51
int charcnt
Definition: pgtz.h:46
char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS+1, 4),(2 *(TZ_STRLEN_MAX+1)))]
Definition: pgtz.h:53
int typecnt
Definition: pgtz.h:45
int leapcnt
Definition: pgtz.h:43
pg_time_t ats[TZ_MAX_TIMES]
Definition: pgtz.h:49
struct lsinfo lsis[TZ_MAX_LEAPS]
Definition: pgtz.h:54
unsigned char types[TZ_MAX_TIMES]
Definition: pgtz.h:50
int defaulttype
Definition: pgtz.h:61
bool goahead
Definition: pgtz.h:48
int32 tt_utoff
Definition: pgtz.h:28
bool tt_ttisstd
Definition: pgtz.h:31
int tt_desigidx
Definition: pgtz.h:30
bool tt_isdst
Definition: pgtz.h:29
bool tt_ttisut
Definition: pgtz.h:32
#define TZ_MAX_CHARS
Definition: tzfile.h:105
#define TZ_MAX_TYPES
Definition: tzfile.h:103
#define TZ_MAX_TIMES
Definition: tzfile.h:100
#define TZ_MAX_LEAPS
Definition: tzfile.h:108