1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00
Files
gnulib/modules/wcscmp
T
Bruno Haible 4b440d3568 wcscmp: Work around two ISO C compliance bugs on several platforms.
* lib/wchar.in.h (wcscmp): Consider REPLACE_WCSCMP.
* lib/wcscmp-impl.h (wcscmp): Don't assume that the two wide characters
are in the range 0..INT_MAX.
* m4/wcscmp.m4 (gl_FUNC_WCSCMP): Test whether wcscmp works for all wide
characters. Set REPLACE_WCSCMP.
* m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSCMP.
* modules/wchar (Makefile.am): Substitute REPLACE_WCSCMP.
* modules/wcscmp (Status, Notice): Un-obsolete this module.
(configure.ac): Consider REPLACE_WCSCMP.
* doc/posix-functions/wcscmp.texi: Mention the two bugs.
2023-04-19 02:39:36 +02:00

31 lines
418 B
Plaintext

Description:
wcscmp() function: compare two wide strings.
Files:
lib/wcscmp.c
lib/wcscmp-impl.h
m4/wcscmp.m4
Depends-on:
wchar
configure.ac:
gl_FUNC_WCSCMP
gl_CONDITIONAL([GL_COND_OBJ_WCSCMP],
[test $HAVE_WCSCMP = 0 || test $REPLACE_WCSCMP = 1])
gl_WCHAR_MODULE_INDICATOR([wcscmp])
Makefile.am:
if GL_COND_OBJ_WCSCMP
lib_SOURCES += wcscmp.c
endif
Include:
<wchar.h>
License:
LGPL
Maintainer:
all