diff options
author | tjr <tjr@FreeBSD.org> | 2004-05-25 10:42:52 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-05-25 10:42:52 +0000 |
commit | 32620504ab77b61e84a6dc917988e249f5a8553a (patch) | |
tree | 5b5f4c02fb71eb2f4f502e7d05139e9e475ceea5 /lib/libc | |
parent | 5bfc126ed81efb2c1438e0f54ecf9287c2fe440d (diff) | |
download | FreeBSD-src-32620504ab77b61e84a6dc917988e249f5a8553a.zip FreeBSD-src-32620504ab77b61e84a6dc917988e249f5a8553a.tar.gz |
Provide trivial macro implementations of getwc(), getwchar(), putwc() and
putwchar() to reduce function call overhead.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/getwc.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/getwchar.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/putwc.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/putwchar.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/stdio/getwc.c b/lib/libc/stdio/getwc.c index e133868..ba5ab60 100644 --- a/lib/libc/stdio/getwc.c +++ b/lib/libc/stdio/getwc.c @@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" #include "local.h" +#undef getwc + /* * Synonym for fgetwc(). The only difference is that getwc(), if it is a * macro, may evaluate `fp' more than once. diff --git a/lib/libc/stdio/getwchar.c b/lib/libc/stdio/getwchar.c index 491ff9b..79dd7bc 100644 --- a/lib/libc/stdio/getwchar.c +++ b/lib/libc/stdio/getwchar.c @@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" #include "local.h" +#undef getwchar + /* * Synonym for fgetwc(stdin). */ diff --git a/lib/libc/stdio/putwc.c b/lib/libc/stdio/putwc.c index e26102a..8fe065b 100644 --- a/lib/libc/stdio/putwc.c +++ b/lib/libc/stdio/putwc.c @@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" #include "local.h" +#undef putwc + /* * Synonym for fputwc(). The only difference is that putwc(), if it is a * macro, may evaluate `fp' more than once. diff --git a/lib/libc/stdio/putwchar.c b/lib/libc/stdio/putwchar.c index 569ab92..5503071 100644 --- a/lib/libc/stdio/putwchar.c +++ b/lib/libc/stdio/putwchar.c @@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" #include "local.h" +#undef putwchar + /* * Synonym for fputwc(wc, stdout). */ |