This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Another libio patch
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: Another libio patch
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 17 Nov 1997 14:59:13 -0700
- cc: egcs at cygnus dot com, drepper at gnu dot ai dot mit dot edu (Ulrich Drepper)
- Reply-To: law at cygnus dot com
In message <m0xXY3s-0004ecC@ocean.lucon.org>you write:
> Here is another libio patch.
>
> --
> H.J. Lu (hjl@gnu.ai.mit.edu)
> ---
> Mon Nov 17 08:39:17 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
>
> * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
I have no idea what this patch does since you didn't make any attempt to
describe the problem it's trying to fix. I will not install it unless I
hear from Ulrich.
Ulrich -- is this patch correct?
>
> Index: stdstrbufs.cc
> ===================================================================
> RCS file: /home/work/cvs/gnu/egcs/libio/stdstrbufs.cc,v
> retrieving revision 1.1.1.2
> diff -u -r1.1.1.2 stdstrbufs.cc
> --- stdstrbufs.cc 1997/09/17 20:12:34 1.1.1.2
> +++ stdstrbufs.cc 1997/11/17 20:38:04
> @@ -58,7 +58,7 @@
> #define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
> static _IO_lock_t _IO_stdfile_##FD##_lock = _IO_lock_initializer; \
> struct _IO_FILE_plus NAME \
> - = {FILEBUF_LITERAL(CHAIN, FLAGS, FD), &_IO_file_jumps}
> + = {FILEBUF_LITERAL(CHAIN, FLAGS, FD), STD_VTABLE}
> #else
> #define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
> struct _IO_FILE_plus NAME = {FILEBUF_LITERAL(CHAIN, FLAGS, FD), STD_VTAB
> LE}