diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-09 13:27:21 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-09 13:27:21 -0500 |
| commit | 5c9339593ba663ebf1c898e2bce9b3391bfc22a6 (patch) | |
| tree | c1d661b48e5c3604655dafe9bde63128f7578029 /src | |
| parent | 6419a53a9fc90043676770ef52cdf82d2387d963 (diff) | |
split macro and extern definitions
Diffstat (limited to 'src')
| -rw-r--r-- | src/stdio/__stderr.c | 2 | ||||
| -rw-r--r-- | src/stdio/__stdin.c | 2 | ||||
| -rw-r--r-- | src/stdio/__stdout.c | 2 | ||||
| -rw-r--r-- | src/stdio/stderr.c | 3 | ||||
| -rw-r--r-- | src/stdio/stdin.c | 3 | ||||
| -rw-r--r-- | src/stdio/stdout.c | 3 |
6 files changed, 9 insertions, 6 deletions
diff --git a/src/stdio/__stderr.c b/src/stdio/__stderr.c new file mode 100644 index 00000000..6d1c2529 --- /dev/null +++ b/src/stdio/__stderr.c @@ -0,0 +1,2 @@ +#include <stdio.h> +FILE *__stderr; diff --git a/src/stdio/__stdin.c b/src/stdio/__stdin.c new file mode 100644 index 00000000..8121ced2 --- /dev/null +++ b/src/stdio/__stdin.c @@ -0,0 +1,2 @@ +#include <stdio.h> +FILE *__stdin; diff --git a/src/stdio/__stdout.c b/src/stdio/__stdout.c new file mode 100644 index 00000000..c1ff9f76 --- /dev/null +++ b/src/stdio/__stdout.c @@ -0,0 +1,2 @@ +#include <stdio.h> +FILE *__stdout; diff --git a/src/stdio/stderr.c b/src/stdio/stderr.c index 0a2a6a2e..f2841f0d 100644 --- a/src/stdio/stderr.c +++ b/src/stdio/stderr.c @@ -1,6 +1,5 @@ #include <stdio.h> - extern FILE *stderr; -#define stderr stderr +#define stderr __stderr /** standard error **/ diff --git a/src/stdio/stdin.c b/src/stdio/stdin.c index ba24de75..329d6d23 100644 --- a/src/stdio/stdin.c +++ b/src/stdio/stdin.c @@ -1,6 +1,5 @@ #include <stdio.h> - extern FILE *stdin; -#define stdin stdin +#define stdin __stdin /** standard input **/ diff --git a/src/stdio/stdout.c b/src/stdio/stdout.c index 9a822f8f..08aefa24 100644 --- a/src/stdio/stdout.c +++ b/src/stdio/stdout.c @@ -1,6 +1,5 @@ #include <stdio.h> - extern FILE *stdout; -#define stdout stdout +#define stdout __stdout /** standard output **/ |
