Subject: Re: src/gnu/usr.bin/egcs/common
To: None <tech-userlevel@netbsd.org>
From: Christoph Badura <bad@oreilly.de>
List: tech-userlevel
Date: 12/22/1999 17:01:34
explorer@flame.org (Michael Graff) writes:
>Noriyuki Soda <soda@sra.co.jp> writes:

>> Oh, I see.
>> Perhaps the following is less tricky, BTW.
>> 
>> 	typedef struct __SFILE FILE;
>> 
>> 	extern FILE __sFstdin, __sFstdout, __sFstderr;
>> 
>> 	#define stdin &__sFstdin
>> 	#define stdout &__sFstdout
>> 	#define stderr &__sFstderr

>This will help us in the future, but we still won't be able to change
>the size of FILE for a long time -- so long as we require backwards
>compatibility with NetBSD from three years ago.

And why can't you store the additional data in the FILE's cookie?

-- 
Christoph Badura					www.netbsd.org

	Anything that can be done in O(N) can be done in O(N^2).
	-- Ralf Schuettau (after looking at a particular piece of code)