File tree 5 files changed +32
-9
lines changed
5 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,7 @@ def StdIOAPI : PublicAPI<"stdio.h"> {
30
30
];
31
31
let Types = ["size_t", "FILE"];
32
32
}
33
+
34
+ def IntTypesAPI : PublicAPI<"inttypes.h"> {
35
+ let Types = ["imaxdiv_t"];
36
+ }
Original file line number Diff line number Diff line change @@ -94,6 +94,12 @@ set(TARGET_LIBC_ENTRYPOINTS
94
94
libc.src.stdio.stdout
95
95
libc.src.stdio.stderr
96
96
97
+ # inttypes.h entrypoints
98
+ libc.src.inttypes.imaxabs
99
+ libc.src.inttypes.imaxdiv
100
+ libc.src.inttypes.strtoimax
101
+ libc.src.inttypes.strtoumax
102
+
97
103
# gpu/rpc.h entrypoints
98
104
libc.src.gpu.rpc_reset
99
105
)
Original file line number Diff line number Diff line change 1
1
set(TARGET_PUBLIC_HEADERS
2
2
libc.include.ctype
3
3
libc.include.string
4
+ libc.include.inttypes
4
5
libc.include.math
5
6
libc.include.fenv
6
7
libc.include.errno
Original file line number Diff line number Diff line change @@ -104,6 +104,18 @@ strtoul |check|
104
104
strtoull |check |
105
105
============= ========= ============
106
106
107
+ inttypes.h
108
+ --------
109
+
110
+ ============= ========= ============
111
+ Function Name Available RPC Required
112
+ ============= ========= ============
113
+ imaxabs |check |
114
+ imaxdiv |check |
115
+ strtoimax |check |
116
+ strtoumax |check |
117
+ ============= ========= ============
118
+
107
119
stdio.h
108
120
--------
109
121
Original file line number Diff line number Diff line change 1
- add_custom_target (libc_inttypes_unittests )
1
+ add_custom_target (libc_inttypes_tests )
2
2
3
- add_libc_unittest (
3
+ add_libc_test (
4
4
strtoimax_test
5
5
SUITE
6
- libc_inttypes_unittests
6
+ libc_inttypes_tests
7
7
SRCS
8
8
strtoimax_test.cpp
9
9
DEPENDS
10
10
libc.src.inttypes.strtoimax
11
11
libc.test .src.stdlib.strtol_test_support
12
12
)
13
13
14
- add_libc_unittest (
14
+ add_libc_test (
15
15
strtoumax_test
16
16
SUITE
17
- libc_inttypes_unittests
17
+ libc_inttypes_tests
18
18
SRCS
19
19
strtoumax_test.cpp
20
20
DEPENDS
21
21
libc.src.inttypes.strtoumax
22
22
libc.test .src.stdlib.strtol_test_support
23
23
)
24
24
25
- add_libc_unittest (
25
+ add_libc_test (
26
26
imaxdiv_test
27
27
SUITE
28
- libc_inttypes_unittests
28
+ libc_inttypes_tests
29
29
SRCS
30
30
imaxdiv_test.cpp
31
31
HDRS
@@ -35,10 +35,10 @@ add_libc_unittest(
35
35
libc.src.inttypes.imaxdiv
36
36
)
37
37
38
- add_libc_unittest (
38
+ add_libc_test (
39
39
imaxabs_test
40
40
SUITE
41
- libc_inttypes_unittests
41
+ libc_inttypes_tests
42
42
SRCS
43
43
imaxabs_test.cpp
44
44
HDRS
You can’t perform that action at this time.
0 commit comments