Compare commits

...

7 Commits

Author SHA1 Message Date
NAKAMURA Takumi
307c285079 Merge remote branch 'llvm.org/master' into clang 2011-05-09 12:27:44 +09:00
NAKAMURA Takumi
cb430f3a47 test: Mark 316 tests as XFAIL to rename to xfail.pass.cpp. 2011-05-01 21:52:09 +09:00
NAKAMURA Takumi
d3665e1d9d test/lit.cfg: Add .xfail.pass.cpp, to expect compiling successfully and to fail to run. 2011-05-01 21:52:08 +09:00
NAKAMURA Takumi
6911fb59fd Mark 218 tests as fail to compile lack of C++0x features. 2011-05-01 21:52:08 +09:00
NAKAMURA Takumi
a177c5da7b test/lit.cfg: Python-2.4 does not accept "delete" in tempfile.NamedTemporaryFile. 2011-05-01 21:52:08 +09:00
NAKAMURA Takumi
352c9e1a46 __std_stream: Fix error checking in __stdoutbuf<_CharT>::sync(). 2011-05-01 21:52:08 +09:00
NAKAMURA Takumi
710f61ba2a include/__locale: Tweak __tab_.
FIXME: wip! wip!
2011-05-01 21:52:08 +09:00
538 changed files with 10 additions and 51 deletions

View File

@@ -451,7 +451,7 @@ public:
_LIBCPP_ALWAYS_INLINE
bool is(mask __m, char_type __c) const
{
return isascii(__c) ? __tab_[__c] & __m : false;
return isascii(__c) ? (__tab_ ? __tab_[__c] & __m : isctype(__c, __m)) : false;
}
_LIBCPP_ALWAYS_INLINE

View File

@@ -288,12 +288,12 @@ __stdoutbuf<_CharT>::sync()
__r = __cv_->unshift(__st_, __extbuf,
__extbuf + sizeof(__extbuf),
__extbe);
if (__r == codecvt_base::error)
return -1;
size_t __nmemb = static_cast<size_t>(__extbe - __extbuf);
if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
return -1;
} while (__r == codecvt_base::partial);
if (__r == codecvt_base::error)
return -1;
if (fflush(__file_))
return -1;
return 0;

Some files were not shown because too many files have changed in this diff Show More