[libc-commits] [libc] [libc] Add missing iswdigit to wctype.yaml and Windows entrypoints (PR #186023)
Xinlong Chen via libc-commits
libc-commits at lists.llvm.org
Wed Mar 11 19:22:19 PDT 2026
https://github.com/Xinlong-Chen created https://github.com/llvm/llvm-project/pull/186023
`iswdigit` was implemented (https://github.com/llvm/llvm-project/pull/181635) but not declared in the generated wctype.h (wctype.yaml) and was missing from the Windows config entrypoints.
This pr declares iswdigit in wctype.h and enables it for the Windows config.
also is part of https://github.com/llvm/llvm-project/issues/185136.
>From 5c202aabfa82f68b78b70960aeb9a887699bb151 Mon Sep 17 00:00:00 2001
From: xinlongchen <xinlongchen at tencent.com>
Date: Thu, 12 Mar 2026 10:17:47 +0800
Subject: [PATCH] [libc] Add missing iswdigit to wctype.yaml and Windows
entrypoints
---
libc/config/windows/entrypoints.txt | 1 +
libc/include/wctype.yaml | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/libc/config/windows/entrypoints.txt b/libc/config/windows/entrypoints.txt
index 28608e8c327d1..717fa02c1308d 100644
--- a/libc/config/windows/entrypoints.txt
+++ b/libc/config/windows/entrypoints.txt
@@ -110,6 +110,7 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.wctype.iswalpha
libc.src.wctype.iswgraph
libc.src.wctype.iswcntrl
+ libc.src.wctype.iswdigit
libc.src.wctype.iswlower
libc.src.wctype.iswspace
libc.src.wctype.iswblank
diff --git a/libc/include/wctype.yaml b/libc/include/wctype.yaml
index b55288271ace6..14eeaf79523f6 100644
--- a/libc/include/wctype.yaml
+++ b/libc/include/wctype.yaml
@@ -20,6 +20,12 @@ functions:
return_type: int
arguments:
- type: wint_t
+ - name: iswdigit
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: wint_t
- name: iswlower
standards:
- stdc
More information about the libc-commits
mailing list