Subject: Re: src/gnu/usr.bin/egcs/common
To: None <soda@sra.co.jp, sommerfeld@orchard.arlington.ma.us>
From: Noriyuki Soda <soda@sra.co.jp>
List: tech-userlevel
Date: 12/22/1999 06:02:54
> True. But we could avoid breaking such programs with something like:
>
> extern FILE __sFstdin[], __sFstdout[], __sFstderr[];
>
> #define stdin __sFstdin[0]
> #define stdout __sFstdout[0]
> #define stderr __sFstderr[0]
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
--
soda