summaryrefslogtreecommitdiffstats
path: root/gl/mbrtoc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/mbrtoc32.c')
-rw-r--r--gl/mbrtoc32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/mbrtoc32.c b/gl/mbrtoc32.c
index c4625525..4c8f5267 100644
--- a/gl/mbrtoc32.c
+++ b/gl/mbrtoc32.c
@@ -1,5 +1,5 @@
1/* Convert multibyte character to 32-bit wide character. 1/* Convert multibyte character to 32-bit wide character.
2 Copyright (C) 2020-2025 Free Software Foundation, Inc. 2 Copyright (C) 2020-2026 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -30,7 +30,7 @@
30# include "lc-charset-unicode.h" 30# include "lc-charset-unicode.h"
31#endif 31#endif
32 32
33#if GNULIB_defined_mbstate_t /* AIX, IRIX */ 33#if GNULIB_defined_mbstate_t /* AIX */
34/* Implement mbrtoc32() on top of mbtowc() for the non-UTF-8 locales 34/* Implement mbrtoc32() on top of mbtowc() for the non-UTF-8 locales
35 and directly for the UTF-8 locales. */ 35 and directly for the UTF-8 locales. */
36 36
@@ -165,7 +165,6 @@ mbrtoc32 (char32_t *pwc, const char *s, size_t n, mbstate_t *ps)
165 char buf[4]; 165 char buf[4];
166 const char *p; 166 const char *p;
167 size_t m; 167 size_t m;
168 int res;
169 168
170 switch (nstate) 169 switch (nstate)
171 { 170 {
@@ -198,6 +197,7 @@ mbrtoc32 (char32_t *pwc, const char *s, size_t n, mbstate_t *ps)
198 197
199 /* Here m > 0. */ 198 /* Here m > 0. */
200 199
200 int res;
201 { 201 {
202# define FITS_IN_CHAR_TYPE(wc) 1 202# define FITS_IN_CHAR_TYPE(wc) 1
203# include "mbrtowc-impl-utf8.h" 203# include "mbrtowc-impl-utf8.h"