Skip to content

Commit 67669ea

Browse files
authored
[libc][docs] Updates implementation status for some preexisting docgen json files (#89281)
Moving towards displaying impl status of standard header macros. The macros aren't handled by docgen yet, so I haven't included updated rst files.
1 parent e772a26 commit 67669ea

File tree

3 files changed

+151
-41
lines changed

3 files changed

+151
-41
lines changed

libc/utils/docgen/fenv.json

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,63 @@
11
{
2-
"macros": [
3-
"__STDC_VERSION_FENV_H__"
4-
],
2+
"macros": {
3+
"__STDC_VERSION_FENV_H__": {
4+
"defined": "7.6.5"
5+
},
6+
"FE_DIVBYZERO": {
7+
"defined": "7.6.9"
8+
},
9+
"FE_INEXACT": {
10+
"defined": "7.6.9"
11+
},
12+
"FE_INVALID": {
13+
"defined": "7.6.9"
14+
},
15+
"FE_OVERFLOW": {
16+
"defined": "7.6.9"
17+
},
18+
"FE_UNDERFLOW": {
19+
"defined": "7.6.9"
20+
},
21+
"FE_ALL_EXCEPT": {
22+
"defined": "7.6.12"
23+
},
24+
"FE_DFL_MODE": {
25+
"defined": "7.6.11"
26+
},
27+
"FE_DOWNARD": {
28+
"defined": "7.6.13"
29+
},
30+
"FE_TONEAREST": {
31+
"defined": "7.6.13"
32+
},
33+
"FE_TONEARESTFROMZERO": {
34+
"defined": "7.6.13"
35+
},
36+
"FE_TOWARDZERO": {
37+
"defined": "7.6.13"
38+
},
39+
"FE_UPWARD": {
40+
"defined": "7.6.13"
41+
},
42+
"FE_DEC_DOWNWARD": {
43+
"defined": "7.6.14"
44+
},
45+
"FE_DEC_TONEAREST": {
46+
"defined": "7.6.14"
47+
},
48+
"FE_DEC_TONEARESTFROMZERO": {
49+
"defined": "7.6.14"
50+
},
51+
"FE_DEC_TOWARDZERO": {
52+
"defined": "7.6.14"
53+
},
54+
"FE_DEC_UPWARD": {
55+
"defined": "7.6.14"
56+
},
57+
"FE_DFL_ENV": {
58+
"defined": "7.6.17"
59+
}
60+
},
561
"functions": {
662
"feclearexcept": {
763
"defined": "7.6.4.1"

libc/utils/docgen/signal.json

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
11
{
2-
"macros": [
3-
"SIG_DFL",
4-
"SIG_ERR",
5-
"SIG_IGN",
6-
"SIGABRT",
7-
"SIGFPE",
8-
"SIGILL",
9-
"SIGINT",
10-
"SIGSEGV",
11-
"SIGTERM"
12-
],
2+
"macros": {
3+
"SIG_DFL": {
4+
"defined": "7.14.3"
5+
},
6+
"SIG_ERR": {
7+
"defined": "7.14.3"
8+
},
9+
"SIG_IGN": {
10+
"defined": "7.14.3"
11+
},
12+
"SIGABRT": {
13+
"defined": "7.14.3"
14+
},
15+
"SIGFPE": {
16+
"defined": "7.14.3"
17+
},
18+
"SIGILL": {
19+
"defined": "7.14.3"
20+
},
21+
"SIGINT": {
22+
"defined": "7.14.3"
23+
},
24+
"SIGSEGV": {
25+
"defined": "7.14.3"
26+
},
27+
"SIGTERM": {
28+
"defined": "7.14.3"
29+
}
30+
},
1331
"functions": {
32+
"signal": {
33+
"defined": "7.14.1.1"
34+
},
35+
"raise": {
36+
"defined": "7.14.2.1"
37+
},
1438
"kill": null,
1539
"sigaction": null,
1640
"sigaddset": null,
1741
"sigaltstack": null,
1842
"sigdelset": null,
1943
"sigemptyset": null,
2044
"sigfillset": null,
21-
"sigprocmask": null,
22-
"signal": {
23-
"defined": "7.14.1.1"
24-
},
25-
"raise": {
26-
"defined": "7.14.2.1"
27-
}
45+
"sigprocmask": null
2846
}
2947
}

libc/utils/docgen/stdbit.json

Lines changed: 56 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,60 @@
11
{
2-
"macros": [
3-
"__STDC_VERSION_STDBIT_H__",
4-
"__STDC_ENDIAN_LITTLE__",
5-
"__STDC_ENDIAN_BIG__",
6-
"__STDC_ENDIAN_NATIVE__",
7-
"stdc_leading_zeros",
8-
"stdc_leading_ones",
9-
"stdc_trailing_zeros",
10-
"stdc_trailing_ones",
11-
"stdc_first_leading_zero",
12-
"stdc_first_leading_one",
13-
"stdc_first_trailing_zero",
14-
"stdc_first_trailing_one",
15-
"stdc_count_zeros",
16-
"stdc_count_ones",
17-
"stdc_has_single_bit",
18-
"stdc_bit_width",
19-
"stdc_bit_floor",
20-
"stdc_bit_ceil"
21-
],
2+
"macros": {
3+
"__STDC_VERSION_STDBIT_H__": {
4+
"defined": "7.18.1.2"
5+
},
6+
"__STDC_ENDIAN_LITTLE__": {
7+
"defined": "7.18.2.2"
8+
},
9+
"__STDC_ENDIAN_BIG__": {
10+
"defined": "7.18.2.2"
11+
},
12+
"__STDC_ENDIAN_NATIVE__": {
13+
"defined": "7.18.2.2"
14+
},
15+
"stdc_leading_zeros": {
16+
"defined": "7.18.3.1"
17+
},
18+
"stdc_leading_ones": {
19+
"defined": "7.18.4.1"
20+
},
21+
"stdc_trailing_zeros": {
22+
"defined": "7.18.5.1"
23+
},
24+
"stdc_trailing_ones": {
25+
"defined": "7.18.6.1"
26+
},
27+
"stdc_first_leading_zero": {
28+
"defined": "7.18.7.1"
29+
},
30+
"stdc_first_leading_one": {
31+
"defined": "7.18.8.1"
32+
},
33+
"stdc_first_trailing_zero": {
34+
"defined": "7.18.9.1"
35+
},
36+
"stdc_first_trailing_one": {
37+
"defined": "7.18.10.1"
38+
},
39+
"stdc_count_zeros": {
40+
"defined": "7.18.11.1"
41+
},
42+
"stdc_count_ones": {
43+
"defined": "7.18.12.1"
44+
},
45+
"stdc_has_single_bit": {
46+
"defined": "7.18.13.1"
47+
},
48+
"stdc_bit_width": {
49+
"defined": "7.18.14.1"
50+
},
51+
"stdc_bit_floor": {
52+
"defined": "7.18.15.1"
53+
},
54+
"stdc_bit_ceil": {
55+
"defined": "7.18.16.1"
56+
}
57+
},
2258
"functions": {
2359
"stdc_leading_zeros_uc": {
2460
"defined": "7.18.3"

0 commit comments

Comments
 (0)