This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] time facets, two of three
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] time facets, two of three
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 28 Sep 2001 16:34:34 -0700
- Organization: Red Hat/San Francisco
- Reply-To: bkoz at redhat dot com
About 2/3 of the way done with the implementation. Remaining:
- address alt time/date formats
- move to parsing default time/date strings via locale defaults
- wide versions
I expect these to be forthcoming, but since this patch is already so big,
I thought I'd do a drop.
tested x86/linux
-benjamin
2001-09-28 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/time_members_gnu.h (__timepunct::_M_get_helper):
Add.
(__timepunct::_M_put_helper): Add.
* config/locale/time_members_generic.h: Same.
* include/bits/locale_facets.h (__match_parallel): Remove. Format.
(__timepunct): Add data members.
(__timepunct::_M_days): Add.
(__timepunct::_M_days_abbreviated): Add.
(__timepunct::_M_months): Add.
(__timepunct::_M_months_abbreviated): Add.
(__timepunct::_M_initialize_timepunct): Add.
* include/bits/locale_facets.tcc: Same.
* src/locale-inst.cc: Remove instantiations for __match_parallel.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add CTIME_CC.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/22_locale/time_put_members_char.cc: Mark XFAIL.
* testsuite/22_locale/time_put_members_char.cc (test01): New file.
* testsuite/22_locale/time_get.cc: New file.
CL (
p.20010928.gz