summaryrefslogtreecommitdiff
path: root/src/timezone/pgtz.h
diff options
context:
space:
mode:
authorTom Lane2008-02-16 21:16:04 +0000
committerTom Lane2008-02-16 21:16:04 +0000
commit0171e72d4da2da7974ff13c63130e2175cebee88 (patch)
treec7cbf0a5a943ddbe374b3b838f3679be1f1c0014 /src/timezone/pgtz.h
parent2f67722dda9a46e82bad6807a12401dd7839910c (diff)
Update timezone code to track the upstream changes since 2003. In particular
this adds support for 64-bit tzdata files, which is needed to support DST calculations beyond 2038. Add a regression test case to give some minimal confidence that that really works. Heikki Linnakangas
Diffstat (limited to 'src/timezone/pgtz.h')
-rw-r--r--src/timezone/pgtz.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/timezone/pgtz.h b/src/timezone/pgtz.h
index 0286e2562ff..75ff34f2cfd 100644
--- a/src/timezone/pgtz.h
+++ b/src/timezone/pgtz.h
@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.h,v 1.21 2008/01/01 19:46:01 momjian Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.h,v 1.22 2008/02/16 21:16:04 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -43,6 +43,8 @@ struct state
int timecnt;
int typecnt;
int charcnt;
+ int goback;
+ int goahead;
pg_time_t ats[TZ_MAX_TIMES];
unsigned char types[TZ_MAX_TIMES];
struct ttinfo ttis[TZ_MAX_TYPES];
@@ -64,7 +66,8 @@ struct pg_tz
extern int pg_open_tzfile(const char *name, char *canonname);
/* in localtime.c */
-extern int tzload(const char *name, char *canonname, struct state * sp);
+extern int tzload(const char *name, char *canonname, struct state * sp,
+ int doextend);
extern int tzparse(const char *name, struct state * sp, int lastditch);
#endif /* _PGTZ_H */