Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-headers/crt/uchar.h | 23 ++++-------------------
 1 file changed, 4 insertions(+), 19 deletions(-)

diff --git a/mingw-w64-headers/crt/uchar.h b/mingw-w64-headers/crt/uchar.h
index 07894a497..b1dabc62c 100644
--- a/mingw-w64-headers/crt/uchar.h
+++ b/mingw-w64-headers/crt/uchar.h
@@ -48,25 +48,10 @@ extern "C" {
 #endif
  #ifdef _UCRT
-
-_CRTIMP size_t mbrtoc16 (char16_t *__restrict__ pc16,
-                const char *__restrict__ s,
-                size_t n,
-                mbstate_t *__restrict__ ps);
-
-_CRTIMP size_t c16rtomb (char *__restrict__ s,
-                char16_t c16,
-                mbstate_t *__restrict__ ps);
-
-_CRTIMP size_t mbrtoc32 (char32_t *__restrict__ pc32,
-                const char *__restrict__ s,
-                size_t n,
-                mbstate_t *__restrict__ ps);
-
-_CRTIMP size_t c32rtomb (char *__restrict__ s,
-                char32_t c32,
-                mbstate_t *__restrict__ ps);
-
+_CRTIMP size_t mbrtoc16 (char16_t *__restrict__ _Pc16, const char *__restrict__ _S, size_t _N, mbstate_t *__restrict__ _Ps);
+_CRTIMP size_t c16rtomb (char *__restrict__ _S, char16_t _C16, mbstate_t 
*__restrict__ _Ps);
+_CRTIMP size_t mbrtoc32 (char32_t *__restrict__ _Pc32, const char *__restrict__ s, size_t n, mbstate_t *__restrict__ _Ps);
+_CRTIMP size_t c32rtomb (char *__restrict__ _S, char32_t _C32, mbstate_t 
*__restrict__ _Ps);
 #endif  /* _UCRT */
  #ifdef __cplusplus
--
2.52.0

From 587530a5250c6a946ca58e89a0eca0432eb75300 Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Thu, 15 Jan 2026 10:46:48 +0800
Subject: [PATCH] headers/uchar: Use reserved names on parameters, and fold
 lines

Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-headers/crt/uchar.h | 23 ++++-------------------
 1 file changed, 4 insertions(+), 19 deletions(-)

diff --git a/mingw-w64-headers/crt/uchar.h b/mingw-w64-headers/crt/uchar.h
index 07894a497..b1dabc62c 100644
--- a/mingw-w64-headers/crt/uchar.h
+++ b/mingw-w64-headers/crt/uchar.h
@@ -48,25 +48,10 @@ extern "C" {
 #endif
 
 #ifdef _UCRT
-
-_CRTIMP size_t mbrtoc16 (char16_t *__restrict__ pc16,
-                const char *__restrict__ s,
-                size_t n,
-                mbstate_t *__restrict__ ps);
-
-_CRTIMP size_t c16rtomb (char *__restrict__ s,
-                char16_t c16,
-                mbstate_t *__restrict__ ps);
-
-_CRTIMP size_t mbrtoc32 (char32_t *__restrict__ pc32,
-                const char *__restrict__ s,
-                size_t n,
-                mbstate_t *__restrict__ ps);
-
-_CRTIMP size_t c32rtomb (char *__restrict__ s,
-                char32_t c32,
-                mbstate_t *__restrict__ ps);
-
+_CRTIMP size_t mbrtoc16 (char16_t *__restrict__ _Pc16, const char 
*__restrict__ _S, size_t _N, mbstate_t *__restrict__ _Ps);
+_CRTIMP size_t c16rtomb (char *__restrict__ _S, char16_t _C16, mbstate_t 
*__restrict__ _Ps);
+_CRTIMP size_t mbrtoc32 (char32_t *__restrict__ _Pc32, const char 
*__restrict__ s, size_t n, mbstate_t *__restrict__ _Ps);
+_CRTIMP size_t c32rtomb (char *__restrict__ _S, char32_t _C32, mbstate_t 
*__restrict__ _Ps);
 #endif  /* _UCRT */
 
 #ifdef __cplusplus
-- 
2.52.0

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to