mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-05 02:07:22 +00:00
Make stdin/stdout/stderr into macros.
They are supposed to be macros, according to the C standards. This ordinarily doesn't matter, but it can be detected by #ifdef, as in the following program: #include <stdio.h> #ifdef stdin int main(void) { puts("stdin is a macro"); } #endif
This commit is contained in:
parent
072f8be6bc
commit
5be888a2bd
@ -85,6 +85,9 @@ typedef struct __file {
|
||||
extern FILE *stderr; /* standard I/O files */
|
||||
extern FILE *stdin;
|
||||
extern FILE *stdout;
|
||||
#define stderr stderr
|
||||
#define stdin stdin
|
||||
#define stdout stdout
|
||||
|
||||
#define L_tmpnam 26 /* size of a temp name */
|
||||
#define TMP_MAX 10000 /* # of unique temp names */
|
||||
|
Loading…
Reference in New Issue
Block a user