Bruce Evans wrote:
> On Sun, 11 Feb 2001, Peter Wemm wrote:
> 
> > I cant help but wonder why on earth we didn't have it like this from the
> > start:
> > 
> > Index: include/stdio.h
> > ===================================================================
> > RCS file: /home/ncvs/src/include/stdio.h,v
> > retrieving revision 1.26
> > diff -u -r1.26 stdio.h
> > --- include/stdio.h 2001/02/11 22:04:18     1.26
> > +++ include/stdio.h 2001/02/12 01:27:16
> > @@ -132,6 +132,9 @@
> >  
> >  __BEGIN_DECLS
> >  extern FILE __sF[];
> > +extern FILE *__stdin;
> > +extern FILE *__stdout;
> > +extern FILE *__stderr;
> >  __END_DECLS
> 
> Once upon a time, people counted every instruction in getchar(), etc.,
> and programmed it carefully to unnecessary indirections, not to mention
> function calls and locks.

And, because it breaks global declarations like this:
FILE *buffer = stdout;  /* default buffer file is stdout */

I have fixed this to avoid the indirection, and am doing a buildworld
to check it.  It should be the same speed as before, but is still immune
to the FILE size changes.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to