From cd66911e9daccc60d38d6f6c134feabbc7f27ab8 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 24 Aug 2001 23:24:43 +0000 Subject: Use "stdin", "stdout", and "stderr", not "_stdin", "_stdout", and "_stderr", since this is what gcc and libgcc expect... -Erik --- include/stdio.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index 8c8a21774..25912ebaf 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -94,15 +94,15 @@ typedef struct __stdio_file FILE; #include #undef __need_FOPEN_MAX -/* Standard streams (internal). */ -extern FILE *_stdin; -extern FILE *_stdout; -extern FILE *_stderr; +/* Standard streams. */ +extern FILE *stdin; /* Standard input stream. */ +extern FILE *stdout; /* Standard output stream. */ +extern FILE *stderr; /* Standard error output stream. */ /* C89/C99 say they're macros. Make them happy. */ -#define stdin _stdin -#define stdout _stdout -#define stderr _stderr +#define stdin stdin +#define stdout stdout +#define stderr stderr /* Remove file FILENAME. */ extern int remove __P ((__const char *__filename)); @@ -287,7 +287,7 @@ extern int getchar __P ((void)); (*(stream)->bufpos++)) /* getchar() is equivalent to getc(stdin). Since getc is a macro, * that means that getchar() should be a macro too... */ -#define getchar() getc(_stdin) +#define getchar() getc(stdin) /* Write a character to STREAM. */ extern int fputc __P ((int __c, FILE *__stream)); @@ -302,7 +302,7 @@ extern int putchar __P ((int __c)); : (unsigned char) (*(stream)->bufpos++ = (c)) ) /* putchar() is equivalent to putc(c,stdout). Since putc is a macro, * that means that putchar() should be a macro too... */ -#define putchar(c) putc((c), _stdout) +#define putchar(c) putc((c), stdout) #if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN /* Get a word (int) from STREAM. */ -- cgit v1.2.3