CUBRID Engine
latest
|
#include "config.h"
#include <stdio.h>
#include <assert.h>
#include "tz_support.h"
#include "authenticate.h"
#include "porting.h"
#include "byte_order.h"
#include "utility.h"
#include "db_date.h"
#include "environment_variable.h"
#include "chartype.h"
#include "error_manager.h"
#include "memory_alloc.h"
#include "tz_compile.h"
#include "xml_parser.h"
#include "crypt_opfunc.h"
#include "db_query.h"
#include "dbtype.h"
Go to the source code of this file.
Classes | |
struct | tz_file_descriptor |
struct | tz_raw_country |
struct | tz_raw_link |
struct | tz_raw_offset_rule |
struct | tz_raw_zone_info |
struct | tz_raw_ds_rule |
struct | tz_raw_ds_ruleset |
struct | tz_raw_context |
struct | tz_raw_data |
struct | offset_rule_interval |
Typedefs | |
typedef struct tz_file_descriptor | TZ_FILE_DESCRIPTOR |
typedef struct tz_raw_country | TZ_RAW_COUNTRY |
typedef struct tz_raw_link | TZ_RAW_LINK |
typedef struct tz_raw_offset_rule | TZ_RAW_OFFSET_RULE |
typedef struct tz_raw_zone_info | TZ_RAW_ZONE_INFO |
typedef struct tz_raw_ds_rule | TZ_RAW_DS_RULE |
typedef struct tz_raw_ds_ruleset | TZ_RAW_DS_RULESET |
typedef struct tz_raw_context | TZ_RAW_CONTEXT |
typedef struct tz_raw_data | TZ_RAW_DATA |
typedef struct offset_rule_interval | OFFSET_RULE_INTERVAL |
Enumerations | |
enum | TZ_FILE_TYPE { TZF_COUNTRIES = 0, TZF_ZONES, TZF_RULES, TZF_BACKWARD, TZF_LEAP } |
Functions | |
static int | tzc_check_new_package_validity (const char *input_folder) |
static int | tzc_load_countries (TZ_RAW_DATA *tzd_raw, const char *input_folder) |
static int | tzc_load_zone_names (TZ_RAW_DATA *tzd_raw, const char *input_folder) |
static int | tzc_load_rule_file (TZ_RAW_DATA *tzd_raw, const int file_index, const char *input_folder) |
static int | tzc_load_backward_zones (TZ_RAW_DATA *tzd_raw, const char *input_folder) |
static int | tzc_load_leap_secs (TZ_RAW_DATA *tzd_raw, const char *input_folder) |
static int | tzc_get_zone (const TZ_RAW_DATA *tzd_raw, const char *zone_name, TZ_RAW_ZONE_INFO **zone) |
static int | tzc_add_zone (const char *zone, const char *coord, const char *code, const char *comments, TZ_RAW_DATA *tzd_raw, TZ_RAW_ZONE_INFO **new_zone) |
static int | tzc_add_link (TZ_RAW_DATA *tzd_raw, const char *zone, const char *alias) |
static int | tzc_add_offset_rule (TZ_RAW_ZONE_INFO *zone, char *rule_text) |
static int | tzc_add_leap_sec (TZ_RAW_DATA *tzd_raw, int year, int month, int day, unsigned char hour, unsigned char min, unsigned char sec, bool corr_minus, bool leap_is_rolling) |
static int | tzc_read_time_type (const char *str, const char **next, TZ_TIME_TYPE *time_type) |
static int | tzc_add_ds_rule (TZ_RAW_DATA *tzd_raw, char *rule_text) |
static int | tzc_parse_ds_change_on (TZ_RAW_DS_RULE *dest, const char *str) |
static bool | tzc_is_valid_date (const int day, const int month, const int year_start, const int year_end) |
static int | tzc_get_ds_ruleset_by_name (const TZ_DS_RULESET *ds_rulesets, int ds_ruleset_count, const char *ruleset) |
static void | tzc_free_raw_data (TZ_RAW_DATA *tzd_raw) |
static int | tzc_check_links_raw_data (TZ_RAW_DATA *tzd_raw) |
static void | tzc_sort_raw_data (TZ_RAW_DATA *tzd_raw) |
static void | tzc_index_raw_data (TZ_RAW_DATA *tzd_raw) |
static int | tzc_index_raw_data_w_static (TZ_RAW_DATA *tzd_raw, const TZ_GEN_TYPE mode) |
static int | tzc_index_raw_subdata (TZ_RAW_DATA *tzd_raw, const TZ_GEN_TYPE mode) |
static int | compare_ints (const void *a, const void *b) |
static int | tzc_compile_data (TZ_RAW_DATA *tzd_raw, TZ_DATA *tzd) |
static int | tzc_compile_ds_rules (TZ_RAW_DATA *tzd_raw, TZ_DATA *tzd) |
static int | str_to_offset_rule_until (TZ_RAW_OFFSET_RULE *offset_rule, char *str) |
static int | str_month_to_int (const char *month, int *month_num, const char **str_next) |
static int | str_day_to_int (const char *str_in, int *day_num, const char **str_next) |
static int | str_read_day_var (const char *str, const int month, int *type, int *day, int *bound, const char **str_next) |
static int | comp_func_raw_countries (const void *arg1, const void *arg2) |
static int | comp_func_raw_zones (const void *arg1, const void *arg2) |
static int | comp_func_raw_links (const void *arg1, const void *arg2) |
static int | comp_func_raw_offset_rules (const void *arg1, const void *arg2) |
static int | comp_func_raw_ds_rulesets (const void *arg1, const void *arg2) |
static int | comp_func_raw_ds_rules (const void *arg1, const void *arg2) |
static int | comp_func_tz_names (const void *arg1, const void *arg2) |
static void | print_seconds_as_time_hms_var (int seconds) |
static void | tzc_get_timezones_dot_c_filepath (size_t size, char *timezones_dot_c_file_path) |
static int | tzc_export_timezone_dot_c (const TZ_DATA *tzd, const char *tz_C_filepath) |
static int | tzc_load_raw_data (TZ_RAW_DATA *tzd_raw, const char *input_folder) |
static int | tzc_import_old_data (TZ_RAW_DATA *tzd_raw, const TZ_GEN_TYPE mode) |
static int | tzc_del_unused_raw_data (TZ_RAW_DATA *tzd_raw) |
static int | tzc_index_data (TZ_RAW_DATA *tzd_raw, const TZ_GEN_TYPE mode) |
static void | tzc_free_tz_data (TZ_DATA *tzd, bool full) |
static void | tzc_build_filepath (char *path, size_t size, const char *dir, const char *filename) |
static void | trim_comments_whitespaces (char *str) |
static int | tzc_get_timezone_aliases (const TZ_DATA *tzd, const int zone_id, int **aliases, int *alias_count) |
static void | tzc_dump_one_offset_rule (const TZ_DATA *tzd, const TZ_OFFSET_RULE *offset_rule) |
static void | tzc_dump_ds_ruleset (const TZ_DATA *tzd, const int ruleset_id) |
static void | tzc_log_error (const TZ_RAW_CONTEXT *context, const int code, const char *msg1, const char *msg2) |
static void | tzc_summary (TZ_RAW_DATA *tzd_raw, TZ_DATA *tzd) |
static int | tzc_find_timezone_names (const TZ_DATA *tzd, const char *timezone_name) |
static int | tzc_find_country_names (const TZ_COUNTRY *countries, const int country_count, const char *country_name) |
static bool | comp_ds_rules (const TZ_DS_RULE *rule1, const TZ_DS_RULE *rule2) |
static bool | comp_offset_rules (const TZ_OFFSET_RULE *rule1, const TZ_OFFSET_RULE *rule2) |
static int | copy_offset_rule (TZ_OFFSET_RULE *dst, const TZ_DATA *tzd, const int index) |
static int | init_ds_ruleset (TZ_DS_RULESET *dst_ruleset, const TZ_DATA *tzd, const int index, const int start) |
static int | copy_ds_rule (TZ_DS_RULE *dst, const TZ_DATA *tzd, const int index) |
static int | tz_data_partial_clone (char **timezone_names, TZ_TIMEZONE *timezones, TZ_NAME *names, const TZ_DATA *tzd) |
static int | init_tz_name (TZ_NAME *dst, TZ_NAME *src) |
static int | tzc_compute_timezone_checksum (TZ_DATA *tzd, TZ_GEN_TYPE type) |
static int | get_day_of_week_for_raw_rule (const TZ_RAW_DS_RULE *rule, const int year) |
static int | tzc_check_ds_ruleset (const TZ_DATA *tzd, const TZ_DS_RULESET *ds_rule_set, int *ds_changes_cnt) |
void | tzc_dump_summary (const TZ_DATA *tzd) |
void | tzc_dump_countries (const TZ_DATA *tzd) |
void | tzc_dump_timezones (const TZ_DATA *tzd) |
void | tzc_dump_one_timezone (const TZ_DATA *tzd, const int zone_id) |
void | tzc_dump_leap_sec (const TZ_DATA *tzd) |
Variables | |
static const TZ_FILE_DESCRIPTOR | tz_Files [] |
static int | tz_File_count = DIM (tz_Files) |
static const char | MONTH_NAMES_ABBREV [TZ_MON_COUNT][TZ_CAL_ABBREV_SIZE] |
static const char | DAY_NAMES_ABBREV [TZ_WEEK_DAY_COUNT][TZ_CAL_ABBREV_SIZE] |
static const char * | tzc_Err_messages [] |
static const int | tzc_Err_message_count = -TZC_ERR_LAST_ERROR |
const char * | tz_timezone_names [] |
const TZ_COUNTRY | tz_countries [] |
Referenced by tzc_check_ds_ruleset().
#define BUF_PUT_INT16 | ( | buf, | |
v | |||
) |
Definition at line 386 of file tz_compile.c.
Referenced by tzc_compute_timezone_checksum().
#define BUF_PUT_INT32 | ( | buf, | |
v | |||
) |
Definition at line 373 of file tz_compile.c.
Referenced by tzc_compute_timezone_checksum().
#define DUPLICATE_STR | ( | a, | |
b | |||
) |
Definition at line 339 of file tz_compile.c.
Referenced by copy_ds_rule(), copy_offset_rule(), init_ds_ruleset(), init_tz_name(), and tz_data_partial_clone().
#define INIT_COUNTRY | ( | dst, | |
src | |||
) |
Definition at line 349 of file tz_compile.c.
Referenced by init_tz_name().
#define LOG_TZC_SET_CURRENT_CONTEXT | ( | tzd_raw, | |
f, | |||
l | |||
) |
Definition at line 323 of file tz_compile.c.
Referenced by tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_raw_data(), tzc_load_rule_file(), and tzc_load_zone_names().
#define MAX_DS_CHANGES_YEAR 1000 |
Referenced by tzc_check_ds_ruleset().
#define PATH_PARTIAL_TIMEZONES_FILE "timezones/tzlib/timezones.c" |
Definition at line 65 of file tz_compile.c.
Referenced by tzc_get_timezones_dot_c_filepath().
#define PRINT_STRING_TO_C_FILE | ( | fp, | |
val, | |||
len | |||
) |
Definition at line 355 of file tz_compile.c.
#define PRINT_STRING_VAR_TO_C_FILE | ( | fp, | |
valname, | |||
val | |||
) |
Definition at line 366 of file tz_compile.c.
Referenced by tzc_export_timezone_dot_c().
#define STR_SKIP_LEADING_SPACES | ( | str | ) |
Definition at line 245 of file tz_compile.c.
Referenced by tzc_add_ds_rule().
#define strlen | ( | s1 | ) | ((int) strlen(s1)) |
Definition at line 50 of file tz_compile.c.
Referenced by str_day_to_int(), str_month_to_int(), str_read_day_var(), str_to_offset_rule_until(), trim_comments_whitespaces(), tzc_add_ds_rule(), tzc_add_offset_rule(), tzc_compile_data(), tzc_compile_ds_rules(), tzc_compute_timezone_checksum(), tzc_index_raw_subdata(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), tzc_load_zone_names(), tzc_parse_ds_change_on(), and tzc_summary().
#define TZ_CAL_ABBREV_SIZE 4 |
Definition at line 238 of file tz_compile.c.
#define TZ_COMMENTS_MAX_SIZE 92 |
Definition at line 58 of file tz_compile.c.
#define TZ_COORDINATES_MAX_SIZE 16 |
Definition at line 57 of file tz_compile.c.
#define TZ_FILENAME_MAX_LEN 17 |
Definition at line 53 of file tz_compile.c.
#define TZ_MAX_LINE_LEN 512 |
Definition at line 54 of file tz_compile.c.
Referenced by tzc_load_backward_zones(), tzc_load_leap_secs(), tzc_load_rule_file(), and tzc_summary().
#define TZ_OFFRULE_PREFIX_TAB_COUNT 3 |
Definition at line 55 of file tz_compile.c.
Referenced by tzc_load_rule_file().
#define TZ_RULE_LETTER_ABBREV_MAX_SIZE 8 |
Definition at line 59 of file tz_compile.c.
#define TZ_RULE_TYPE_MAX_SIZE 4 |
Definition at line 60 of file tz_compile.c.
Referenced by tzc_add_ds_rule().
#define TZC_CONTEXT | ( | tzd_raw | ) | (&((tzd_raw)->context)) |
Definition at line 331 of file tz_compile.c.
Referenced by tzc_add_ds_rule(), tzc_add_leap_sec(), tzc_add_link(), tzc_add_zone(), tzc_compile_data(), tzc_compile_ds_rules(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), and tzc_load_zone_names().
#define TZC_ERR_ADD_ZONE -16 |
Definition at line 275 of file tz_compile.c.
Referenced by tzc_load_rule_file().
#define TZC_ERR_BAD_TZ_LINK -3 |
Definition at line 262 of file tz_compile.c.
Referenced by tzc_load_backward_zones(), and tzc_load_rule_file().
#define TZC_ERR_CANT_READ_VALUE -10 |
Definition at line 269 of file tz_compile.c.
Referenced by str_read_day_var(), str_to_offset_rule_until(), and tzc_add_ds_rule().
#define TZC_ERR_DS_INVALID_DATE -12 |
Definition at line 271 of file tz_compile.c.
Referenced by str_to_offset_rule_until(), and tzc_parse_ds_change_on().
#define TZC_ERR_FILE_NOT_ACCESSIBLE -13 |
Definition at line 272 of file tz_compile.c.
Referenced by tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), and tzc_load_zone_names().
#define TZC_ERR_GENERIC -1 |
Definition at line 260 of file tz_compile.c.
Referenced by str_read_day_var(), tzc_export_timezone_dot_c(), tzc_get_zone(), and tzc_read_time_type().
#define TZC_ERR_INVALID_COUNTRY -14 |
Definition at line 273 of file tz_compile.c.
Referenced by tzc_load_countries().
#define TZC_ERR_INVALID_DATETIME -8 |
Definition at line 267 of file tz_compile.c.
#define TZC_ERR_INVALID_DS_RULE -9 |
Definition at line 268 of file tz_compile.c.
Referenced by tzc_add_ds_rule().
#define TZC_ERR_INVALID_PACKAGE -2 |
Definition at line 261 of file tz_compile.c.
Referenced by tzc_check_new_package_validity().
#define TZC_ERR_INVALID_TIME -6 |
Definition at line 265 of file tz_compile.c.
Referenced by str_to_offset_rule_until(), tzc_add_leap_sec(), tzc_add_offset_rule(), and tzc_compile_data().
#define TZC_ERR_INVALID_VALUE -5 |
Definition at line 264 of file tz_compile.c.
Referenced by str_day_to_int(), str_month_to_int(), str_read_day_var(), str_to_offset_rule_until(), tzc_add_ds_rule(), tzc_add_offset_rule(), tzc_load_leap_secs(), tzc_load_rule_file(), and tzc_summary().
#define TZC_ERR_INVALID_ZONE -15 |
Definition at line 274 of file tz_compile.c.
Referenced by tzc_compile_data(), and tzc_load_zone_names().
#define TZC_ERR_LAST_ERROR -18 |
Definition at line 277 of file tz_compile.c.
#define TZC_ERR_LINKING_TRUE_ZONES -17 |
Definition at line 276 of file tz_compile.c.
Referenced by tzc_check_links_raw_data().
#define TZC_ERR_MSG_MAX_SIZE 512 |
Definition at line 329 of file tz_compile.c.
Referenced by str_read_day_var(), str_to_offset_rule_until(), tzc_add_ds_rule(), tzc_add_leap_sec(), tzc_add_link(), tzc_add_offset_rule(), tzc_add_zone(), tzc_check_links_raw_data(), tzc_compile_data(), tzc_compile_ds_rules(), tzc_del_unused_raw_data(), tzc_get_timezone_aliases(), tzc_index_data(), tzc_index_raw_subdata(), tzc_load_countries(), tzc_load_zone_names(), tzc_log_error(), tzc_parse_ds_change_on(), and tzc_summary().
#define TZC_ERR_OUT_OF_MEMORY -4 |
Definition at line 263 of file tz_compile.c.
Referenced by tzc_add_ds_rule(), tzc_add_leap_sec(), tzc_add_link(), tzc_add_offset_rule(), tzc_add_zone(), tzc_check_links_raw_data(), tzc_compile_data(), tzc_compile_ds_rules(), tzc_del_unused_raw_data(), tzc_get_timezone_aliases(), tzc_index_raw_subdata(), tzc_load_countries(), and tzc_summary().
#define TZC_ERR_PARSING_FAILED -11 |
Definition at line 270 of file tz_compile.c.
#define TZC_ERR_ZONE_RULE_UNORDERED -7 |
Definition at line 266 of file tz_compile.c.
Referenced by tzc_add_offset_rule().
#define TZC_LOG_ERROR_1ARG | ( | context, | |
err_code, | |||
s1 | |||
) | tzc_log_error ((context), (err_code), (s1), "") |
Definition at line 333 of file tz_compile.c.
Referenced by tzc_add_ds_rule(), tzc_add_offset_rule(), tzc_compile_data(), tzc_load_countries(), tzc_load_rule_file(), and tzc_summary().
#define TZC_LOG_ERROR_2ARG | ( | context, | |
err_code, | |||
s1, | |||
s2 | |||
) | tzc_log_error ((context), (err_code), (s1), (s2)) |
Definition at line 336 of file tz_compile.c.
Referenced by str_read_day_var(), str_to_offset_rule_until(), tzc_add_ds_rule(), tzc_add_leap_sec(), tzc_add_link(), tzc_add_offset_rule(), tzc_add_zone(), tzc_check_links_raw_data(), tzc_check_new_package_validity(), tzc_compile_data(), tzc_compile_ds_rules(), tzc_del_unused_raw_data(), tzc_get_timezone_aliases(), tzc_index_raw_subdata(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), tzc_load_zone_names(), tzc_parse_ds_change_on(), and tzc_summary().
typedef struct offset_rule_interval OFFSET_RULE_INTERVAL |
Definition at line 230 of file tz_compile.c.
typedef struct tz_file_descriptor TZ_FILE_DESCRIPTOR |
Definition at line 86 of file tz_compile.c.
typedef struct tz_raw_context TZ_RAW_CONTEXT |
Definition at line 201 of file tz_compile.c.
typedef struct tz_raw_country TZ_RAW_COUNTRY |
Definition at line 125 of file tz_compile.c.
typedef struct tz_raw_data TZ_RAW_DATA |
Definition at line 214 of file tz_compile.c.
typedef struct tz_raw_ds_rule TZ_RAW_DS_RULE |
Definition at line 177 of file tz_compile.c.
typedef struct tz_raw_ds_ruleset TZ_RAW_DS_RULESET |
Definition at line 192 of file tz_compile.c.
typedef struct tz_raw_link TZ_RAW_LINK |
Definition at line 134 of file tz_compile.c.
typedef struct tz_raw_offset_rule TZ_RAW_OFFSET_RULE |
Definition at line 142 of file tz_compile.c.
typedef struct tz_raw_zone_info TZ_RAW_ZONE_INFO |
Definition at line 158 of file tz_compile.c.
enum TZ_FILE_TYPE |
Enumerator | |
---|---|
TZF_COUNTRIES | |
TZF_ZONES | |
TZF_RULES | |
TZF_BACKWARD | |
TZF_LEAP |
Definition at line 71 of file tz_compile.c.
|
static |
Definition at line 5227 of file tz_compile.c.
References tz_ds_rule::at_time, tz_ds_rule::change_on, tz_ds_change_on::day_of_month, tz_ds_change_on::day_of_week, tz_ds_rule::from_year, tz_ds_rule::in_month, tz_ds_rule::save_time, tz_ds_rule::to_year, and tz_ds_change_on::type.
Referenced by init_tz_name().
Definition at line 3889 of file tz_compile.c.
References assert, tz_raw_country::full_name, tz_raw_country::id, IS_EMPTY_STR, and NULL.
Referenced by tzc_sort_raw_data().
Definition at line 4107 of file tz_compile.c.
References assert, tz_raw_ds_rule::from_year, get_day_of_week_for_raw_rule(), tz_raw_ds_rule::in_month, and NULL.
Referenced by tzc_sort_raw_data().
Definition at line 4052 of file tz_compile.c.
References assert, IS_EMPTY_STR, tz_raw_ds_ruleset::name, and NULL.
Referenced by tzc_sort_raw_data().
Definition at line 3972 of file tz_compile.c.
References tz_raw_link::alias, assert, IS_EMPTY_STR, and NULL.
Referenced by tzc_sort_raw_data().
Definition at line 3996 of file tz_compile.c.
References assert, julian_encode(), NULL, tz_raw_offset_rule::until_day, tz_raw_offset_rule::until_flag, tz_raw_offset_rule::until_hour, UNTIL_INFINITE, tz_raw_offset_rule::until_min, tz_raw_offset_rule::until_mon, tz_raw_offset_rule::until_sec, and tz_raw_offset_rule::until_year.
Referenced by tzc_sort_raw_data().
Definition at line 3930 of file tz_compile.c.
References assert, tz_raw_zone_info::full_name, tz_raw_zone_info::id, IS_EMPTY_STR, and NULL.
Referenced by tzc_sort_raw_data().
Definition at line 4144 of file tz_compile.c.
References assert, IS_EMPTY_STR, tz_name::name, and NULL.
Referenced by init_tz_name(), and tzc_compile_data().
|
static |
Definition at line 5247 of file tz_compile.c.
References tz_offset_rule::gmt_off, tz_offset_rule::until_day, tz_offset_rule::until_hour, tz_offset_rule::until_min, tz_offset_rule::until_mon, tz_offset_rule::until_sec, and tz_offset_rule::until_year.
Referenced by init_tz_name().
Definition at line 2800 of file tz_compile.c.
Referenced by tzc_check_ds_ruleset().
|
static |
Definition at line 5340 of file tz_compile.c.
References tz_data::ds_rules, DUPLICATE_STR, tz_ds_rule::letter_abbrev, NO_ERROR, and NULL.
Referenced by init_tz_name().
|
static |
Definition at line 5268 of file tz_compile.c.
References DUPLICATE_STR, tz_offset_rule::julian_date, julian_encode(), NO_ERROR, NULL, tz_data::offset_rules, tz_offset_rule::save_format, tz_offset_rule::std_format, tz_offset_rule::until_day, tz_offset_rule::until_mon, tz_offset_rule::until_year, and tz_offset_rule::var_format.
Referenced by init_tz_name().
|
static |
Definition at line 4074 of file tz_compile.c.
References tz_raw_ds_rule::change_on, tz_ds_change_on::day_of_month, tz_ds_change_on::day_of_week, tz_raw_ds_rule::in_month, tz_ds_change_on::type, TZ_DS_TYPE_FIXED, TZ_DS_TYPE_VAR_SMALLER, and tz_get_first_weekday_around_date().
Referenced by comp_func_raw_ds_rules().
|
static |
Definition at line 5316 of file tz_compile.c.
References tz_ds_ruleset::count, tz_ds_ruleset::default_abrev, tz_data::ds_rulesets, DUPLICATE_STR, tz_ds_ruleset::index_start, NO_ERROR, tz_ds_ruleset::ruleset_name, and tz_ds_ruleset::to_year_max.
Referenced by init_tz_name().
Definition at line 5398 of file tz_compile.c.
References ARG_FILE_LINE, assert, comp_ds_rules(), comp_func_tz_names(), comp_offset_rules(), copy_ds_rule(), copy_offset_rule(), tz_ds_ruleset::count, tz_data::countries, tz_data::country_count, tz_timezone::country_id, tz_data::ds_rule_count, tz_data::ds_rules, tz_offset_rule::ds_ruleset, tz_data::ds_ruleset_count, tz_data::ds_rulesets, tz_offset_rule::ds_type, DS_TYPE_FIXED, DUPLICATE_STR, envvar_libdir_file(), ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), ER_TZ_COMPILE_ERROR, offset_rule_interval::final_offset_rule_start, free_and_init, tz_country::full_name, tz_timezone::gmt_off_rule_count, tz_timezone::gmt_off_rule_start, i, tz_ds_ruleset::index_start, INIT_COUNTRY, init_ds_ruleset(), tz_name::is_alias, offset_rule_interval::len, LIB_TZ_NAME, tz_file_descriptor::name, tz_name::name, tz_data::name_count, tz_data::names, NO_ERROR, NULL, tz_data::offset_rule_count, tz_data::offset_rules, offset_rule_interval::original_offset_rule_start, tz_ds_ruleset::ruleset_name, tz_data::timezone_count, tz_data::timezone_names, tz_data::timezones, tz_data_partial_clone(), tz_load_with_library_path(), tzc_find_country_names(), tzc_find_timezone_names(), tzc_free_tz_data(), tzc_get_ds_ruleset_by_name(), tz_timezone::zone_id, tz_name::zone_id, and ZONE_MAX.
|
static |
Definition at line 4165 of file tz_compile.c.
Referenced by tzc_dump_ds_ruleset(), and tzc_dump_one_offset_rule().
Definition at line 3714 of file tz_compile.c.
References assert, char_isspace(), DAY_NAMES_ABBREV, i, IS_EMPTY_STR, NO_ERROR, strlen, TZ_WEEK_DAY_COUNT, and TZC_ERR_INVALID_VALUE.
Referenced by str_read_day_var().
Definition at line 3665 of file tz_compile.c.
References assert, char_isspace(), i, IS_EMPTY_STR, MONTH_NAMES_ABBREV, NO_ERROR, strlen, TZ_MON_COUNT, and TZC_ERR_INVALID_VALUE.
Referenced by str_to_offset_rule_until(), tzc_add_ds_rule(), and tzc_load_leap_secs().
|
static |
Definition at line 3778 of file tz_compile.c.
References assert, NO_ERROR, NULL, str_day_to_int(), strlen, TZ_DS_TYPE_FIXED, TZ_DS_TYPE_VAR_GREATER, TZ_DS_TYPE_VAR_SMALLER, tz_str_read_number(), TZ_WEEK_DAY_SAT, TZC_ERR_CANT_READ_VALUE, TZC_ERR_GENERIC, TZC_ERR_INVALID_VALUE, TZC_ERR_MSG_MAX_SIZE, and TZC_LOG_ERROR_2ARG.
Referenced by str_to_offset_rule_until(), and tzc_parse_ds_change_on().
|
static |
Definition at line 3465 of file tz_compile.c.
References assert, DAYS_IN_MONTH, IS_EMPTY_STR, IS_LEAP_YEAR, min, NO_ERROR, NULL, str_month_to_int(), str_read_day_var(), strlen, tz_file_descriptor::type, TZ_DS_TYPE_FIXED, TZ_DS_TYPE_VAR_GREATER, TZ_DS_TYPE_VAR_SMALLER, tz_get_first_weekday_around_date(), TZ_MAX_YEAR, TZ_MON_DEC, TZ_MON_FEB, tz_str_read_number(), tz_str_read_time(), TZ_TIME_TYPE_LOCAL_WALL, TZC_ERR_CANT_READ_VALUE, TZC_ERR_DS_INVALID_DATE, TZC_ERR_INVALID_TIME, TZC_ERR_INVALID_VALUE, TZC_ERR_MSG_MAX_SIZE, tzc_is_valid_date(), TZC_LOG_ERROR_2ARG, tzc_read_time_type(), tz_raw_offset_rule::until_day, UNTIL_EXPLICIT, tz_raw_offset_rule::until_flag, tz_raw_offset_rule::until_hour, UNTIL_INFINITE, tz_raw_offset_rule::until_min, tz_raw_offset_rule::until_mon, tz_raw_offset_rule::until_sec, tz_raw_offset_rule::until_time_type, and tz_raw_offset_rule::until_year.
Referenced by tzc_add_offset_rule().
|
static |
Definition at line 552 of file tz_compile.c.
References char_isspace(), i, IS_EMPTY_STR, NULL, and strlen.
Referenced by tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), and tzc_load_zone_names().
|
static |
Definition at line 5369 of file tz_compile.c.
References DUPLICATE_STR, i, tz_file_descriptor::name, tz_name::name, tz_data::name_count, tz_data::names, NO_ERROR, tz_data::timezone_count, tz_data::timezone_names, and tz_data::timezones.
Referenced by init_tz_name().
|
static |
Definition at line 2024 of file tz_compile.c.
References assert, tz_raw_ds_rule::at_time, tz_raw_ds_rule::at_time_type, tz_raw_data::ds_rulesets, tz_raw_ds_rule::from_year, i, tz_raw_ds_rule::in_month, IS_EMPTY_STR, tz_raw_ds_ruleset::is_used, tz_raw_ds_rule::letter_abbrev, tz_raw_ds_ruleset::name, NO_ERROR, NULL, tz_raw_ds_ruleset::rule_count, tz_raw_ds_ruleset::rules, tz_raw_data::ruleset_count, tz_raw_ds_rule::save_time, str_month_to_int(), STR_SKIP_LEADING_SPACES, strlen, tz_raw_ds_rule::to_year, tz_raw_ds_rule::type, TZ_MAX_YEAR, TZ_MON_DEC, TZ_RULE_TYPE_MAX_SIZE, tz_str_read_number(), tz_str_to_seconds(), TZC_CONTEXT, TZC_ERR_CANT_READ_VALUE, TZC_ERR_INVALID_DS_RULE, TZC_ERR_INVALID_VALUE, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_1ARG, TZC_LOG_ERROR_2ARG, tzc_parse_ds_change_on(), and tzc_read_time_type().
Referenced by tzc_load_rule_file().
|
static |
Definition at line 1706 of file tz_compile.c.
References assert, tz_leap_sec::corr_negative, tz_leap_sec::day, tz_leap_sec::is_rolling, tz_raw_data::leap_sec, tz_raw_data::leap_sec_count, tz_leap_sec::month, NO_ERROR, NULL, TZC_CONTEXT, TZC_ERR_INVALID_TIME, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_2ARG, and tz_leap_sec::year.
Referenced by tzc_load_leap_secs().
|
static |
Definition at line 1661 of file tz_compile.c.
References tz_raw_link::alias, assert, IS_EMPTY_STR, tz_raw_data::link_count, tz_raw_data::links, tz_raw_link::name, NO_ERROR, NULL, TZC_CONTEXT, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, and TZC_LOG_ERROR_2ARG.
Referenced by tzc_load_backward_zones(), and tzc_load_rule_file().
|
static |
Definition at line 1869 of file tz_compile.c.
References assert, tz_raw_offset_rule::ds_ruleset_name, tz_raw_offset_rule::format, tz_raw_offset_rule::gmt_off, IS_EMPTY_STR, NO_ERROR, NULL, tz_raw_zone_info::offset_rule_count, tz_raw_zone_info::offset_rules, str_to_offset_rule_until(), strlen, TZ_DS_RULESET_NAME_SIZE, TZ_MAX_FORMAT_SIZE, tz_str_read_number(), tz_str_to_seconds(), TZC_ERR_INVALID_TIME, TZC_ERR_INVALID_VALUE, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_ERR_ZONE_RULE_UNORDERED, TZC_LOG_ERROR_1ARG, TZC_LOG_ERROR_2ARG, tz_raw_offset_rule::until_flag, and UNTIL_INFINITE.
Referenced by tzc_load_rule_file().
|
static |
Definition at line 1766 of file tz_compile.c.
References assert, tz_raw_zone_info::code, tz_raw_zone_info::comments, tz_raw_zone_info::coordinates, tz_raw_zone_info::full_name, tz_raw_zone_info::id, IS_EMPTY_STR, NO_ERROR, NULL, TZC_CONTEXT, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_2ARG, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_load_rule_file(), and tzc_load_zone_names().
|
static |
Definition at line 521 of file tz_compile.c.
References assert, assert_release, and NULL.
Referenced by tzc_check_new_package_validity(), tzc_get_timezones_dot_c_filepath(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), tzc_load_zone_names(), and tzc_summary().
|
static |
Definition at line 2824 of file tz_compile.c.
References ABS, assert, compare_ints(), tz_ds_ruleset::count, cubregex::count(), tz_data::ds_rules, ER_FAILED, tz_ds_rule::from_year, i, tz_ds_rule::in_month, tz_ds_ruleset::index_start, julian_decode(), julian_encode(), MAX_DS_CHANGES_YEAR, MONTH_NAMES_ABBREV, NO_ERROR, NULL, tz_ds_ruleset::ruleset_name, tz_ds_rule::to_year, tz_get_ds_change_julian_date_diff(), TZ_MAX_YEAR, TZ_MON_DEC, and TZ_MON_JAN.
Referenced by tzc_compile_data().
|
static |
Definition at line 2431 of file tz_compile.c.
References tz_raw_link::alias, assert, tz_raw_zone_info::clone_of, tz_raw_zone_info::full_name, i, tz_raw_data::link_count, tz_raw_data::links, tz_raw_link::name, NO_ERROR, NULL, tz_raw_zone_info::offset_rule_count, TZC_ERR_LINKING_TRUE_ZONES, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_2ARG, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_load_raw_data().
|
static |
Definition at line 584 of file tz_compile.c.
References tz_data::checksum, database_name, ER_TZ_COMPILE_ERROR, fopen_ex(), i, tz_file_descriptor::name, NO_ERROR, NULL, tz_File_count, TZ_GEN_TYPE_EXTEND, tzc_build_filepath(), tzc_compile_data(), tzc_compute_timezone_checksum(), tzc_del_unused_raw_data(), TZC_ERR_INVALID_PACKAGE, tzc_export_timezone_dot_c(), tzc_free_raw_data(), tzc_free_tz_data(), tzc_get_timezones_dot_c_filepath(), tzc_import_old_data(), tzc_index_data(), tzc_load_raw_data(), TZC_LOG_ERROR_2ARG, tzc_sort_raw_data(), and tzc_summary().
|
static |
Definition at line 2954 of file tz_compile.c.
References tz_raw_zone_info::alias_count, tz_raw_zone_info::aliases, assert, tz_raw_zone_info::clone_of_id, tz_country::code, tz_raw_country::code, comp_func_tz_names(), tz_data::countries, tz_raw_data::countries, tz_data::country_count, tz_raw_data::country_count, tz_timezone::country_id, tz_raw_zone_info::country_id, tz_data::ds_leap_sec, tz_data::ds_leap_sec_count, tz_offset_rule::ds_ruleset, tz_data::ds_ruleset_count, tz_raw_offset_rule::ds_ruleset_name, tz_data::ds_rulesets, tz_offset_rule::ds_type, DS_TYPE_FIXED, DS_TYPE_RULESET_ID, tz_raw_offset_rule::format, tz_country::full_name, tz_raw_country::full_name, tz_raw_zone_info::full_name, tz_offset_rule::gmt_off, tz_raw_offset_rule::gmt_off, tz_timezone::gmt_off_rule_count, tz_timezone::gmt_off_rule_start, i, tz_raw_country::id, tz_raw_zone_info::id, tz_name::is_alias, IS_EMPTY_STR, tz_raw_data::leap_sec, tz_raw_data::leap_sec_count, tz_name::name, tz_data::name_count, tz_data::names, NO_ERROR, NULL, tz_raw_zone_info::offset_rule_count, tz_data::offset_rule_count, tz_raw_zone_info::offset_rules, tz_data::offset_rules, tz_offset_rule::save_format, tz_offset_rule::std_format, strdup(), strlen, tz_data::timezone_count, tz_data::timezone_names, tz_data::timezones, tz_str_to_seconds(), tzc_check_ds_ruleset(), tzc_compile_ds_rules(), TZC_CONTEXT, TZC_ERR_INVALID_TIME, TZC_ERR_INVALID_ZONE, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, tzc_get_ds_ruleset_by_name(), TZC_LOG_ERROR_1ARG, TZC_LOG_ERROR_2ARG, tz_offset_rule::until_day, tz_raw_offset_rule::until_day, tz_offset_rule::until_flag, tz_raw_offset_rule::until_flag, tz_offset_rule::until_hour, tz_raw_offset_rule::until_hour, tz_offset_rule::until_min, tz_raw_offset_rule::until_min, tz_offset_rule::until_mon, tz_raw_offset_rule::until_mon, tz_offset_rule::until_sec, tz_raw_offset_rule::until_sec, tz_offset_rule::until_time_type, tz_raw_offset_rule::until_time_type, tz_offset_rule::until_year, tz_raw_offset_rule::until_year, tz_offset_rule::var_format, tz_raw_data::zone_count, tz_timezone::zone_id, tz_name::zone_id, and tz_raw_data::zones.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 3318 of file tz_compile.c.
References assert, tz_ds_rule::at_time, tz_raw_ds_rule::at_time, tz_ds_rule::at_time_type, tz_raw_ds_rule::at_time_type, tz_ds_rule::change_on, tz_raw_ds_rule::change_on, tz_ds_ruleset::count, tz_ds_ruleset::default_abrev, tz_data::ds_rule_count, tz_data::ds_rules, tz_data::ds_ruleset_count, tz_data::ds_rulesets, tz_raw_data::ds_rulesets, tz_ds_rule::from_year, tz_raw_ds_rule::from_year, i, tz_ds_rule::in_month, tz_raw_ds_rule::in_month, tz_ds_ruleset::index_start, tz_ds_rule::letter_abbrev, tz_raw_ds_rule::letter_abbrev, tz_raw_ds_ruleset::name, NO_ERROR, NULL, tz_raw_ds_ruleset::rule_count, tz_raw_ds_ruleset::rules, tz_raw_data::ruleset_count, tz_ds_ruleset::ruleset_name, tz_ds_rule::save_time, tz_raw_ds_rule::save_time, strdup(), strlen, tz_ds_rule::to_year, tz_raw_ds_rule::to_year, tz_ds_ruleset::to_year_max, TZC_CONTEXT, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, and TZC_LOG_ERROR_2ARG.
Referenced by tzc_compile_data().
|
static |
Definition at line 6263 of file tz_compile.c.
References ARG_FILE_LINE, assert, tz_ds_rule::at_time, tz_ds_rule::at_time_type, AU_DISABLE_PASSWORDS, BUF_PUT_INT16, BUF_PUT_INT32, cfg_free_directory(), cfg_read_directory(), tz_ds_rule::change_on, tz_data::checksum, tz_country::code, tz_leap_sec::corr_negative, tz_ds_ruleset::count, tz_data::countries, tz_data::country_count, tz_timezone::country_id, crypt_md5_buffer_hex(), database_name, tz_leap_sec::day, tz_ds_change_on::day_of_month, tz_ds_change_on::day_of_week, db_abort_transaction(), DB_CLIENT_TYPE_ADMIN_UTILITY, db_close_session(), db_commit_transaction(), db_compile_statement(), DB_CURSOR_SUCCESS, db_execute_statement_local(), db_get_int(), db_get_string(), DB_IS_NULL, db_login(), db_open_buffer(), db_query_end(), db_query_get_tuple_value(), db_query_next_tuple(), db_restart(), db_set_client_type(), db_shutdown(), DB_TYPE_DATETIMELTZ, DB_TYPE_DATETIMETZ, DB_TYPE_INTEGER, DB_TYPE_STRING, DB_TYPE_TIMESTAMPLTZ, DB_TYPE_TIMESTAMPTZ, DB_VALUE_TYPE, tz_data::ds_leap_sec, tz_data::ds_leap_sec_count, tz_data::ds_rule_count, tz_data::ds_rules, tz_offset_rule::ds_ruleset, tz_data::ds_ruleset_count, tz_data::ds_rulesets, tz_offset_rule::ds_type, er_errid(), ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), error(), execute_query(), tz_ds_rule::from_year, tz_country::full_name, tz_offset_rule::gmt_off, tz_timezone::gmt_off_rule_count, tz_timezone::gmt_off_rule_start, i, tz_ds_rule::in_month, tz_ds_ruleset::index_start, tz_name::is_alias, tz_leap_sec::is_rolling, tz_offset_rule::julian_date, tz_ds_rule::letter_abbrev, tz_leap_sec::month, database_info::name, tz_name::name, tz_data::name_count, tz_data::names, database_info::next, NO_ERROR, NULL, tz_data::offset_rule_count, tz_data::offset_rules, program_name, tz_ds_ruleset::ruleset_name, tz_offset_rule::save_format, tz_ds_rule::save_time, tz_offset_rule::std_format, strlen, tz_data::timezone_count, tz_data::timezone_names, tz_data::timezones, tz_ds_rule::to_year, TRUE, tz_ds_change_on::type, tz_set_new_timezone_data(), tz_offset_rule::until_day, tz_offset_rule::until_flag, tz_offset_rule::until_hour, tz_offset_rule::until_min, tz_offset_rule::until_mon, tz_offset_rule::until_sec, tz_offset_rule::until_time_type, tz_offset_rule::until_year, tz_offset_rule::var_format, tz_leap_sec::year, tz_timezone::zone_id, and tz_name::zone_id.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 951 of file tz_compile.c.
References assert, tz_raw_offset_rule::ds_ruleset_name, tz_raw_data::ds_rulesets, i, tz_raw_ds_ruleset::is_used, tz_raw_ds_ruleset::name, NO_ERROR, NULL, tz_raw_zone_info::offset_rule_count, tz_raw_zone_info::offset_rules, tz_raw_ds_ruleset::rules, tz_raw_data::ruleset_count, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_2ARG, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_check_new_package_validity().
Definition at line 4637 of file tz_compile.c.
References assert, tz_country::code, tz_data::countries, tz_data::country_count, tz_country::full_name, i, and NULL.
Referenced by dump_tz().
Definition at line 4540 of file tz_compile.c.
References assert, tz_ds_rule::at_time, tz_ds_rule::change_on, tz_ds_ruleset::count, DAY_NAMES_ABBREV, tz_ds_change_on::day_of_month, tz_ds_change_on::day_of_week, tz_data::ds_rules, tz_data::ds_rulesets, tz_ds_rule::from_year, i, tz_ds_rule::in_month, tz_ds_ruleset::index_start, tz_ds_rule::letter_abbrev, MONTH_NAMES_ABBREV, print_seconds_as_time_hms_var(), tz_ds_ruleset::ruleset_name, tz_ds_rule::save_time, tz_ds_rule::to_year, tz_ds_change_on::type, TZ_DS_TYPE_FIXED, TZ_DS_TYPE_VAR_GREATER, TZ_DS_TYPE_VAR_SMALLER, and TZ_MAX_YEAR.
Referenced by tzc_dump_one_timezone().
Definition at line 4788 of file tz_compile.c.
References assert, tz_leap_sec::corr_negative, tz_leap_sec::day, tz_data::ds_leap_sec, tz_data::ds_leap_sec_count, i, tz_leap_sec::is_rolling, tz_leap_sec::month, MONTH_NAMES_ABBREV, NULL, and tz_leap_sec::year.
Referenced by dump_tz().
|
static |
Definition at line 4466 of file tz_compile.c.
References assert, tz_offset_rule::ds_ruleset, tz_data::ds_ruleset_count, tz_data::ds_rulesets, tz_offset_rule::ds_type, DS_TYPE_RULESET_ID, tz_offset_rule::gmt_off, MONTH_NAMES_ABBREV, NULL, print_seconds_as_time_hms_var(), tz_ds_ruleset::ruleset_name, tz_offset_rule::save_format, tz_offset_rule::std_format, TZ_MON_COUNT, tz_offset_rule::until_day, tz_offset_rule::until_hour, tz_offset_rule::until_min, tz_offset_rule::until_mon, tz_offset_rule::until_sec, tz_offset_rule::until_year, and tz_offset_rule::var_format.
Referenced by tzc_dump_one_timezone().
Definition at line 4674 of file tz_compile.c.
References assert, tz_offset_rule::ds_ruleset, tz_offset_rule::ds_type, DS_TYPE_FIXED, tz_timezone::gmt_off_rule_count, tz_timezone::gmt_off_rule_start, i, tz_name::name, tz_data::names, NO_ERROR, NULL, tz_data::offset_rules, tz_data::timezone_names, tz_data::timezones, tzc_dump_ds_ruleset(), tzc_dump_one_offset_rule(), and tzc_get_timezone_aliases().
Referenced by dump_tz().
Definition at line 4617 of file tz_compile.c.
References assert, tz_data::country_count, tz_data::ds_leap_sec_count, tz_data::ds_rule_count, tz_data::ds_ruleset_count, tz_data::name_count, NULL, tz_data::offset_rule_count, and tz_data::timezone_count.
Referenced by dump_tz().
Definition at line 4655 of file tz_compile.c.
References assert, i, NULL, tz_data::timezone_count, and tz_data::timezone_names.
Referenced by dump_tz().
Definition at line 4205 of file tz_compile.c.
References tz_ds_rule::at_time, tz_ds_rule::at_time_type, tz_ds_rule::change_on, tz_data::checksum, tz_country::code, tz_leap_sec::corr_negative, tz_ds_ruleset::count, tz_data::countries, tz_data::country_count, tz_timezone::country_id, tz_leap_sec::day, tz_ds_change_on::day_of_month, tz_ds_change_on::day_of_week, tz_ds_ruleset::default_abrev, tz_data::ds_leap_sec, tz_data::ds_leap_sec_count, tz_data::ds_rule_count, tz_data::ds_rules, tz_offset_rule::ds_ruleset, tz_data::ds_ruleset_count, tz_data::ds_rulesets, tz_offset_rule::ds_type, fopen_ex(), tz_ds_rule::from_year, tz_country::full_name, tz_offset_rule::gmt_off, tz_timezone::gmt_off_rule_count, tz_timezone::gmt_off_rule_start, i, tz_ds_rule::in_month, tz_ds_ruleset::index_start, tz_name::is_alias, tz_leap_sec::is_rolling, julian_encode(), tz_ds_rule::letter_abbrev, tz_leap_sec::month, tz_name::name, tz_data::name_count, tz_data::names, NO_ERROR, NULL, tz_data::offset_rule_count, tz_data::offset_rules, PRINT_STRING_VAR_TO_C_FILE, tz_ds_ruleset::ruleset_name, tz_offset_rule::save_format, tz_ds_rule::save_time, SHLIB_EXPORT_PREFIX, tz_offset_rule::std_format, tz_data::timezone_count, tz_data::timezone_names, tz_data::timezones, tz_ds_rule::to_year, tz_ds_ruleset::to_year_max, tz_ds_change_on::type, TZC_ERR_GENERIC, tz_offset_rule::until_day, tz_offset_rule::until_flag, tz_offset_rule::until_hour, tz_offset_rule::until_min, tz_offset_rule::until_mon, tz_offset_rule::until_sec, tz_offset_rule::until_time_type, tz_offset_rule::until_year, tz_offset_rule::var_format, tz_leap_sec::year, tz_timezone::zone_id, and tz_name::zone_id.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 5189 of file tz_compile.c.
Referenced by init_tz_name().
Definition at line 5151 of file tz_compile.c.
References tz_name::name, tz_data::name_count, tz_data::names, and tz_name::zone_id.
Referenced by init_tz_name().
|
static |
Definition at line 2363 of file tz_compile.c.
References tz_raw_zone_info::alias_count, tz_raw_zone_info::aliases, tz_raw_data::countries, tz_raw_data::ds_rulesets, free_and_init, i, tz_raw_data::leap_sec, tz_raw_data::links, NULL, tz_raw_zone_info::offset_rules, tz_raw_ds_ruleset::rules, tz_raw_data::ruleset_count, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_check_new_package_validity().
Definition at line 751 of file tz_compile.c.
References tz_data::countries, tz_ds_ruleset::default_abrev, tz_data::ds_leap_sec, tz_data::ds_rule_count, tz_data::ds_rules, tz_data::ds_ruleset_count, tz_data::ds_rulesets, i, tz_ds_rule::letter_abbrev, tz_name::name, tz_data::name_count, tz_data::names, NULL, tz_data::offset_rule_count, tz_data::offset_rules, tz_ds_ruleset::ruleset_name, tz_offset_rule::save_format, tz_offset_rule::std_format, tz_data::timezone_count, tz_data::timezone_names, tz_data::timezones, and tz_offset_rule::var_format.
Referenced by init_tz_name(), and tzc_check_new_package_validity().
|
static |
Definition at line 4386 of file tz_compile.c.
Referenced by init_tz_name(), and tzc_compile_data().
|
static |
Definition at line 4425 of file tz_compile.c.
References assert, i, tz_name::is_alias, tz_data::name_count, tz_data::names, NO_ERROR, NULL, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_2ARG, and tz_name::zone_id.
Referenced by tzc_dump_one_timezone().
|
static |
Definition at line 4189 of file tz_compile.c.
References envvar_cubrid_dir(), PATH_PARTIAL_TIMEZONES_FILE, and tzc_build_filepath().
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 1841 of file tz_compile.c.
References assert, tz_raw_zone_info::full_name, i, NO_ERROR, NULL, TZC_ERR_GENERIC, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_load_rule_file().
|
static |
Definition at line 930 of file tz_compile.c.
References NO_ERROR, and TZ_GEN_TYPE_NEW.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 1027 of file tz_compile.c.
References ARG_FILE_LINE, ER_ERROR_SEVERITY, er_set(), ER_TZ_COMPILE_ERROR, NO_ERROR, TZ_GEN_TYPE_EXTEND, TZ_GEN_TYPE_NEW, TZC_ERR_MSG_MAX_SIZE, tzc_index_raw_data(), and tzc_index_raw_subdata().
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 2581 of file tz_compile.c.
References tz_raw_zone_info::clone_of_id, tz_raw_data::countries, tz_raw_data::country_count, i, tz_raw_country::id, tz_raw_zone_info::id, tz_raw_country::is_used, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_index_data().
|
static |
Definition at line 2609 of file tz_compile.c.
References tz_raw_zone_info::clone_of_id, tz_raw_data::countries, tz_raw_data::country_count, tz_raw_data::ds_rulesets, i, tz_raw_country::id, tz_raw_zone_info::id, tz_raw_country::is_used, tz_raw_ds_ruleset::is_used, NO_ERROR, tz_raw_data::ruleset_count, tz_raw_data::zone_count, and tz_raw_data::zones.
|
static |
Definition at line 2680 of file tz_compile.c.
References tz_raw_link::alias, tz_raw_zone_info::alias_count, tz_raw_zone_info::aliases, assert, tz_raw_zone_info::clone_of, tz_raw_zone_info::clone_of_id, tz_raw_country::code, tz_raw_zone_info::code, tz_raw_data::countries, tz_raw_data::country_count, tz_raw_zone_info::country_id, tz_raw_zone_info::full_name, i, tz_raw_country::id, tz_raw_zone_info::id, tz_raw_country::is_used, tz_raw_data::link_count, tz_raw_data::links, tz_raw_link::name, NO_ERROR, NULL, strdup(), strlen, TZ_GEN_TYPE_EXTEND, TZ_GEN_TYPE_NEW, TZ_GEN_TYPE_UPDATE, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_2ARG, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_index_data().
|
static |
Definition at line 2325 of file tz_compile.c.
References DAYS_IN_MONTH, IS_LEAP_YEAR, TZ_MAX_YEAR, TZ_MON_DEC, and TZ_MON_FEB.
Referenced by str_to_offset_rule_until(), and tzc_parse_ds_change_on().
|
static |
Definition at line 1414 of file tz_compile.c.
References assert, tz_raw_data::context, tz_raw_context::current_line, fopen_ex(), i, IS_EMPTY_STR, LOG_TZC_SET_CURRENT_CONTEXT, tz_file_descriptor::name, NO_ERROR, NULL, strlen, trim_comments_whitespaces(), tz_file_descriptor::type, tz_File_count, TZ_MAX_LINE_LEN, tzc_add_link(), tzc_build_filepath(), TZC_CONTEXT, TZC_ERR_BAD_TZ_LINK, TZC_ERR_FILE_NOT_ACCESSIBLE, TZC_LOG_ERROR_2ARG, and TZF_BACKWARD.
Referenced by tzc_load_raw_data().
|
static |
Definition at line 1062 of file tz_compile.c.
References assert, tz_raw_country::code, tz_raw_data::context, tz_raw_data::countries, tz_raw_data::country_count, tz_raw_context::current_line, fopen_ex(), tz_raw_country::full_name, i, tz_raw_country::id, IS_EMPTY_STR, LOG_TZC_SET_CURRENT_CONTEXT, tz_file_descriptor::name, NO_ERROR, NULL, strlen, strncpy_bufsize, trim_comments_whitespaces(), tz_file_descriptor::type, TZ_COUNTRY_CODE_LEN, tz_File_count, tzc_build_filepath(), TZC_CONTEXT, TZC_ERR_FILE_NOT_ACCESSIBLE, TZC_ERR_INVALID_COUNTRY, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_1ARG, TZC_LOG_ERROR_2ARG, and TZF_COUNTRIES.
Referenced by tzc_load_raw_data().
|
static |
Definition at line 1511 of file tz_compile.c.
References assert, tz_raw_data::context, tz_raw_context::current_line, fopen_ex(), i, IS_EMPTY_STR, tz_raw_data::leap_sec, tz_raw_data::leap_sec_count, LOG_TZC_SET_CURRENT_CONTEXT, tz_file_descriptor::name, NO_ERROR, NULL, str_month_to_int(), strlen, trim_comments_whitespaces(), tz_file_descriptor::type, tz_File_count, TZ_MAX_LINE_LEN, tz_str_read_number(), tz_str_read_time(), tzc_add_leap_sec(), tzc_build_filepath(), TZC_CONTEXT, TZC_ERR_FILE_NOT_ACCESSIBLE, TZC_ERR_INVALID_VALUE, TZC_LOG_ERROR_2ARG, and TZF_LEAP.
Referenced by tzc_load_raw_data().
|
static |
Definition at line 856 of file tz_compile.c.
References i, LOG_TZC_SET_CURRENT_CONTEXT, NO_ERROR, tz_file_descriptor::type, tz_File_count, tzc_check_links_raw_data(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), tzc_load_zone_names(), and TZF_RULES.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 1262 of file tz_compile.c.
References assert, tz_raw_data::context, tz_raw_context::current_line, fopen_ex(), IS_EMPTY_STR, LOG_TZC_SET_CURRENT_CONTEXT, tz_file_descriptor::name, NO_ERROR, NULL, strlen, trim_comments_whitespaces(), tz_file_descriptor::type, tz_File_count, TZ_MAX_LINE_LEN, TZ_OFFRULE_PREFIX_TAB_COUNT, tzc_add_ds_rule(), tzc_add_link(), tzc_add_offset_rule(), tzc_add_zone(), tzc_build_filepath(), TZC_CONTEXT, TZC_ERR_ADD_ZONE, TZC_ERR_BAD_TZ_LINK, TZC_ERR_FILE_NOT_ACCESSIBLE, TZC_ERR_INVALID_VALUE, tzc_get_zone(), TZC_LOG_ERROR_1ARG, TZC_LOG_ERROR_2ARG, and TZF_RULES.
Referenced by tzc_load_raw_data().
|
static |
Definition at line 1161 of file tz_compile.c.
References assert, tz_raw_data::context, tz_raw_context::current_line, fopen_ex(), i, IS_EMPTY_STR, LOG_TZC_SET_CURRENT_CONTEXT, tz_file_descriptor::name, NO_ERROR, NULL, strlen, trim_comments_whitespaces(), tz_file_descriptor::type, tz_File_count, tzc_add_zone(), tzc_build_filepath(), TZC_CONTEXT, TZC_ERR_FILE_NOT_ACCESSIBLE, TZC_ERR_INVALID_ZONE, TZC_ERR_MSG_MAX_SIZE, TZC_LOG_ERROR_2ARG, TZF_ZONES, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_load_raw_data().
|
static |
Definition at line 4814 of file tz_compile.c.
References ARG_FILE_LINE, assert, tz_raw_context::current_file, tz_raw_context::current_line, ER_ERROR_SEVERITY, er_set(), ER_TZ_COMPILE_ERROR, IS_EMPTY_STR, NULL, snprintf_dots_truncate, tzc_Err_message_count, tzc_Err_messages, and TZC_ERR_MSG_MAX_SIZE.
|
static |
Definition at line 2243 of file tz_compile.c.
References assert, tz_raw_ds_rule::change_on, tz_ds_change_on::day_of_month, tz_ds_change_on::day_of_week, tz_raw_ds_rule::from_year, if(), tz_raw_ds_rule::in_month, NO_ERROR, NULL, str_read_day_var(), strlen, tz_raw_ds_rule::to_year, tz_file_descriptor::type, tz_ds_change_on::type, TZ_DS_TYPE_FIXED, TZ_DS_TYPE_VAR_GREATER, TZ_DS_TYPE_VAR_SMALLER, TZ_MAX_YEAR, TZ_MON_DEC, TZ_WEEK_DAY_COUNT, TZC_ERR_DS_INVALID_DATE, TZC_ERR_MSG_MAX_SIZE, tzc_is_valid_date(), and TZC_LOG_ERROR_2ARG.
Referenced by tzc_add_ds_rule().
|
static |
Definition at line 1983 of file tz_compile.c.
References assert, NO_ERROR, NULL, TZ_TIME_TYPE_LOCAL_STD, TZ_TIME_TYPE_LOCAL_WALL, TZ_TIME_TYPE_UTC, and TZC_ERR_GENERIC.
Referenced by str_to_offset_rule_until(), and tzc_add_ds_rule().
|
static |
Definition at line 2542 of file tz_compile.c.
References comp_func_raw_countries(), comp_func_raw_ds_rules(), comp_func_raw_ds_rulesets(), comp_func_raw_links(), comp_func_raw_offset_rules(), comp_func_raw_zones(), tz_raw_data::countries, tz_raw_data::country_count, tz_raw_data::ds_rulesets, i, tz_raw_data::link_count, tz_raw_data::links, NULL, tz_raw_zone_info::offset_rule_count, tz_raw_zone_info::offset_rules, tz_raw_ds_ruleset::rule_count, tz_raw_ds_ruleset::rules, tz_raw_data::ruleset_count, tz_raw_data::zone_count, and tz_raw_data::zones.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 4839 of file tz_compile.c.
References tz_raw_link::alias, assert, tz_raw_zone_info::comments, tz_raw_zone_info::coordinates, tz_raw_data::countries, tz_raw_data::country_count, tz_raw_offset_rule::ds_ruleset_name, tz_raw_data::ds_rulesets, ER_TZ_COMPILE_ERROR, tz_raw_offset_rule::format, tz_raw_country::full_name, tz_raw_zone_info::full_name, i, tz_windows_iana_map::iana_zone_id, IS_EMPTY_STR, tz_raw_ds_rule::letter_abbrev, tz_raw_data::link_count, tz_raw_data::links, tz_file_descriptor::name, tz_raw_link::name, tz_name::name, tz_raw_ds_ruleset::name, tz_data::name_count, tz_data::names, NO_ERROR, NULL, tz_raw_zone_info::offset_rule_count, tz_raw_zone_info::offset_rules, tz_raw_ds_ruleset::rule_count, tz_raw_ds_ruleset::rules, tz_raw_data::ruleset_count, strlen, tz_windows_iana_map::territory, tz_file_descriptor::type, TZ_COUNTRY_CODE_SIZE, tz_File_count, TZ_MAX_LINE_LEN, TZ_WINDOWS_ZONE_NAME_SIZE, tzc_build_filepath(), TZC_ERR_INVALID_VALUE, TZC_ERR_MSG_MAX_SIZE, TZC_ERR_OUT_OF_MEMORY, TZC_LOG_ERROR_1ARG, TZC_LOG_ERROR_2ARG, xml_parser_data::ud, tz_windows_iana_map::windows_zone, xml_destroy_parser(), xml_get_att_value(), xml_init_parser(), xml_parser_data::xml_parser, xml_parser_exec(), XML_USER_DATA, tz_raw_data::zone_count, tz_name::zone_id, and tz_raw_data::zones.
Referenced by tzc_check_new_package_validity().
|
static |
Definition at line 242 of file tz_compile.c.
Referenced by str_day_to_int(), and tzc_dump_ds_ruleset().
|
static |
Definition at line 239 of file tz_compile.c.
Referenced by str_month_to_int(), tzc_check_ds_ruleset(), tzc_dump_ds_ruleset(), tzc_dump_leap_sec(), and tzc_dump_one_offset_rule().
const TZ_COUNTRY tz_countries[] |
|
static |
Definition at line 123 of file tz_compile.c.
Referenced by tzc_check_new_package_validity(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_raw_data(), tzc_load_rule_file(), tzc_load_zone_names(), and tzc_summary().
|
static |
Definition at line 101 of file tz_compile.c.
const char* tz_timezone_names[] |
|
static |
Definition at line 318 of file tz_compile.c.
Referenced by tzc_log_error().
|
static |
Definition at line 279 of file tz_compile.c.
Referenced by tzc_log_error().