search for: freestdout

Displaying 1 result from an estimated 1 matches for "freestdout".

2012 Jul 02
0
[klibc:master] [OUTPUT] Make outc an inline function
...ed-off-by: maximilian attems <max at stro.at> --- usr/dash/output.h | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/usr/dash/output.h b/usr/dash/output.h index d123301..f853e9d 100644 --- a/usr/dash/output.h +++ b/usr/dash/output.h @@ -97,10 +97,21 @@ freestdout() #define OUTPUT_ERR 01 /* error occurred on output */ #ifdef USE_GLIBC_STDIO -#define outc(c, o) putc((c), (o)->stream) +static inline void outc(int ch, struct output *file) +{ + putc(ch, file->stream); +} #define doformat(d, f, a) vfprintf((d)->stream, (f), (a)) #else -#define out...