mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
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.
This commit is contained in:
parent
ae8b36f7ec
commit
f042f18f93
20
ChangeLog
20
ChangeLog
@ -1,3 +1,23 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
1999-06-21 Ulrich Drepper <drepper@cygnus.com>
|
1999-06-21 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* Makeconfig (CPPFLAGS): Revert last change. It has too many
|
* Makeconfig (CPPFLAGS): Revert last change. It has too many
|
||||||
|
@ -251,10 +251,15 @@
|
|||||||
#endif
|
#endif
|
||||||
Note - they won't work for gcc1 or glibc1, since the _MINOR macros
|
Note - they won't work for gcc1 or glibc1, since the _MINOR macros
|
||||||
were not defined then. */
|
were not defined then. */
|
||||||
#define __GNUC_PREREQ(maj,min) (defined __GNUC__ && defined __GNUC_MINOR__ \
|
#if defined __GNUC__ && defined __GNUC_MINOR__
|
||||||
&& ((__GNUC__ << 16) + __GNUC_MINOR__) >= ((maj<<16) + min))
|
# define __GNUC_PREREQ(maj, min) \
|
||||||
#define __GLIBC_PREREQ(maj,min) (defined __GLIBC__ && defined __GLIBC_MINOR__ \
|
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
||||||
&& ((__GLIBC__ << 16) + __GLIBC_MINOR__) >= ((maj<<16) + min))
|
#else
|
||||||
|
# define __GNUC_PREREQ(maj, min) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define __GLIBC_PREREQ(maj, min) \
|
||||||
|
((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
|
||||||
|
|
||||||
/* This is here only because every header file already includes this one. */
|
/* This is here only because every header file already includes this one. */
|
||||||
#ifndef __ASSEMBLER__
|
#ifndef __ASSEMBLER__
|
||||||
|
@ -32,8 +32,9 @@ routines := \
|
|||||||
iofgetpos64 iofopen64 iofsetpos64 \
|
iofgetpos64 iofopen64 iofsetpos64 \
|
||||||
fputwc fputwc_u getwc getwc_u getwchar getwchar_u iofgetws iofgetws_u \
|
fputwc fputwc_u getwc getwc_u getwchar getwchar_u iofgetws iofgetws_u \
|
||||||
iofputws iofputws_u iogetwline iowpadn ioungetwc putwc putwc_u \
|
iofputws iofputws_u iogetwline iowpadn ioungetwc putwc putwc_u \
|
||||||
putchar putchar_u swprintf vwprintf wprintf wscanf fwscanf vwscanf \
|
putwchar putwchar_u putchar putchar_u swprintf vwprintf wprintf \
|
||||||
vswprintf iovswscanf swscanf wgenops wstrops wfileops iofwide \
|
wscanf fwscanf vwscanf vswprintf iovswscanf swscanf wgenops wstrops \
|
||||||
|
wfileops iofwide \
|
||||||
\
|
\
|
||||||
clearerr feof ferror fileno fputc freopen fseek getc getchar \
|
clearerr feof ferror fileno fputc freopen fseek getc getchar \
|
||||||
memstream pclose putc putchar rewind setbuf setlinebuf vasprintf \
|
memstream pclose putc putchar rewind setbuf setlinebuf vasprintf \
|
||||||
|
@ -32,9 +32,10 @@ int
|
|||||||
getchar ()
|
getchar ()
|
||||||
{
|
{
|
||||||
int result;
|
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);
|
_IO_flockfile (_IO_stdin);
|
||||||
result = _IO_getc_unlocked (stdin);
|
result = _IO_getc_unlocked (_IO_stdin);
|
||||||
_IO_funlockfile (_IO_stdin);
|
_IO_funlockfile (_IO_stdin);
|
||||||
_IO_cleanup_region_end (0);
|
_IO_cleanup_region_end (0);
|
||||||
return result;
|
return result;
|
||||||
|
@ -31,5 +31,5 @@
|
|||||||
int
|
int
|
||||||
getchar_unlocked ()
|
getchar_unlocked ()
|
||||||
{
|
{
|
||||||
return _IO_getc_unlocked (stdin);
|
return _IO_getc_unlocked (_IO_stdin);
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ int
|
|||||||
putchar_unlocked (c)
|
putchar_unlocked (c)
|
||||||
int c;
|
int c;
|
||||||
{
|
{
|
||||||
CHECK_FILE (stdout, EOF);
|
CHECK_FILE (_IO_stdout, EOF);
|
||||||
return _IO_putc_unlocked (c, stdout);
|
return _IO_putc_unlocked (c, _IO_stdout);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include "libioP.h"
|
#include "libioP.h"
|
||||||
#include "stdio.h"
|
#include <wchar.h>
|
||||||
|
|
||||||
wint_t
|
wint_t
|
||||||
putwchar (wc)
|
putwchar (wc)
|
||||||
|
@ -17,12 +17,12 @@
|
|||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include "libioP.h"
|
#include "libioP.h"
|
||||||
#include "stdio.h"
|
#include <wchar.h>
|
||||||
|
|
||||||
wint_t
|
wint_t
|
||||||
putwchar_unlocked (c)
|
putwchar_unlocked (wc)
|
||||||
wchar_t c;
|
wchar_t wc;
|
||||||
{
|
{
|
||||||
CHECK_FILE (stdout, WEOF);
|
CHECK_FILE (_IO_stdout, WEOF);
|
||||||
return _IO_putwc_unlocked (wc, stdout);
|
return _IO_putwc_unlocked (wc, _IO_stdout);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user