1e156882fa
2005-01-05 Paolo Carlini <pcarlini@suse.de> * src/istream.cc (basic_istream<char>::ignore(streamsize), basic_istream<char>::ignore(streamsize, int_type), basic_istream<wchar_t>::ignore(streamsize), basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end, first check _M_gcount vs __n. * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize, int_type)): Likewise. * testsuite/27_io/basic_istream/ignore/char/4.cc: New. * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise. From-SVN: r92947
99 lines
4.1 KiB
Plaintext
99 lines
4.1 KiB
Plaintext
2005-01-05 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize),
|
|
basic_istream<char>::ignore(streamsize, int_type),
|
|
basic_istream<wchar_t>::ignore(streamsize),
|
|
basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
|
|
first check _M_gcount vs __n.
|
|
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
|
|
int_type)): Likewise.
|
|
* testsuite/27_io/basic_istream/ignore/char/4.cc: New.
|
|
* testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
|
|
|
|
2005-01-03 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
* testsuite/testsuite_hooks.cc: Use __throw_exception_again
|
|
instead of just throw.
|
|
|
|
* testsuite/testsuite_hooks.cc: Update coypright and follow style
|
|
guidelines.
|
|
* testsuite/testsuite_hooks.h: Likewise.
|
|
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
|
|
semaphores, not sleep.
|
|
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
|
|
Likewise.
|
|
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
|
|
* testsuite/27_io/objects/char/7.cc: Likewise.
|
|
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
|
|
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
|
|
* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
|
|
|
|
* configure.ac: Check for sys/ipc.h and sys/sem.h.
|
|
* config.h.in: Regenerated.
|
|
* configure: Likewise.
|
|
* testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
|
|
define.
|
|
(sys/types.h): Include.
|
|
(sys/ipc.h): Likewise.
|
|
(sys/sem.h): Likewise.
|
|
(__gnu_test::semun): New type.
|
|
(__gnu_test::semaphore::sempaphore): New function.
|
|
(__gnu_test::semaphore::~semaphore): Likewise.
|
|
(__gnu_test::semaphore::wait): Likewise.
|
|
(__gnu_test::semaphore::signal): Likewise.
|
|
* testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
|
|
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
|
|
semaphores, not sleep.
|
|
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
|
|
Likewise.
|
|
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
|
|
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
|
|
* testsuite/27_io/objects/char/7.cc: Likewise.
|
|
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
|
|
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
|
|
* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
|
|
|
|
2005-01-03 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
|
|
int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
|
|
basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize),
|
|
basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
|
|
|
|
2005-01-02 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize),
|
|
basic_istream<char>::ignore(streamsize, int_type),
|
|
basic_istream<wchar_t>::ignore(streamsize),
|
|
basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
|
|
_M_gcount overflows.
|
|
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
|
|
int_type)): Likewise; use snextc in the main loop, consistently
|
|
with the specializations above.
|
|
|
|
2005-01-02 Chris Jefferson <chris@bubblescope.net>
|
|
|
|
* include/bits/stl_algobase.h (mismatch): Correct concept check.
|
|
|
|
2005-01-01 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
* testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
|
|
testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
|
|
* testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
|
|
|
|
2005-01-01 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
* testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
|
|
null-terminate array1 at the outset.
|
|
* testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
|
|
Likewise.
|