* lib/quotearg.c: Include <wchar.h>.
(quotearg_buffer_restyled): Use mbszero.
* modules/quotearg (Depends-on): Add mbszero.
+2023-07-16 Bruno Haible <bruno@clisp.org>
+
+ quotearg: Optimize clearing an mbstate_t.
+ * lib/quotearg.c: Include <wchar.h>.
+ (quotearg_buffer_restyled): Use mbszero.
+ * modules/quotearg (Depends-on): Add mbszero.
+
2023-07-16 Bruno Haible <bruno@clisp.org>
vasnprintf, vasnwprintf: Optimize clearing an mbstate_t.
#include <stdlib.h>
#include <string.h>
#include <uchar.h>
+#include <wchar.h>
#include "gettext.h"
#define _(msgid) gettext (msgid)
else
{
mbstate_t mbstate;
- memset (&mbstate, 0, sizeof mbstate);
+ mbszero (&mbstate);
m = 0;
printable = true;
c32isprint
extensions
gettext-h
+mbszero
mbrtoc32
mbsinit
memcmp