Hash :
4159dd50
Author :
Date :
2023-07-16T07:30:20
mbtowc: Optimize clearing an mbstate_t. * lib/mbtowc-impl.h (mbtowc): Use mbszero. * modules/mbtowc (Depends-on): Add mbszero.
Description:
mbtowc() function: convert multibyte character to wide character.
Files:
lib/mbtowc.c
lib/mbtowc-impl.h
m4/mbtowc.m4
Depends-on:
stdlib
wchar [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
mbszero [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
mbrtowc [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
configure.ac:
gl_FUNC_MBTOWC
gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
[test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
AM_COND_IF([GL_COND_OBJ_MBTOWC], [
gl_PREREQ_MBTOWC
])
gl_STDLIB_MODULE_INDICATOR([mbtowc])
Makefile.am:
if GL_COND_OBJ_MBTOWC
lib_SOURCES += mbtowc.c
endif
Include:
<stdlib.h>
License:
LGPLv2+
Maintainer:
all