Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / include / utils / tzparser.h
blobb3ec49a02a021c76db73994564e1227384e4567f
1 /*-------------------------------------------------------------------------
3 * tzparser.h
4 * Timezone offset file parsing definitions.
6 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * $PostgreSQL$
11 *-------------------------------------------------------------------------
13 #ifndef TZPARSER_H
14 #define TZPARSER_H
17 * The result of parsing a timezone configuration file is an array of
18 * these structs, in order by abbrev. We export this because datetime.c
19 * needs it.
21 typedef struct tzEntry
23 /* the actual data: TZ abbrev (downcased), offset, DST flag */
24 char *abbrev;
25 int offset; /* in seconds from UTC */
26 bool is_dst;
27 /* source information (for error messages) */
28 int lineno;
29 const char *filename;
30 } tzEntry;
33 extern bool load_tzoffsets(const char *filename, bool doit, int elevel);
35 #endif /* TZPARSER_H */