PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "miscadmin.h"
#include "storage/fd.h"
#include "utils/datetime.h"
#include "utils/guc.h"
#include "utils/memutils.h"
#include "utils/tzparser.h"
Go to the source code of this file.
Macros | |
#define | WHITESPACE " \t\n\r" |
Functions | |
static bool | validateTzEntry (tzEntry *tzentry) |
static bool | splitTzLine (const char *filename, int lineno, char *line, tzEntry *tzentry) |
static int | addToArray (tzEntry **base, int *arraysize, int n, tzEntry *entry, bool override) |
static int | ParseTzFile (const char *filename, int depth, tzEntry **base, int *arraysize, int n) |
TimeZoneAbbrevTable * | load_tzoffsets (const char *filename) |
#define WHITESPACE " \t\n\r" |
Definition at line 35 of file tzparser.c.
|
static |
Definition at line 189 of file tzparser.c.
References tzEntry::abbrev, cmp(), tzEntry::filename, GUC_check_errdetail, GUC_check_errmsg, tzEntry::is_dst, tzEntry::lineno, tzEntry::offset, repalloc(), and tzEntry::zone.
Referenced by ParseTzFile().
TimeZoneAbbrevTable* load_tzoffsets | ( | const char * | filename | ) |
Definition at line 449 of file tzparser.c.
References ALLOCSET_SMALL_SIZES, AllocSetContextCreate, ConvertTimeZoneAbbrevs(), CurrentMemoryContext, filename, GUC_check_errmsg, MemoryContextDelete(), MemoryContextSwitchTo(), palloc(), and ParseTzFile().
Referenced by check_timezone_abbreviations().
|
static |
Definition at line 277 of file tzparser.c.
References addToArray(), AllocateDir(), AllocateFile(), filename, FreeDir(), FreeFile(), get_share_path(), GUC_check_errhint, GUC_check_errmsg, MAXPGPATH, my_exec_path, pg_strncasecmp(), pstrdup(), share_path, snprintf, splitTzLine(), strtok_r, validateTzEntry(), and WHITESPACE.
Referenced by load_tzoffsets().
|
static |
Definition at line 98 of file tzparser.c.
References tzEntry::abbrev, filename, tzEntry::filename, GUC_check_errmsg, tzEntry::is_dst, tzEntry::lineno, tzEntry::offset, pg_strcasecmp(), pstrdup(), SECS_PER_HOUR, strtok_r, WHITESPACE, and tzEntry::zone.
Referenced by ParseTzFile().
Definition at line 52 of file tzparser.c.
References tzEntry::abbrev, tzEntry::filename, GUC_check_errmsg, tzEntry::lineno, tzEntry::offset, pg_tolower(), SECS_PER_HOUR, and TOKMAXLEN.
Referenced by ParseTzFile().