diff options
author | Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | 1998-02-24 20:09:55 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-24 13:09:55 -0700 |
commit | 3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5 (patch) | |
tree | f485ddeceda3dbb34f3e39bb297d61e69e0a6445 /libio/iolibio.h | |
parent | 14e403d46d7cddc753102dd383e7fac7f6ffeecf (diff) | |
download | gcc-3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5.zip gcc-3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5.tar.gz gcc-3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5.tar.bz2 |
Changes for _G_IO_IO_FILE_VERSION == 0x20001:
* libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t,
_IO_IMBUE): New definitions.
(struct _IO_jump_t): Add __showmanyc and __imbue fields.
(_IO_file_fopen): Add new fourth argument.
* filebuf.cc (filebuf::open): Pass new fourth argument to
_IO_file_fopen.
* iolibio.h (_IO_freopen): Likewise.
* streambuf.cc (streambuf::showmanyc, streambuf::imbue): New
functions.
* streambuf.h (_IO_wchar_t): Define to _G_wchar_t.
(ios::fill): Remove casts.
(struct streambuf): Add showmanyc and imbue members.
* iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >=
1]: Initialize new fields is_char of struct printf_info.
(ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]:
Likewise.
From-SVN: r18222
Diffstat (limited to 'libio/iolibio.h')
-rw-r--r-- | libio/iolibio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/iolibio.h b/libio/iolibio.h index 6389678..083b198 100644 --- a/libio/iolibio.h +++ b/libio/iolibio.h @@ -45,8 +45,13 @@ extern int _IO_obstack_printf __P ((struct obstack *, const char *, ...)); (_IO_seekoff(__fp, __offset, __whence, _IOS_INPUT|_IOS_OUTPUT) == _IO_pos_BAD ? EOF : 0) #define _IO_rewind(FILE) (void)_IO_seekoff(FILE, 0, 0, _IOS_INPUT|_IOS_OUTPUT) #define _IO_vprintf(FORMAT, ARGS) _IO_vfprintf(_IO_stdout, FORMAT, ARGS) +#if _G_IO_IO_FILE_VERSION == 0x20001 +#define _IO_freopen(FILENAME, MODE, FP) \ + (_IO_file_close_it(FP), _IO_file_fopen(FP, FILENAME, MODE, 0)) +#else #define _IO_freopen(FILENAME, MODE, FP) \ (_IO_file_close_it(FP), _IO_file_fopen(FP, FILENAME, MODE)) +#endif #define _IO_fileno(FP) ((FP)->_fileno) extern _IO_FILE* _IO_popen __P((const char*, const char*)); #define _IO_pclose _IO_fclose |