~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to system/include/libcxx/istream

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
_LIBCPP_BEGIN_NAMESPACE_STD
165
165
 
166
166
template <class _CharT, class _Traits>
167
 
class _LIBCPP_TYPE_VIS basic_istream
 
167
class _LIBCPP_TYPE_VIS_ONLY basic_istream
168
168
    : virtual public basic_ios<_CharT, _Traits>
169
169
{
170
170
    streamsize __gc_;
194
194
public:
195
195
 
196
196
    // 27.7.1.1.3 Prefix/suffix:
197
 
    class _LIBCPP_TYPE_VIS sentry;
 
197
    class _LIBCPP_TYPE_VIS_ONLY sentry;
198
198
 
199
199
    // 27.7.1.2 Formatted input:
200
200
    basic_istream& operator>>(basic_istream& (*__pf)(basic_istream&));
244
244
};
245
245
 
246
246
template <class _CharT, class _Traits>
247
 
class _LIBCPP_TYPE_VIS basic_istream<_CharT, _Traits>::sentry
 
247
class _LIBCPP_TYPE_VIS_ONLY basic_istream<_CharT, _Traits>::sentry
248
248
{
249
249
    bool __ok_;
250
250
 
1369
1369
        this->clear(this->rdstate() & ~ios_base::eofbit);
1370
1370
        sentry __sen(*this, true);
1371
1371
        if (__sen)
 
1372
        {
1372
1373
            if (this->rdbuf()->pubseekpos(__pos, ios_base::in) == pos_type(-1))
1373
1374
                this->setstate(ios_base::failbit);
 
1375
        }
1374
1376
#ifndef _LIBCPP_NO_EXCEPTIONS
1375
1377
    }
1376
1378
    catch (...)
1391
1393
#endif  // _LIBCPP_NO_EXCEPTIONS
1392
1394
        sentry __sen(*this, true);
1393
1395
        if (__sen)
1394
 
            this->rdbuf()->pubseekoff(__off, __dir, ios_base::in);
 
1396
        {
 
1397
            if (this->rdbuf()->pubseekoff(__off, __dir, ios_base::in) == pos_type(-1))
 
1398
                this->setstate(ios_base::failbit);
 
1399
        }
1395
1400
#ifndef _LIBCPP_NO_EXCEPTIONS
1396
1401
    }
1397
1402
    catch (...)
1451
1456
#endif  // _LIBCPP_HAS_NO_RVALUE_REFERENCES
1452
1457
 
1453
1458
template <class _CharT, class _Traits>
1454
 
class _LIBCPP_TYPE_VIS basic_iostream
 
1459
class _LIBCPP_TYPE_VIS_ONLY basic_iostream
1455
1460
    : public basic_istream<_CharT, _Traits>,
1456
1461
      public basic_ostream<_CharT, _Traits>
1457
1462
{
1702
1707
    return __is;
1703
1708
}
1704
1709
 
1705
 
_LIBCPP_EXTERN_TEMPLATE(class basic_istream<char>)
1706
 
_LIBCPP_EXTERN_TEMPLATE(class basic_istream<wchar_t>)
1707
 
_LIBCPP_EXTERN_TEMPLATE(class basic_iostream<char>)
 
1710
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_TYPE_VIS basic_istream<char>)
 
1711
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_TYPE_VIS basic_istream<wchar_t>)
 
1712
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_TYPE_VIS basic_iostream<char>)
1708
1713
 
1709
1714
_LIBCPP_END_NAMESPACE_STD
1710
1715