Go to file
Paolo Carlini e3033a2240 fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size...
2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
	    Nathan Myers  <ncm@cantrip.org>

	* include/bits/fstream.tcc (_M_overflow): Rewrote to call
	_M_convert_to_external only once (_M_buf_size is now the size of
	the put area + 1 for the overflow char of a full area); call
	_M_set_buffer instead of _M_set_indeterminate.
	(setbuf): Don't accept a buffer smaller than 2 chars.
	(_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
	instead of _M_set_determinate.
	(open): Call _M_set_buffer, instead of _M_set_indeterminate.
	(seekoff): Likewise.
	* include/ext/stdio_filebuf.h (stdio_filebuf(int,
	std::ios_base::openmode, bool, size_t),
	stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
	Likewise.
	* include/std/std_fstream.h (_M_set_indeterminate): Remove.
	(_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
	_M_buf_size - 1.
	* include/std/std_streambuf.h: Tweak _M_out_lim comment.
	* testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
	into account that, for _M_buf_size == BUFSIZ == 8192, the size of
	the put area is now BUFSIZ - 1.
	* testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
	that now the smallest _M_buf_size is 2 (still fails, for the same
	reason, with 3.2.3)

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r66848
2003-05-15 23:43:15 +00:00
boehm-gc
config
contrib
fastjar
gcc linux.h, [...]: Remove code protected by USE_GNULIBC_1. 2003-05-15 15:58:33 -07:00
include hex.c (_hex_value): Make this unsigned. 2003-05-15 19:02:13 +00:00
INSTALL
libf2c
libffi
libiberty hex.c (_hex_value): Make this unsigned. 2003-05-15 19:02:13 +00:00
libjava 2003-05-14 Michael Koch <konqueror@gmx.de> 2003-05-14 06:37:59 +00:00
libobjc Fixed getting the superclass when building class tree used for +load, would 2003-05-15 09:34:32 +00:00
libstdc++-v3 fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size... 2003-05-15 23:43:15 +00:00
maintainer-scripts
zlib
.cvsignore
ChangeLog config.guess: Update to 2003-05-09 version. 2003-05-13 14:08:22 +02:00
config-ml.in
config.guess config.guess: Update to 2003-05-09 version. 2003-05-13 14:08:22 +02:00
config.if
config.sub config.guess: Update to 2003-05-09 version. 2003-05-13 14:08:22 +02:00
configure Regenerate configure correctly. 2003-05-13 13:54:59 +02:00
configure.in configure.in (FLAGS_FOR_TARGET): Remove $$s/newlib/libc/sys/cygwin and $$s/newlib/libc/sys/cygwin32 include paths. 2003-05-13 10:58:24 +02:00
COPYING COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes... 2000-12-18 21:47:20 +00:00
COPYING.LIB
install-sh
libtool.m4
ltcf-c.sh
ltcf-cxx.sh
ltcf-gcj.sh
ltconfig
ltmain.sh
MAINTAINERS
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.