[libc-commits] [libc] [libc] Add missing iswdigit to wctype.yaml and Windows entrypoints (PR #186023)
via libc-commits
libc-commits at lists.llvm.org
Wed Mar 11 19:22:49 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Xinlong Chen (Xinlong-Chen)
<details>
<summary>Changes</summary>
`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.
---
Full diff: https://github.com/llvm/llvm-project/pull/186023.diff
2 Files Affected:
- (modified) libc/config/windows/entrypoints.txt (+1)
- (modified) libc/include/wctype.yaml (+6)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/186023
More information about the libc-commits
mailing list