Skip to content

Commit a8ebbc1

Browse files
committed
Move to stdc_ext.td and remove test file.
1 parent 61cc872 commit a8ebbc1

File tree

4 files changed

+17
-90
lines changed

4 files changed

+17
-90
lines changed

libc/config/linux/api.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include "spec/linux.td"
66
include "spec/gnu_ext.td"
77
include "spec/bsd_ext.td"
88
include "spec/llvm_libc_ext.td"
9+
include "spec/stdc_ext.td"
910

1011
def AssertMacro : MacroDef<"assert"> {
1112
let Defn = [{

libc/spec/stdc.td

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -898,15 +898,6 @@ def StdC : StandardSpec<"stdc"> {
898898
]
899899
>;
900900

901-
HeaderSpec StdFix = HeaderSpec<
902-
"stdfix.h",
903-
[], // macros
904-
[], // types
905-
[], // enums
906-
[ // functions
907-
]
908-
>;
909-
910901
HeaderSpec Limits = HeaderSpec<"limits.h">;
911902

912903
NamedType SigAtomicT = NamedType<"sig_atomic_t">;
@@ -1216,7 +1207,6 @@ def StdC : StandardSpec<"stdc"> {
12161207
Math,
12171208
String,
12181209
StdBit,
1219-
StdFix,
12201210
StdIO,
12211211
StdLib,
12221212
IntTypes,

libc/spec/stdc_ext.td

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
def StdcExt : StandardSpec<"stdc_ext"> {
2+
// From N1169 standard:
3+
// https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf
4+
HeaderSpec StdFix = HeaderSpec<
5+
"stdfix.h",
6+
[], // macros
7+
[], // types
8+
[], // enums
9+
[ // functions
10+
]
11+
>;
12+
13+
let Headers = [
14+
StdFix,
15+
];
16+
}

libc/test/include/stdfix_test.cpp

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)