63ios_base::_C_usr_data ios_base::_C_usr_data::_C_std_usr_data [2];
72 ios_base::_C_usr_data dummy;
82 (this->*_C_usr->_C_fire)(erase_event,
false );
84 _C_usr_data::_C_dealloc (_C_usr);
89streamsize ios_base::precision (streamsize prec)
96ios_base::fmtflags ios_base::flags (fmtflags fl)
101 unsigned ifl = unsigned (fl);
130 case 8: ifl |=
oct;
break;
132 case 16: ifl |=
hex;
break;
144locale ios_base::imbue (
const locale &
loc)
150 return _C_unsafe_imbue (
loc);
154 bool ios_base::_C_sync_with_stdio =
true;
156 bool ios_base::sync_with_stdio (
bool syncflag )
165void ios_base::_C_init (
void *
sb)
181#if defined (_RWSTD_REENTRANT) \
182 && !defined (_RWSTD_NO_EXT_REENTRANT_IO) \
183 && !defined (_RWSTD_NO_REENTRANT_IO_DEFAULT)
187 _C_fmtfl |= _RW::__rw_nolock | _RW::__rw_nolockbuf;
193locale ios_base::_C_unsafe_imbue (
const locale &
loc)
197 const locale
tmp (_C_loc);
206 (this->*_C_usr->_C_fire)(imbue_event,
true );
214_C_set (
unsigned state,
unsigned except,
void *rdbuf)
216 _RWSTD_MT_GUARD ((_C_fmtfl | except) & _RW::__rw_nolock ? 0 : &_C_mutex);
218 except &= ~_RW::__rw_nolock;
223 void*
const rdbuf_save = _C_rdbuf;
226 _C_state = iostate (state & ~(_RW::__rw_nothrow | _RW::__rw_rethrow));
229#ifndef _RWSTD_NO_EXCEPTIONS
231 if (!(state & _RW::__rw_nothrow) && (state & except)) {
233 if (state & _RW::__rw_rethrow)
237 "std::ios::badbit, std::ios::failbit, std::ios::eofbit";
239 static const char streams[][11] = {
240 "std::cin",
"std::cout",
"std::cerr",
"std::clog",
241 "std::wcin",
"std::wcout",
"std::wcerr",
"std::wclog"
245 const char *
strm =
"user-defined";
246 for (
const void *
const *ps = _RW::__rw_std_streams; *ps; ++ps) {
248 strm = streams [ps - _RW::__rw_std_streams];
251 switch (state & except) {
253#ifndef _RWSTD_NO_EXT_FAILURE
284 bit =
"badbit, failbit";
288 bit =
"badbit, eofbit";
292 bit =
"failbit, eofbit";
305void* ios_base::_C_tie ()
const
309 return _C_usr ? _C_usr->_C_tie : 0;
313void* ios_base::_C_tie (
void *pstrm)
320 save = _C_usr->_C_tie;
323 && !_C_usr->_C_iarray
324 && !_C_usr->_C_parray
325 && !_C_usr->_C_cbarray) {
326 _C_usr_data::_C_dealloc (_C_usr);
331 _C_usr = _C_usr_data::_C_alloc (0);
334 _C_usr->_C_tie = pstrm;
#define _RWSTD_IOS_BADBIT
#define _RWSTD_ATOMIC_SWAP(x, y, ignore)
#define _RWSTD_NAMESPACE(name)
#define _RWSTD_IOS_FAILBIT
#define _RWSTD_MT_GUARD(ignore)
#define _RWSTD_IOS_EOFBIT
#define _RWSTD_IOS_BASEOFF
#define _RWSTD_IOS_BASEMASK
#define _RWSTD_ATOMIC_IO_SWAP(x, y, ignore)
#define _RWSTD_ERROR_IOSTATE_BIT_SET
#define _RWSTD_ERROR_FAILBIT_SET
#define _RWSTD_ERROR_BADBIT_SET
#define _RWSTD_ERROR_EOFBIT_SET