2000-05-25 21:09:01 +08:00
|
|
|
## Makefile for the libio subdirectory of the GNU C++ Standard library.
|
2000-04-22 04:33:34 +08:00
|
|
|
##
|
2001-02-03 17:01:44 +08:00
|
|
|
## Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
2000-04-22 04:33:34 +08:00
|
|
|
##
|
|
|
|
## This file is part of the libstdc++ version 3 distribution.
|
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
|
|
|
|
## This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
## software; you can redistribute it and/or modify it under the
|
|
|
|
## terms of the GNU General Public License as published by the
|
|
|
|
## Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This library is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License along
|
|
|
|
## with this library; see the file COPYING. If not, write to the Free
|
|
|
|
## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
## USA.
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = 1.3 cygnus
|
|
|
|
|
2001-02-03 17:01:44 +08:00
|
|
|
mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
|
|
|
|
|
2000-12-09 06:26:49 +08:00
|
|
|
if GLIBCPP_BUILD_LIBIO
|
2000-10-08 02:54:08 +08:00
|
|
|
noinst_LTLIBRARIES = libio.la
|
2000-12-09 06:26:49 +08:00
|
|
|
else
|
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
endif
|
2000-10-08 02:54:08 +08:00
|
|
|
|
2000-10-12 19:45:23 +08:00
|
|
|
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
2001-07-14 00:47:56 +08:00
|
|
|
GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
|
2000-10-12 19:45:23 +08:00
|
|
|
TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
|
|
|
|
LIBIO_INCLUDES = @LIBIO_INCLUDES@
|
2000-07-02 10:16:35 +08:00
|
|
|
|
|
|
|
INCLUDES = \
|
2000-10-05 19:36:52 +08:00
|
|
|
-nostdinc++ \
|
2001-07-14 00:47:56 +08:00
|
|
|
$(GLIBCPP_INCLUDES) $(LIBIO_INCLUDES) $(TOPLEVEL_INCLUDES)
|
2000-04-22 04:33:34 +08:00
|
|
|
|
|
|
|
libio_headers = \
|
|
|
|
libio.h libioP.h iolibio.h
|
|
|
|
|
|
|
|
if GLIBCPP_NEED_LIBIO
|
|
|
|
LIBIO_SRCS = \
|
Preliminary named locales.
2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
Preliminary named locales.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
* aclocal.m4: Regenerate.
* configure.in: Use it.
* configure: Regerate.
* src/Makefile.am (sources): Add c++locale.cc.
(build_headers): Add c++locale.h.
* src/Makefile.in: Regenerate.
* config/c_locale_gnu.h: New file.
* config/c_locale_gnu.cc: New file. Non-inline member functions
for named locales, gnu-specific.
* config/c_locale_generic.h: New file.
* config/c_locale_generic.cc: New file. Non-inline member
functions for named locales, generic version.
* docs/html/configopts.html: Add documentation on new options.
* include/bits/locale_facets.h (class _Messages): Remove.
(class _Moneypunct): Remove.
* src/locale-inst.cc: Remove.
* include/bits/locale_facets.h (class _Collate): Remove.
* src/locale-inst.cc (std): Remove.
* src/locale.cc: And here.
* include/bits/localefwd.h (locale::_M_coalesce): New
function. Correctly put together multi-name locales.
(_Impl(const _Impl&, category, size_t)): Remove.
* include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
member functions.
(_M_normalize_category_names): Remove.
(_M_replace_categories): Fix.
* src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
(locale::_Impl::_M_construct_ctype): Remove.
(locale::_Impl::_M_construct_monetary): Remove.
(locale::_Impl::_M_construct_numeric): Remove.
(locale::_Impl::_M_construct_time): Remove.
(locale::_Impl::_M_construct_messages): Remove.
* include/bits/locale_facets.h (_Bad_use_facet): Remove.
(_Use_facet_failure_handle): Remove.
* src/locale.cc: Remove definitions.
* src/locale-inst.cc: And here.
* testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
* src/localename.cc (locale::facet::_S_create_c_locale): Properly
create and error-check underlying locale object.
(locale::facet::_S_destroy_c_locale): Add, take care of properly
tearing down underlying locale object.
* include/bits/localefwd.h (locale::facet): Declare.
* testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
correctness, as glibc apparently has incorrect info in it. Test
with it when it works again.....
* include/bits/localefwd.h (locale::_Impl::__vec_string):
Remove. Number of categories is fixed at six, so just simplify and
make this an array of strings.
(locale::_Impl::_M_has_name): Remove.
(locale::_Impl::_M_name): Remove.
(locale::_Impl::_M_category_names): Turns into...
(locale::_Impl::_M_names): ...this.
(locale::_Impl::_M_has_same_name()): New function.
* src/localename.cc (locale::_Impl::~_Impl()): Remove here.
(locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
signature.
* src/locale.cc (locale::name()): Construct mangled name
accurately reflecting combined locale categories.
* src/locale.cc (locale::classic()): Don't initialize here.
* src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
__refs, bool __has_name, string __str): Do it here.
* include/bits/localefwd.h: _S_categories_num to
_S_num_categories. _S_facets_num to _S_num_facets.
(locale::id::id()): Explicitly set _M_index to zero.
* src/locale.cc: Same.
* src/locale.cc: (locale::locale(const char*)): Construct named
locales uniquely.
* src/locale.cc: Remove numpunct_byname ctors.
* testsuite/22_locale/numpunct_byname.cc: New file.
* testsuite/22_locale/numpunct.cc: New file.
* include/bits/localefwd.h (class locale): Change data members to
protected, from private.
(_Impl::_M_get_c_locale): Add member function.
(locale::facet::_M_get_global_impl()): Add member function.
* include/bits/locale_facets.h (numpunct::_M_init): Change to take
a __c_locale pointer.
(numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
named locales.
* testsuite/22_locale/members.cc: New file, test name and combine.
* include/bits/locale_facets.h (class numpunct): Remove class
_Punct and _Numpunct. Rewrite class numpunct to be correct for
named locales.
* include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
* src/localename.cc (_Impl::~_Impl()): Call __frelocale.
(_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
* src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
* testsuite/22_locale/numpunct_char_members.cc: New file.
From-SVN: r39347
2001-01-30 17:18:51 +08:00
|
|
|
filedoalloc.c genops.c fileops.c stdfiles.c c_codecvt.c \
|
|
|
|
iofclose.c iofopen.c
|
2000-04-22 04:33:34 +08:00
|
|
|
else
|
|
|
|
LIBIO_SRCS =
|
|
|
|
endif
|
|
|
|
|
2000-07-02 10:16:35 +08:00
|
|
|
if GLIBCPP_NEED_WLIBIO
|
|
|
|
LIBIO_WSRCS = \
|
2000-10-27 20:29:42 +08:00
|
|
|
wfiledoalloc.c wfileops.c wgenops.c iofwide.c
|
2000-05-25 21:09:01 +08:00
|
|
|
else
|
2000-07-02 10:16:35 +08:00
|
|
|
LIBIO_WSRCS =
|
2000-05-25 21:09:01 +08:00
|
|
|
endif
|
2000-04-28 10:50:55 +08:00
|
|
|
|
2000-07-19 08:57:38 +08:00
|
|
|
|
2000-07-02 10:16:35 +08:00
|
|
|
EXTRA_DIST = iostreamP.h
|
2000-05-25 21:09:01 +08:00
|
|
|
|
2000-10-27 20:29:42 +08:00
|
|
|
libio_la_SOURCES = $(LIBIO_SRCS) $(LIBIO_WSRCS)
|
2000-05-25 21:09:01 +08:00
|
|
|
|
2000-10-07 07:31:22 +08:00
|
|
|
|
2000-10-08 02:54:08 +08:00
|
|
|
AM_CFLAGS = -D_GNU_SOURCE @DEBUG_FLAGS@
|