diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-24 23:24:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-24 23:24:43 +0000 |
commit | cd66911e9daccc60d38d6f6c134feabbc7f27ab8 (patch) | |
tree | 7ed3bd1343331ff3fbe516c4513ff5deec796e2d /include | |
parent | 8f1cfc6f18b5dd84b302e4b82bb37123db4cf4d3 (diff) |
Use "stdin", "stdout", and "stderr", not "_stdin", "_stdout", and
"_stderr", since this is what gcc and libgcc expect...
-Erik
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 18 |
1 files changed, 9 insertions, 9 deletions
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 <bits/stdio_lim.h> #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. */ |