📄 changelog
字号:
* editbuf.h: Removed spurious "inline". * procbuf.C (procbuf::sys_close):: Handle systems where the wait() argument is (union wait*). * streambuf.h: Clean up confusion vbetween ios::iostate and ios::fmtflags types. * iostream.C: Use ios::fmtflags type and new streambuf::padn method as appropriate. * streambuf.[hC]: Add streambuf::padn() whcih emits many copies of the same character. * streambuf.h, sbufvscan.C(streambuf::vscan): Extra optional (ios::iostate*) parameter, so errors/EOF can be reported back. * iostream.C: Use 3rd parameter of streambuf::vform() to have it set the error state on syntax errors or EOF. * streambuf.h, filebuf.C: New method filebuf::do_write with the common functionality of do_flush and sputn. * streambuf.C (streambuf::sputn), filebuf.C (filebuf::sputn): Return immediately if count is not positive. * filebuf.C: For simplicity, always set _S_TIED_PUT_GET for a filebuf, not just when it is read+write. * filebuf.C (filebuf::sys_read, filebuf::sys_write): Restart on an EINTR. * filebuf.C: Various fixes to handle uncommon combinations of read, writes, and seeks. * Makefile.in: Add dtoa.?, outfloat.?. Fix *clean rules. Increase version to 0;80. * iostream.texi: Add some information about stdio.Fri Jun 5 13:10:59 1992 Per Bothner (bothner@rtl.cygnus.com) * iostream.h: Made istream::_gcount and istream::gcount(), signed (_G_ssize_t), following AT&T and ANSI. * iostream.C: Make istream::read() set _gcount.Thu Jun 4 12:03:15 1992 Per Bothner (bothner@rtl.cygnus.com) * streambuf: ios::set() is a standard ANSI method (though it is not in the AT&T libraries).Wed Jun 3 17:08:53 1992 Per Bothner (bothner@rtl.cygnus.com) * streambuf.h: Moved ios::set to _STREAM_COMPAT section. Added streambuf::stossc(), for AT&T compatibility. Changed global fmtflags type to ios::fmttype. * TODO: Remove some things that have been done! * README: Re-write the notes on stdio (which were written assuming that installing stdio was the default; that is not the case).Sun May 31 14:06:16 1992 Per Bothner (bothner@rtl.cygnus.com) * Makefile.in: Increase to version 0.76. Use CFLAGS, not MINUS_G. Add FLAGS_TO_PASS macro to be more consistent about passing flags to sub-makes. * filebuf.C (filebuf::open - two methods: Set _S_TIED_PUT_GET flag properly. * filebuf.C: Always switch to read mode, if tied and reading, even if c==EOF. * procbuf.C: Cosmetic change.Thu May 28 13:57:19 1992 Per Bothner (bothner@rtl.cygnus.com) * iostream.C: Don't cast to _G_va_list, since that may not be possible. * iostream.h (ostream::put): Move inline definition inside class body (avoids order-of-definition problems). * procbuf.C (procbuf::open): Re-set read/write flags. * sbufvform.C (streambuf::vform), sbufvscan.C (streambuf::vscan): Don't try to cast _G_va_list to va_list (not possible if these are structs); just use the _G_va_list parameter as if it were a va_list. (This should work, according to _G_config.h). * streambuf.h: Define new fmtflags type (from ANSI), and use it. * streambuf.h: #include <stdarg.h> of needed.Thu May 14 13:13:18 1992 Per Bothner (bothner@rtl.cygnus.com) * Makefile.in: Fix handling of SUBDIRS, including passing of working values of CC. * makebuf.C, filebuf.C: Use Posix macros S_ISCHR, S_ISREG. * streambuf.h, streambuf.C: Replace _FRIEND_BUG #ifdefby _G_FRIEND_BUG, set in _G_config.h. * iostream.C (write_int): Fix thinko: && -> &. * iostream.h, iostream.C: Clean up handling of skipping of initial white space by ipfx(0) (e.g. setting flags correctly).Sat May 9 13:51:12 1992 Per Bothner (bothner@rtl.cygnus.com) * Makefile.in: Bump version to 0.75. * iostream.C (ws manipulator): Set failbit on EOF. Also, use skip_ws function.Wed May 6 15:48:51 1992 Per Bothner (bothner@rtl.cygnus.com) * streambuf.C (streambuf::setb): Reverse test for when to delete _base (oops). * streambuf.C (__adjust_colummn): Add missing const. * filebuf.C: Clean up a number of minor bugs and messy code. This should be more consistent now. * iostream.C (istream::ignore): Optimize to use new streambuf::ignore when delim==EOF. Also, set _gcount. * streambuf.h, streambuf.C: New methods streambuf::ignore, streambuf::free_backup_area, streambuf::switch_to_get_mode, and streambuf::unsave_markers. and __adjust_column function. Also, various tweaks and optimizations.Sat May 2 16:37:27 1992 Per Bothner (bothner@rtl.cygnus.com) * streambuf.h, streambuf.C, filebuf.C: Get working initial rough support for keep track of current column in output. * streambuf.C: New function __adjust_column() used for the above-mentioned column support.Fri May 1 16:57:14 1992 Per Bothner (bothner@rtl.cygnus.com) * filebuf.C (filebuf::do_flush): Set get area pointers to base() (new pptr()), not old value of pptr(). * filebuf.C: Consistently set _flags to _S_NO_READS+_S_NO_WRITES when closing, and re-set old values when opening. * streambuf.h (streambuf): New 2-op xsetflags method with mask. * streambuf.h (ios::is_open): New definition: Assume open unless both _S_NO_READS and _S_NO_WRITES are set. * stdstrbufs.C: Set _S_NO_READS+_S_NO_WRITES for not_open_filebuf.Thu Apr 30 16:50:47 1992 Per Bothner (bothner@rtl.cygnus.com) * Makefile.in: Bump to version 0.72. * streambuf.h: Change streamoff and streampos to be _G_off_t, which seems to make more sense. * strtoul.C: Removed. Not needed, now that we use libiberty. * filebuf.C: Fix (and turn on) filebuf::sputn. * procbuf.C: New streambuf sub-class, provides popen/pclose functionality for streambufs. * Makefile.in: Update appropriately. * streambuf.h: Add cast to avoid warning. * streambuf.h, various: Replace _S_CAN_READ _S_CAN_WRITE by the inverses _S_NO_READS _S_NO_WRITES: Because these flags are not part of the standard streambuf protocol, we should infer anything if they are not set. * filebuf.C: filebuf::sys_write() does multiple writes if needed, and updates _fb._offset (that might be a mistake). * filebuf.C: Work-in-progress, to clean up various things. * streambuf.[hC], filebuf.C, makebuf.C: Move shortbuf from filebuf class to streambuf. New methods streambuf::doallocbuf and allocbuf set base() to shortbuf if unbuffered(). This simplifies things, since it always sets up a buffer. * iostream.texi: Various improvements. * streambuf.[Ch]: New virtual methods streambuf::get_column() and streambuf::set_column for keeping track of column in output.Thu Apr 30 09:09:06 1992 K. Richard Pixley (rich@cygnus.com) * Makefile.in: make CFLAGS work when passed from the command line to make.Fri Apr 17 09:18:40 1992 Per Bothner (bothner at PersSony) * dummy.C, statdummy.c: Removed (now inlined in ../util/gen-params). * igetsb.C (istream& istream::get(streambuf&b, char)): New function. * iostream.texi: The barest beginnings of a manual. * streambuf.h, streambuf.C, other places: All standard streambuf classes inherit from backupbuf; the classes (will) follow a protocol allowing guaranteed backing up, which is useful for scanning/parsing (see iostream.texi). * filebuf.C: Numerous bug-fixes, many from Hongjiu Lu <hlu@eecs.wsu.edu>. * filebuf.C: filebuf::pbackfail is no longer needed, since the logic is now handled by streambufs (rather: backupbufs). * iostream.h: Add proper (signed char) support (if the compiler can deal with it). * iostream.h: Add istream::vscan and scan methods. * iostream.C: No longer need closed_streambuf dummy class (for non-abstarct under-/overflow); use backupbuf instead. * iostream.C: Add istream& operator>>(istream&, streambuf*). * Various places: Use _G_-prefixed form of parameters from ../_G_config.h. * stream.C (itoa): Make sure minus sign comes first ...Fri Mar 20 17:45:56 1992 Per Bothner (bothner@rtl.cygnus.com) * makebuf.C: Include ioconfig.h, for the sake of NO_ST_BLKSIZE. * iostream.h: Add << and >> operators for manipulator functions that take ios arguments. * filebuf.C: #include <sys/types> *before* <sys/file>. * filebuf.C (filebuf::close): NULL out buffer pointers. indstream.C ioconfif.h iostream.C iostream.h * streambuf.h, streambuf.C: Make streambuf an abstract class by making underflow and overflow pure virtual functions. * parsestream.h, sbufvform.C: Define dummy underflow and overflow methods, now that streambuf is an abstract class. * sbufvscan.C: Fix logic bug introduced when converting from C. * streambuf.C (streambuf::sgetn): Fix logic bug. * strstream.C (3-argument strstreambuf::strstreambuf): Set ititial _len correctly. * stdio/fclose.C (fclose): Don't delete stdin/stdout/stderr. Generate ioconfig.h automatically in the Makefile. * ioconfig.h: Deleted, now automatically generated. * Makefile.in: New rule to generate ioconfig.h. Add -I. to path. * dummy.C, statdummy.c: Small test programs used when generating ioconfig.h.Tue Mar 10 18:12:57 1992 Per Bothner (bothner@cygnus.com) * Makefile.in: Make version 0.70 for libg++ release.Fri Mar 6 16:51:35 1992 K. Richard Pixley (rich@cygnus.com) * Makefile.in: bump version to .69 (good number).Fri Mar 6 15:01:10 1992 Per Bothner (bothner@cygnus.com) * filebuf.C: Include <sys/types>. * strstream.C: Add casts to avoid compiler warnings. * stdio/stdio.h (putc): Fix to evaluate char argument once only.Thu Mar 5 18:07:47 1992 Per Bothner (bothner@cygnus.com) * setvform.C: Some minor changes to remove compiler warnings.Tue Mar 3 16:50:36 1992 Per Bothner (bothner@cygnus.com) * iostream.C: Include stdio.h. * __vsbprintf.C renamed to sbufvform.C. * __vsbscanf.C renanmed to sbufvscan.C. * Makefile.in: Reflect previous changes. * TODO: Update.Sun Mar 1 16:48:08 1992 Per Bothner (bothner@cygnus.com) * __vsbscanf.C: Add some initializations to avoid compiler warnings. * iostream.C (read_int): Fix two logic errors. * streambuf.h: Add macros to avoid duplicating magic numbers. * streambuf.C: Move definitions of standard streambufs and streams to new files stdstrbufs.C and stdstreams.C. * Makefile.in: Add stdstrbufs.o and stdstreams.o. * stdio/stdio.h: Add define of size_t, and fix that of fpos_t. * stdio/vfprintf.C: Fix use of __STDIO_VA to _G_va_list.Thu Feb 27 06:14:33 1992 K. Richard Pixley (rich@rtl.cygnus.com) * Makefile.in: removed a stray rm -fWed Feb 26 12:05:17 1992 Per Bothner (bothner at cygnus.com) * filebuf.C: On close(), don't zero *all* the flags. * ioconfig.h, streambuf.C: Configuration tweeaks. * streambuf.h: Use _G_config.h to get configuration parameters. * streambuf.h: Change _width and width() to take/return ints, not longs. * makebuf.C: Replace test for VMS by generic NO_ST_BLKSIZE. * igetline.C: istream::get and istream::getline should set the failbit it no characters are extracted. * sgetline.C, __vsbscanf.C: Add some casts. * iostream.h: Complicate istream::get() and istream::peek() to set and test state flags.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -