diff options
author | jimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2007-10-16 10:45:29 +0000 |
---|---|---|
committer | jimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2007-10-16 10:45:29 +0000 |
commit | addc040a0abc7ec65344706c75bc07f7998942bb (patch) | |
tree | 988f87e2670a8b4fb58fa93df19c79b47c7bf565 /libc/posix | |
parent | 2578d0508a978254dda6fd63a066e5383ed4a92e (diff) | |
download | eglibc2-addc040a0abc7ec65344706c75bc07f7998942bb.tar.gz |
Implement the OPTION_EGLIBC_CXX_TESTS option group.
* option-groups.def (OPTION_EGLIBC_CXX_TESTS): New entry.
* option-groups.defaults (OPTION_EGLIBC_CXX_TESTS):
Initialize.
* debug/Makefile (tests): Put tst-chk4, tst-chk5, tst-chk6,
tst-lfschk4, tst-lfschk5, and tst-lfschk6 in the group.
* dlfcn/Makefile: Include option-groups.mak.
(tests): Put bug-atexit3 in the group.
* nptl/Makefile (tests): Put tst-cancel24 in the group.
Implement the OPTION_POSIX_WIDE_CHAR_DEVICE_IO option group.
* option-groups.def (OPTION_POSIX_WIDE_CHAR_DEVICE_IO): New entry.
* option-groups.defaults (OPTION_POSIX_WIDE_CHAR_DEVICE_IO):
Initialize.
* argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-fmtstream.c):
Define OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
* argp/argp-help.c (__argp_failure): Support the wide character
case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
* argp/argp-fmtstream.c (__argp_fmtstream_update): Same.
* debug/Makefile (routines): Put wprintf_chk, fwprintf_chk,
vwprintf_chk, vfwprintf_chk, fgetws_chk, and fgetws_u_chk in the
group.
* libio/Makefile: Include ../option-groups.mak.
(routines): Put in the group: fputwc, fputwc_u, getwc, getwc_u,
getwchar, getwchar_u, iofgetws, iofgetws_u, iofputws, iofputws_u,
iogetwline, ioungetwc, putwc, putwc_u, putwchar, putwchar_u,
fwprintf, swprintf, vwprintf, wprintf, wscanf, fwscanf, vwscanf,
and fwide.
(tests): Put in the group: bug-ftell, bug-rewind, bug-rewind2,
bug-ungetwc1, bug-ungetwc2, bug-wfflush, bug-wmemstream1,
tst-fgetws, tst-fopenloc, tst-fopenloc2, tst-setvbuf1,
tst-ungetwc1, tst-ungetwc2, tst-widetext, tst_getwc, tst_putwc,
tst_wprintf, tst_wprintf2, tst_wscanf, and test-freopen.
* localedata/Makefile (tests): Put tst-wctype in the group.
* misc/Makefile (CFLAGS-error.c, CFLAGS-err.c): Define
OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
(tests): Put tst-error1 in the group.
* misc/err.c (convert_and_print): Define only if
OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
(vwarnx, vwarn): Support the wide character case only if
OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
* misc/error.c (error_tail): Same.
* posix/Makefile (CFLAGS-bug-regex1.c): Define
OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
* posix/bug-regex1.c (main): Call fwide only if the group is enabled.
* stdio-common/Makefile: (routines): Put vfwprintf and vfwscanf in
the group.
(tests): Put tst-perror and bug19a in the group.
(CFLAGS-fxprintf.c, CFLAGS-tst-popen.c): Define
OPTION_POSIX_WIDE_CHAR_DEVICE_IO as appropriate.
* stdio-common/fxprintf.c (__fxprintf): Support the wide character
case only if OPTION_POSIX_WIDE_CHAR_DEVICE_IO is #defined.
* stdio-common/tst-perror.c (main): Test wide character case only
if group is enabled.
* stdio-common/tst-popen.c (main): Check the stream's orientation
only if the group is enabled.
* time/Makefile (tests): Put tst_wcsftime in the group.
* wcsmbs/Makefile (routines): Put isoc99_wscanf, isoc99_vwscanf,
isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf, and
isoc99_vswscanf in the group.
git-svn-id: svn://svn.eglibc.org/trunk@3830 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/posix')
-rw-r--r-- | libc/posix/Makefile | 3 | ||||
-rw-r--r-- | libc/posix/bug-regex1.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libc/posix/Makefile b/libc/posix/Makefile index 85ddd67ea..8a4fbda45 100644 --- a/libc/posix/Makefile +++ b/libc/posix/Makefile @@ -156,6 +156,8 @@ endif OPTION_EGLIBC_INET-CFLAGS-$(OPTION_EGLIBC_INET) = -DUSE_NSCD=1 OPTION_EGLIBC_GETLOGIN-CFLAGS-$(OPTION_EGLIBC_GETLOGIN) \ = -DOPTION_EGLIBC_GETLOGIN +OPTION_POSIX_WIDE_CHAR_DEVICE_IO-CFLAGS-$(OPTION_POSIX_WIDE_CHAR_DEVICE_IO) \ + = -DOPTION_POSIX_WIDE_CHAR_DEVICE_IO CFLAGS-regex.c = -Wno-strict-prototypes CFLAGS-getaddrinfo.c = -DRESOLVER -fexceptions $(OPTION_EGLIBC_INET-CFLAGS-y) @@ -191,6 +193,7 @@ CFLAGS-execle.os = -fomit-frame-pointer CFLAGS-execl.os = -fomit-frame-pointer CFLAGS-execvp.os = -fomit-frame-pointer CFLAGS-execlp.os = -fomit-frame-pointer +CFLAGS-bug-regex1.c = $(OPTION_POSIX_WIDE_CHAR_DEVICE_IO-CFLAGS-y) tstgetopt-ARGS = -a -b -cfoobar --required foobar --optional=bazbug \ --none random --col --color --colour diff --git a/libc/posix/bug-regex1.c b/libc/posix/bug-regex1.c index 38eb54395..01c03716e 100644 --- a/libc/posix/bug-regex1.c +++ b/libc/posix/bug-regex1.c @@ -17,7 +17,9 @@ main (void) memset (®ex, '\0', sizeof (regex)); setlocale (LC_ALL, "de_DE.ISO-8859-1"); +#ifdef OPTION_POSIX_WIDE_CHAR_DEVICE_IO fwide (stdout, -1); +#endif re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_DEBUG); |