This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Change defines for stdin, stdout and stderr
- From: "Eric de Jong" <list_ericdejong_10 at gmx dot net>
- To: <newlib at sources dot redhat dot com>
- Date: Tue, 17 Jun 2003 09:53:03 +0200
- Subject: Re: Change defines for stdin, stdout and stderr
- References: <3EEDD071.3090300@gmx.net>
Hello Thomas,
>To avoid this in the future i would suggest to change the defines for
>stdin, stdout and stderr similar to errno.
>
>#define stdin (*__stdin())
>extern __FILE **__stdin _PARAMS ((void));
Will this slow down ecos and make the code larger? It does involve an extra
function call. I agree this is a small change, but ecos is build around defines
to get the smallest codesize and best performance.
I do not say the above is not a good solution, but recompiling the user
application and libraries after a change to ecos is not a problem. Wat we do
need is a way to let the compiler check if the defines are the same for all
compiled binaries, to avoid hard to track bugs after a change to the ecoas
library, and one forgot to recompile his libs...
my 2 cents,
Eric