diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-07-28 19:08:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-07-28 19:08:57 +0000 |
commit | fa69dc9caf8fff3e7ebb6da6dbbe144b314277f4 (patch) | |
tree | 41f24eda2791e0b10f114fc1a8dcc70fa207df3e /include/time.h | |
parent | 7b503bcc1373670a4456ba8f4a5ccfce712347d1 (diff) | |
download | glibc-fa69dc9caf8fff3e7ebb6da6dbbe144b314277f4.tar glibc-fa69dc9caf8fff3e7ebb6da6dbbe144b314277f4.tar.gz glibc-fa69dc9caf8fff3e7ebb6da6dbbe144b314277f4.tar.bz2 glibc-fa69dc9caf8fff3e7ebb6da6dbbe144b314277f4.zip |
* include/time.h (enum ptime_locale_status): Remove.
(__strptime_internal): Remove decided and era_cnt arguments,
add statep argument.
* time/strptime_l.c (__strptime_internal): Remove decided
and era_cnt arguments, add statep argument. Don't recompute
any fields in recursive calls, only update caller's tm
and state, if recursive call fails, don't change tm nor
any state.
(get_alt_number): Adjust.
(recursive): Adjust caller.
(strptime): Likewise.
* time/strptime.c (strptime): Likewise.
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/time.h b/include/time.h index d71f985014..ed6cb3669f 100644 --- a/include/time.h +++ b/include/time.h @@ -93,17 +93,10 @@ extern int __getclktck (void); /* strptime support. */ -/* Status of lookup: do we use the locale data or the raw data? */ -#ifndef __cplusplus -/* C++ cannot deal with using 'not'. */ -enum ptime_locale_status { not, loc, raw }; - extern char * __strptime_internal (const char *rp, const char *fmt, - struct tm *tm, - enum ptime_locale_status *decided, - int era_cnt, __locale_t locparam) + struct tm *tm, void *statep, + __locale_t locparam) internal_function; -#endif extern double __difftime (time_t time1, time_t time0); |