diff options
author | Anatol Belski <ab@php.net> | 2014-08-26 09:27:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-26 09:27:55 +0200 |
commit | c49cd84da92c411d9cabce05d09c1a4a345b6c04 (patch) | |
tree | 6cc2f1be07e94fa98341ab320de5f4f2267771bf /ext/date/lib/parse_date.c | |
parent | 6469339a5819856a68c719170a48c2f9c80e5b33 (diff) | |
download | php-git-c49cd84da92c411d9cabce05d09c1a4a345b6c04.tar.gz |
make timelib independent from zend_long
Diffstat (limited to 'ext/date/lib/parse_date.c')
-rw-r--r-- | ext/date/lib/parse_date.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/date/lib/parse_date.c b/ext/date/lib/parse_date.c index ad9727d197..f1334e7826 100644 --- a/ext/date/lib/parse_date.c +++ b/ext/date/lib/parse_date.c @@ -566,11 +566,11 @@ static timelib_sll timelib_get_relative_text(char **ptr, int *behavior) return timelib_lookup_relative_text(ptr, behavior); } -static long timelib_lookup_month(char **ptr) +static timelib_long timelib_lookup_month(char **ptr) { char *word; char *begin = *ptr, *end; - long value = 0; + timelib_long value = 0; const timelib_lookup_table *tp; while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) { @@ -590,7 +590,7 @@ static long timelib_lookup_month(char **ptr) return value; } -static long timelib_get_month(char **ptr) +static timelib_long timelib_get_month(char **ptr) { while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '.' || **ptr == '/') { ++*ptr; @@ -670,7 +670,7 @@ static void timelib_set_relative(char **ptr, timelib_sll amount, int behavior, S } } -const static timelib_tz_lookup_table* abbr_search(const char *word, long gmtoffset, int isdst) +const static timelib_tz_lookup_table* abbr_search(const char *word, timelib_long gmtoffset, int isdst) { int first_found = 0; const timelib_tz_lookup_table *tp, *first_found_elem = NULL; @@ -708,11 +708,11 @@ const static timelib_tz_lookup_table* abbr_search(const char *word, long gmtoffs return NULL; } -static long timelib_lookup_abbr(char **ptr, int *dst, char **tz_abbr, int *found) +static timelib_long timelib_lookup_abbr(char **ptr, int *dst, char **tz_abbr, int *found) { char *word; char *begin = *ptr, *end; - long value = 0; + timelib_long value = 0; const timelib_tz_lookup_table *tp; while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') { @@ -735,10 +735,10 @@ static long timelib_lookup_abbr(char **ptr, int *dst, char **tz_abbr, int *found return value; } -long timelib_parse_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timelib_tzdb *tzdb, timelib_tz_get_wrapper tz_wrapper) +timelib_long timelib_parse_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timelib_tzdb *tzdb, timelib_tz_get_wrapper tz_wrapper) { timelib_tzinfo *res; - long retval = 0; + timelib_long retval = 0; *tz_not_found = 0; @@ -766,7 +766,7 @@ long timelib_parse_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found retval = timelib_parse_tz_cor(ptr); } else { int found = 0; - long offset = 0; + timelib_long offset = 0; char *tz_abbr; t->is_localtime = 1; |