Hash :
4b440d35
Author :
Date :
2023-04-19T02:14:09
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.
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