diff options
| author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 16:59:04 +0000 |
|---|---|---|
| committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 16:59:04 +0000 |
| commit | 86f6c736d2fe06883f989dd9775864f18e3d7afc (patch) | |
| tree | c3aae6148831882fa28ee0830714d417efa26f4c | |
| parent | ec32cd325b2cf613c98e338c2f90ced593da0f6e (diff) | |
| download | ppe42-gcc-86f6c736d2fe06883f989dd9775864f18e3d7afc.tar.gz ppe42-gcc-86f6c736d2fe06883f989dd9775864f18e3d7afc.zip | |
2003-06-27 Krister Walfridsson <cato@df.lth.se>
* config/os/bsd/netbsd/ctype_noninline.h
(_C_ctype_): Declare.
(ctype<char>::classic_table): Return _C_ctype_ + 1.
(ctype<char>::ctype): Use classic_table.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68584 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
| -rw-r--r-- | libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h | 14 |
2 files changed, 16 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0d30ceb2f66..a3a842b0544 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2003-06-27 Krister Walfridsson <cato@df.lth.se> + + * config/os/bsd/netbsd/ctype_noninline.h + (_C_ctype_): Declare. + (ctype<char>::classic_table): Return _C_ctype_ + 1. + (ctype<char>::ctype): Use classic_table. + 2003-06-27 Paolo Carlini <pcarlini@unitus.it> Nathan C. Myers <ncm-nospam@cantrip.org> diff --git a/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h b/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h index 80138cb3ec8..578e0a42e31 100644 --- a/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h +++ b/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h @@ -1,6 +1,6 @@ // Locale support -*- C++ -*- -// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. // // 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 @@ -32,20 +32,24 @@ // // Information as gleaned from /usr/include/ctype.h - + + extern "C" const u_int8_t _C_ctype_[]; + const ctype_base::mask* ctype<char>::classic_table() throw() - { return 0; } + { return _C_ctype_ + 1; } ctype<char>::ctype(__c_locale, const mask* __table, bool __del, size_t __refs) : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : _ctype_ + 1) + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : classic_table()) { } ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : _ctype_ + 1) + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : classic_table()) { } char |

