aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-21 16:46:16 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-21 16:46:16 +0000
commitf042f18f936c0ebe2ece3dcdeb657a833dba5bb0 (patch)
tree6026e179df3233daccb297a8861c654c1ec4d5db /libio
parentae8b36f7ec9f3e8f7a6f52154b3e92669e8681a5 (diff)
downloadglibc-f042f18f936c0ebe2ece3dcdeb657a833dba5bb0.zip
glibc-f042f18f936c0ebe2ece3dcdeb657a833dba5bb0.tar.gz
glibc-f042f18f936c0ebe2ece3dcdeb657a833dba5bb0.tar.bz2
Update.
1999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * libio/Makefile (routines): Add putwchar and putwchar_u. * libio/putwchar.c: Include <wchar.h> instead of "stdio.h". * libio/putwchar_u.c: Likewise. Use _IO_stdout instead of stdout. Fix parameter name. * libio/getchar.c: Consistently use _IO_stdin instead of stdin. * libio/getchar_u.c: Likewise. * libio/putchar_u.c: Use _IO_stdout instead of stdout. 1999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * include/features.h (__GNUC_PREREQ): Don't generate `defined' via macro expansion---it's undefined. Properly parenthesize substituted parameters. (__GLIBC_PREREQ): Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/Makefile5
-rw-r--r--libio/getchar.c5
-rw-r--r--libio/getchar_u.c2
-rw-r--r--libio/putchar_u.c4
-rw-r--r--libio/putwchar.c2
-rw-r--r--libio/putwchar_u.c10
6 files changed, 15 insertions, 13 deletions
diff --git a/libio/Makefile b/libio/Makefile
index 6759b84..258ff10 100644
--- a/libio/Makefile
+++ b/libio/Makefile
@@ -32,8 +32,9 @@ routines := \
iofgetpos64 iofopen64 iofsetpos64 \
fputwc fputwc_u getwc getwc_u getwchar getwchar_u iofgetws iofgetws_u \
iofputws iofputws_u iogetwline iowpadn ioungetwc putwc putwc_u \
- putchar putchar_u swprintf vwprintf wprintf wscanf fwscanf vwscanf \
- vswprintf iovswscanf swscanf wgenops wstrops wfileops iofwide \
+ putwchar putwchar_u putchar putchar_u swprintf vwprintf wprintf \
+ wscanf fwscanf vwscanf vswprintf iovswscanf swscanf wgenops wstrops \
+ wfileops iofwide \
\
clearerr feof ferror fileno fputc freopen fseek getc getchar \
memstream pclose putc putchar rewind setbuf setlinebuf vasprintf \
diff --git a/libio/getchar.c b/libio/getchar.c
index fdc2ec3..80c297f 100644
--- a/libio/getchar.c
+++ b/libio/getchar.c
@@ -32,9 +32,10 @@ int
getchar ()
{
int result;
- _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, stdin);
+ _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
+ _IO_stdin);
_IO_flockfile (_IO_stdin);
- result = _IO_getc_unlocked (stdin);
+ result = _IO_getc_unlocked (_IO_stdin);
_IO_funlockfile (_IO_stdin);
_IO_cleanup_region_end (0);
return result;
diff --git a/libio/getchar_u.c b/libio/getchar_u.c
index bfbe56b..0c8fb81 100644
--- a/libio/getchar_u.c
+++ b/libio/getchar_u.c
@@ -31,5 +31,5 @@
int
getchar_unlocked ()
{
- return _IO_getc_unlocked (stdin);
+ return _IO_getc_unlocked (_IO_stdin);
}
diff --git a/libio/putchar_u.c b/libio/putchar_u.c
index f8f387a..6800695 100644
--- a/libio/putchar_u.c
+++ b/libio/putchar_u.c
@@ -25,6 +25,6 @@ int
putchar_unlocked (c)
int c;
{
- CHECK_FILE (stdout, EOF);
- return _IO_putc_unlocked (c, stdout);
+ CHECK_FILE (_IO_stdout, EOF);
+ return _IO_putc_unlocked (c, _IO_stdout);
}
diff --git a/libio/putwchar.c b/libio/putwchar.c
index a4e8411..dbb2194 100644
--- a/libio/putwchar.c
+++ b/libio/putwchar.c
@@ -17,7 +17,7 @@
Boston, MA 02111-1307, USA. */
#include "libioP.h"
-#include "stdio.h"
+#include <wchar.h>
wint_t
putwchar (wc)
diff --git a/libio/putwchar_u.c b/libio/putwchar_u.c
index c8add84..62c5eb9 100644
--- a/libio/putwchar_u.c
+++ b/libio/putwchar_u.c
@@ -17,12 +17,12 @@
Boston, MA 02111-1307, USA. */
#include "libioP.h"
-#include "stdio.h"
+#include <wchar.h>
wint_t
-putwchar_unlocked (c)
- wchar_t c;
+putwchar_unlocked (wc)
+ wchar_t wc;
{
- CHECK_FILE (stdout, WEOF);
- return _IO_putwc_unlocked (wc, stdout);
+ CHECK_FILE (_IO_stdout, WEOF);
+ return _IO_putwc_unlocked (wc, _IO_stdout);
}