On Sun, 11 Feb 2001, Peter Wemm wrote:
> Matt Dillon wrote:
> >
> > :
> > : This is a major change to libc. The library maj must be bumped if you
> > : intend to change the sizeof(FILE), or every single third party applicatio
> n
> > : that uses stdio will break.
> > :
> > : -Matt
> >
> > Oh wait, is libc already bumped in current verses 4.2? If so then I gues
> s
> > we don't bump libc's maj. God help anyone using current though!
> >
> > -Matt
>
>
> I cant help but wonder why on earth we didn't have it like this from the
> start:
[...]
> That compiles fine. The __stdin thing is in case somebody likes the idea
> of #undef stdin or #ifdef stdin for some reason.
>
> In fact, I can't imagine *any* reason not to do this. At least this would
> insulate us from future nasties in FILE size changes, and would have
> saved us in this case.
Wouldn't this change/break code like the following?
main()
{
FILE **fp;
fp = &stdin;
my_func(fp);
}
That is, previously &stdin would work... in this new situation,
you would get &__stdin which is not the same... is it?
- Dave Rivers -
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message