summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-08 20:25:39 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-08 20:25:39 +0000
commitb290c3142312f2c58095bc2ca9a4bf172a138bb2 (patch)
tree4b9bb1c9f3c33a77bbb57d437be5c6bfcde01953 /libstdc++-v3
parent46a0db457613590c1c77a66258f0dbcd1a77c6f2 (diff)
downloadppe42-gcc-b290c3142312f2c58095bc2ca9a4bf172a138bb2.tar.gz
ppe42-gcc-b290c3142312f2c58095bc2ca9a4bf172a138bb2.zip
2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/generic/numeric_members.cc: Correct type info. * config/locale/gnu/numeric_members.cc: Same. * include/bits/locale_facets.h: Same. * include/bits/char_traits.h: Correct spacing. * src/locale.cc: Wrap to 80 col. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69098 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog14
-rw-r--r--libstdc++-v3/config/locale/generic/numeric_members.cc4
-rw-r--r--libstdc++-v3/config/locale/gnu/numeric_members.cc4
-rw-r--r--libstdc++-v3/include/bits/char_traits.h2
-rw-r--r--libstdc++-v3/include/bits/locale_facets.h6
-rw-r--r--libstdc++-v3/src/locale.cc10
6 files changed, 27 insertions, 13 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 0e55603e598..67702c62ff9 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,13 @@
+2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
+
+ * config/locale/generic/numeric_members.cc: Correct type info.
+ * config/locale/gnu/numeric_members.cc: Same.
+ * include/bits/locale_facets.h: Same.
+
+ * include/bits/char_traits.h: Correct spacing.
+
+ * src/locale.cc: Wrap to 80 col.
+
2003-07-07 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_complex.h: Partially revert last
@@ -67,7 +77,9 @@
2003-07-05 Gawain Bolton <gp.bolton@computer.org>
* include/bits/stl_list.h: Performance and memory usage
- improvements.
+ improvements. In particular, the behaviour of the constructor and
+ destructor as the list header node is no longer dynamically
+ allocated/de-allocated.
* include/bits/list.tcc: Likewise.
2003-07-05 Paolo Carlini <pcarlini@unitus.it>
diff --git a/libstdc++-v3/config/locale/generic/numeric_members.cc b/libstdc++-v3/config/locale/generic/numeric_members.cc
index 4ab80c22b87..09af14703b1 100644
--- a/libstdc++-v3/config/locale/generic/numeric_members.cc
+++ b/libstdc++-v3/config/locale/generic/numeric_members.cc
@@ -53,11 +53,11 @@ namespace std
for (size_t i = 0; i < __num_base::_S_oend; ++i)
_M_data->_M_atoms_out[i] = __num_base::_S_atoms_out[i];
- _M_data->_M_atoms_out[__num_base::_S_oend] = wchar_t();
+ _M_data->_M_atoms_out[__num_base::_S_oend] = char();
for (size_t i = 0; i < __num_base::_S_iend; ++i)
_M_data->_M_atoms_in[i] = __num_base::_S_atoms_in[i];
- _M_data->_M_atoms_in[__num_base::_S_iend] = wchar_t();
+ _M_data->_M_atoms_in[__num_base::_S_iend] = char();
_M_data->_M_truename = "true";
_M_data->_M_falsename = "false";
diff --git a/libstdc++-v3/config/locale/gnu/numeric_members.cc b/libstdc++-v3/config/locale/gnu/numeric_members.cc
index 337fa14fa90..36e2365f664 100644
--- a/libstdc++-v3/config/locale/gnu/numeric_members.cc
+++ b/libstdc++-v3/config/locale/gnu/numeric_members.cc
@@ -56,11 +56,11 @@ namespace std
for (size_t i = 0; i < __num_base::_S_oend; ++i)
_M_data->_M_atoms_out[i] = __num_base::_S_atoms_out[i];
- _M_data->_M_atoms_out[__num_base::_S_oend] = wchar_t();
+ _M_data->_M_atoms_out[__num_base::_S_oend] = char();
for (size_t i = 0; i < __num_base::_S_iend; ++i)
_M_data->_M_atoms_in[i] = __num_base::_S_atoms_in[i];
- _M_data->_M_atoms_in[__num_base::_S_iend] = wchar_t();
+ _M_data->_M_atoms_in[__num_base::_S_iend] = char();
}
else
{
diff --git a/libstdc++-v3/include/bits/char_traits.h b/libstdc++-v3/include/bits/char_traits.h
index a6d1d8c3b37..5a5eca631e1 100644
--- a/libstdc++-v3/include/bits/char_traits.h
+++ b/libstdc++-v3/include/bits/char_traits.h
@@ -152,7 +152,7 @@ namespace std
static char_type*
copy(char_type* __s1, const char_type* __s2, size_t __n)
- { return static_cast<char_type*>(memcpy(__s1, __s2, __n)); }
+ { return static_cast<char_type*>(memcpy(__s1, __s2, __n)); }
static char_type*
assign(char_type* __s, size_t __n, char_type __a)
diff --git a/libstdc++-v3/include/bits/locale_facets.h b/libstdc++-v3/include/bits/locale_facets.h
index 312d1d4f50d..6b5a99d4ff0 100644
--- a/libstdc++-v3/include/bits/locale_facets.h
+++ b/libstdc++-v3/include/bits/locale_facets.h
@@ -591,13 +591,13 @@ namespace std
// "C" locale, this is "-+xX0123456789abcdef0123456789ABCDEF".
// This array contains the chars after having been passed
// through the current locale's ctype<_CharT>.widen().
- _CharT _M_atoms_out[__num_base::_S_oend + 1];
+ char_type _M_atoms_out[__num_base::_S_oend + 1];
// A list of valid numeric literals for output: in the standard
// "C" locale, this is "0123456789eEabcdfABCDF"
// This array contains the chars after having been passed
// through the current locale's ctype<_CharT>.widen().
- _CharT _M_atoms_in[__num_base::_S_iend + 1];
+ char_type _M_atoms_in[__num_base::_S_iend + 1];
bool _M_allocated;
@@ -621,7 +621,7 @@ namespace std
string __grouping = __np.grouping();
char* __group = new char[__grouping.length() + 1];
__grouping.copy(__group, __grouping.length());
- __group[__grouping.length()] = _CharT();
+ __group[__grouping.length()] = char();
_M_grouping = __group;
_M_use_grouping = __grouping.length() != 0 && __grouping.data()[0] != 0;
diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc
index c6be06928ca..248fdf30293 100644
--- a/libstdc++-v3/src/locale.cc
+++ b/libstdc++-v3/src/locale.cc
@@ -187,7 +187,8 @@ namespace std
// If LC_ALL is set we are done.
if (__env && std::strcmp(__env, "") != 0)
{
- if (std::strcmp(__env, "C") == 0 || std::strcmp(__env, "POSIX") == 0)
+ if (std::strcmp(__env, "C") == 0
+ || std::strcmp(__env, "POSIX") == 0)
(_M_impl = _S_classic)->_M_add_reference();
else
_M_impl = new _Impl(__env, 1);
@@ -197,7 +198,8 @@ namespace std
char* __res;
// LANG may set a default different from "C".
char* __env = getenv("LANG");
- if (!__env || std::strcmp(__env, "") == 0 || std::strcmp(__env, "C") == 0
+ if (!__env || std::strcmp(__env, "") == 0
+ || std::strcmp(__env, "C") == 0
|| std::strcmp(__env, "POSIX") == 0)
__res = strdup("C");
else
@@ -481,7 +483,7 @@ namespace std
}
#endif
- // Definitions for static const data members of time_base
+ // Definitions for static const data members of time_base.
template<>
const char*
__timepunct<char>::_S_timezones[14] =
@@ -500,7 +502,7 @@ namespace std
};
#endif
- // Definitions for static const data members of money_base
+ // Definitions for static const data members of money_base.
const money_base::pattern
money_base::_S_default_pattern = { {symbol, sign, none, value} };
OpenPOWER on IntegriCloud