Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 856dadb

Browse files
committedAug 22, 2024·
[libc] Add ctype.h locale variants (#102711)
Summary: This patch adds all the libc ctype variants. These ignore the locale ingormation completely, so they're pretty much just stubs. Because these use locale information, which is system scope, we do not enable building them outisde of full build mode.
1 parent a7c8f41 commit 856dadb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+950
-31
lines changed
 

‎libc/config/gpu/entrypoints.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,35 @@ set(TARGET_LIBC_ENTRYPOINTS
44

55
# ctype.h entrypoints
66
libc.src.ctype.isalnum
7+
libc.src.ctype.isalnum_l
78
libc.src.ctype.isalpha
9+
libc.src.ctype.isalpha_l
810
libc.src.ctype.isascii
911
libc.src.ctype.isblank
12+
libc.src.ctype.isblank_l
1013
libc.src.ctype.iscntrl
14+
libc.src.ctype.iscntrl_l
1115
libc.src.ctype.isdigit
16+
libc.src.ctype.isdigit_l
1217
libc.src.ctype.isgraph
18+
libc.src.ctype.isgraph_l
1319
libc.src.ctype.islower
20+
libc.src.ctype.islower_l
1421
libc.src.ctype.isprint
22+
libc.src.ctype.isprint_l
1523
libc.src.ctype.ispunct
24+
libc.src.ctype.ispunct_l
1625
libc.src.ctype.isspace
26+
libc.src.ctype.isspace_l
1727
libc.src.ctype.isupper
28+
libc.src.ctype.isupper_l
1829
libc.src.ctype.isxdigit
30+
libc.src.ctype.isxdigit_l
1931
libc.src.ctype.toascii
2032
libc.src.ctype.tolower
33+
libc.src.ctype.tolower_l
2134
libc.src.ctype.toupper
35+
libc.src.ctype.toupper_l
2236

2337
# string.h entrypoints
2438
libc.src.string.bcmp

‎libc/config/linux/x86_64/entrypoints.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,22 @@ endif()
782782

783783
if(LLVM_LIBC_FULL_BUILD)
784784
list(APPEND TARGET_LIBC_ENTRYPOINTS
785+
# ctype.h entrypoints
786+
libc.src.ctype.isalnum_l
787+
libc.src.ctype.isalpha_l
788+
libc.src.ctype.isblank_l
789+
libc.src.ctype.iscntrl_l
790+
libc.src.ctype.isdigit_l
791+
libc.src.ctype.isgraph_l
792+
libc.src.ctype.islower_l
793+
libc.src.ctype.isprint_l
794+
libc.src.ctype.ispunct_l
795+
libc.src.ctype.isspace_l
796+
libc.src.ctype.isupper_l
797+
libc.src.ctype.isxdigit_l
798+
libc.src.ctype.tolower_l
799+
libc.src.ctype.toupper_l
800+
785801
# assert.h entrypoints
786802
libc.src.assert.__assert_fail
787803

0 commit comments

Comments
 (0)
Please sign in to comment.