From 5c9339593ba663ebf1c898e2bce9b3391bfc22a6 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 13:27:21 -0500 Subject: split macro and extern definitions --- src/stdio/__stderr.c | 2 ++ src/stdio/__stdin.c | 2 ++ src/stdio/__stdout.c | 2 ++ src/stdio/stderr.c | 3 +-- src/stdio/stdin.c | 3 +-- src/stdio/stdout.c | 3 +-- 6 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 src/stdio/__stderr.c create mode 100644 src/stdio/__stdin.c create mode 100644 src/stdio/__stdout.c (limited to 'src') 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 +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 +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 +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 - 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 - 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 - extern FILE *stdout; -#define stdout stdout +#define stdout __stdout /** standard output **/ -- cgit v1.2.1