diff options
author | ianh <ianh@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-06 17:50:02 +0000 |
---|---|---|
committer | ianh <ianh@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-06 17:50:02 +0000 |
commit | ae28065b067948eca9f32f61a9be51aa8c57aef3 (patch) | |
tree | 485eb7b0904de93e2033f45b265f444ed18a4bd9 /time | |
parent | 779984c664f44262df82072f13545fb81beea825 (diff) | |
download | libapr-ae28065b067948eca9f32f61a9be51aa8c57aef3.tar.gz |
patches for apr to rename apr_ansi_time_to_apr_time and
apr_exploded_time_t.
PR:
Obtained from:
Submitted by: Thom May <thom@planetarytramp.org>
Reviewed by: Ian Holsman
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63090 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/unix/time.c | 18 | ||||
-rw-r--r-- | time/unix/timestr.c | 6 | ||||
-rw-r--r-- | time/win32/time.c | 18 | ||||
-rw-r--r-- | time/win32/timestr.c | 6 |
4 files changed, 24 insertions, 24 deletions
diff --git a/time/unix/time.c b/time/unix/time.c index 87c54e08e..13f69d266 100644 --- a/time/unix/time.c +++ b/time/unix/time.c @@ -100,7 +100,7 @@ static apr_int32_t get_offset(struct tm *tm) #endif } -APR_DECLARE(apr_status_t) apr_ansi_time_to_apr_time(apr_time_t *result, +APR_DECLARE(apr_status_t) apr_time_ansi_put(apr_time_t *result, time_t input) { *result = (apr_time_t)input * APR_USEC_PER_SEC; @@ -115,7 +115,7 @@ APR_DECLARE(apr_time_t) apr_time_now(void) return tv.tv_sec * APR_USEC_PER_SEC + tv.tv_usec; } -static void explode_time(apr_exploded_time_t *xt, apr_time_t t, +static void explode_time(apr_time_exp_t *xt, apr_time_t t, apr_int32_t offset, int use_localtime) { struct tm tm; @@ -146,7 +146,7 @@ static void explode_time(apr_exploded_time_t *xt, apr_time_t t, xt->tm_gmtoff = get_offset(&tm); } -APR_DECLARE(apr_status_t) apr_explode_time(apr_exploded_time_t *result, apr_time_t input, +APR_DECLARE(apr_status_t) apr_explode_time(apr_time_exp_t *result, apr_time_t input, apr_int32_t offs) { explode_time(result, input, offs, 0); @@ -154,12 +154,12 @@ APR_DECLARE(apr_status_t) apr_explode_time(apr_exploded_time_t *result, apr_time return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_explode_gmt(apr_exploded_time_t *result, apr_time_t input) +APR_DECLARE(apr_status_t) apr_explode_gmt(apr_time_exp_t *result, apr_time_t input) { return apr_explode_time(result, input, 0); } -APR_DECLARE(apr_status_t) apr_explode_localtime(apr_exploded_time_t *result, apr_time_t input) +APR_DECLARE(apr_status_t) apr_explode_localtime(apr_time_exp_t *result, apr_time_t input) { #if defined(__EMX__) /* EMX gcc (OS/2) has a timezone global we can use */ @@ -170,7 +170,7 @@ APR_DECLARE(apr_status_t) apr_explode_localtime(apr_exploded_time_t *result, apr #endif /* __EMX__ */ } -APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t, apr_exploded_time_t *xt) +APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t, apr_time_exp_t *xt) { int year; time_t days; @@ -201,7 +201,7 @@ APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t, apr_exploded_time_t *x return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_implode_gmt(apr_time_t *t, apr_exploded_time_t *xt) +APR_DECLARE(apr_status_t) apr_implode_gmt(apr_time_t *t, apr_time_exp_t *xt) { apr_status_t status = apr_implode_time(t, xt); if (status == APR_SUCCESS) @@ -218,7 +218,7 @@ APR_DECLARE(apr_status_t) apr_os_imp_time_get(apr_os_imp_time_t **ostime, } APR_DECLARE(apr_status_t) apr_os_exp_time_get(apr_os_exp_time_t **ostime, - apr_exploded_time_t *aprtime) + apr_time_exp_t *aprtime) { (*ostime)->tm_sec = aprtime->tm_sec; (*ostime)->tm_min = aprtime->tm_min; @@ -244,7 +244,7 @@ APR_DECLARE(apr_status_t) apr_os_imp_time_put(apr_time_t *aprtime, apr_os_imp_ti return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_os_exp_time_put(apr_exploded_time_t *aprtime, +APR_DECLARE(apr_status_t) apr_os_exp_time_put(apr_time_exp_t *aprtime, apr_os_exp_time_t **ostime, apr_pool_t *cont) { aprtime->tm_sec = (*ostime)->tm_sec; diff --git a/time/unix/timestr.c b/time/unix/timestr.c index c41d876b1..2af9ab543 100644 --- a/time/unix/timestr.c +++ b/time/unix/timestr.c @@ -79,7 +79,7 @@ APR_DECLARE_DATA const char apr_day_snames[7][4] = apr_status_t apr_rfc822_date(char *date_str, apr_time_t t) { - apr_exploded_time_t xt; + apr_time_exp_t xt; const char *s; int real_year; @@ -127,7 +127,7 @@ apr_status_t apr_rfc822_date(char *date_str, apr_time_t t) apr_status_t apr_ctime(char *date_str, apr_time_t t) { - apr_exploded_time_t xt; + apr_time_exp_t xt; const char *s; int real_year; @@ -168,7 +168,7 @@ apr_status_t apr_ctime(char *date_str, apr_time_t t) } apr_status_t apr_strftime(char *s, apr_size_t *retsize, apr_size_t max, - const char *format, apr_exploded_time_t *xt) + const char *format, apr_time_exp_t *xt) { struct tm tm; memset(&tm, 0, sizeof tm); diff --git a/time/win32/time.c b/time/win32/time.c index 9d46ecccf..b43449c5e 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -71,7 +71,7 @@ */ #define IsLeapYear(y) ((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0) : 0) -static void SystemTimeToAprExpTime(apr_exploded_time_t *xt, SYSTEMTIME *tm, BOOL lt) +static void SystemTimeToAprExpTime(apr_time_exp_t *xt, SYSTEMTIME *tm, BOOL lt) { TIME_ZONE_INFORMATION tz; DWORD rc; @@ -123,7 +123,7 @@ static void SystemTimeToAprExpTime(apr_exploded_time_t *xt, SYSTEMTIME *tm, BOOL return; } -APR_DECLARE(apr_status_t) apr_ansi_time_to_apr_time(apr_time_t *result, +APR_DECLARE(apr_status_t) apr_time_ansi_put(apr_time_t *result, time_t input) { *result = (apr_time_t) input * APR_USEC_PER_SEC; @@ -146,7 +146,7 @@ APR_DECLARE(apr_time_t) apr_time_now(void) return aprtime; } -APR_DECLARE(apr_status_t) apr_explode_gmt(apr_exploded_time_t *result, +APR_DECLARE(apr_status_t) apr_explode_gmt(apr_time_exp_t *result, apr_time_t input) { FILETIME ft; @@ -158,7 +158,7 @@ APR_DECLARE(apr_status_t) apr_explode_gmt(apr_exploded_time_t *result, return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_explode_time(apr_exploded_time_t *result, +APR_DECLARE(apr_status_t) apr_explode_time(apr_time_exp_t *result, apr_time_t input, apr_int32_t offs) { FILETIME ft; @@ -171,7 +171,7 @@ APR_DECLARE(apr_status_t) apr_explode_time(apr_exploded_time_t *result, return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_explode_localtime(apr_exploded_time_t *result, +APR_DECLARE(apr_status_t) apr_explode_localtime(apr_time_exp_t *result, apr_time_t input) { SYSTEMTIME st; @@ -186,7 +186,7 @@ APR_DECLARE(apr_status_t) apr_explode_localtime(apr_exploded_time_t *result, } APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t, - apr_exploded_time_t *xt) + apr_time_exp_t *xt) { int year; time_t days; @@ -221,7 +221,7 @@ APR_DECLARE(apr_status_t) apr_implode_time(apr_time_t *t, } APR_DECLARE(apr_status_t) apr_implode_gmt(apr_time_t *t, - apr_exploded_time_t *xt) + apr_time_exp_t *xt) { apr_status_t status = apr_implode_time(t, xt); if (status == APR_SUCCESS) @@ -238,7 +238,7 @@ APR_DECLARE(apr_status_t) apr_os_imp_time_get(apr_os_imp_time_t **ostime, } APR_DECLARE(apr_status_t) apr_os_exp_time_get(apr_os_exp_time_t **ostime, - apr_exploded_time_t *aprexptime) + apr_time_exp_t *aprexptime) { (*ostime)->wYear = aprexptime->tm_year + 1900; (*ostime)->wMonth = aprexptime->tm_mon + 1; @@ -261,7 +261,7 @@ APR_DECLARE(apr_status_t) apr_os_imp_time_put(apr_time_t *aprtime, return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_os_exp_time_put(apr_exploded_time_t *aprtime, +APR_DECLARE(apr_status_t) apr_os_exp_time_put(apr_time_exp_t *aprtime, apr_os_exp_time_t **ostime, apr_pool_t *cont) { diff --git a/time/win32/timestr.c b/time/win32/timestr.c index b30440e4b..7b6969fa2 100644 --- a/time/win32/timestr.c +++ b/time/win32/timestr.c @@ -67,7 +67,7 @@ APR_DECLARE_DATA const char apr_day_snames[7][4] = APR_DECLARE(apr_status_t) apr_rfc822_date(char *date_str, apr_time_t t) { - apr_exploded_time_t xt; + apr_time_exp_t xt; const char *s; int real_year; @@ -115,7 +115,7 @@ APR_DECLARE(apr_status_t) apr_rfc822_date(char *date_str, apr_time_t t) APR_DECLARE(apr_status_t) apr_ctime(char *date_str, apr_time_t t) { - apr_exploded_time_t xt; + apr_time_exp_t xt; const char *s; int real_year; @@ -220,7 +220,7 @@ int win32_strftime_extra(char *s, size_t max, const char *format, APR_DECLARE(apr_status_t) apr_strftime(char *s, apr_size_t *retsize, apr_size_t max, const char *format, - apr_exploded_time_t *xt) + apr_time_exp_t *xt) { struct tm tm; memset(&tm, 0, sizeof tm); |