Skip to content

Commit 7f0f4ca

Browse files
author
Siva Chandra Reddy
committed
[libc][NFC] Add 'struct_' prefix to type headers defining struct types.
This allows header generator to generate type inclusion boiler plate in a straightforward manner.
1 parent 86b08ed commit 7f0f4ca

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

libc/config/linux/api.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def SSizeT : TypeDecl<"ssize_t"> {
2424

2525
def StructTm: TypeDecl<"struct tm"> {
2626
let Decl = [{
27-
#include <llvm-libc-types/tm.h>
27+
#include <llvm-libc-types/struct_tm.h>
2828
}];
2929
}
3030

@@ -334,7 +334,7 @@ def SysMManAPI : PublicAPI<"sys/mman.h"> {
334334

335335
def StructSigactionDefn : TypeDecl<"struct sigaction"> {
336336
let Decl = [{
337-
#include <llvm-libc-types/__sigaction.h>
337+
#include <llvm-libc-types/struct_sigaction.h>
338338
}];
339339
}
340340

libc/include/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ add_gen_header(
6767
DEPENDS
6868
.llvm_libc_common_h
6969
.llvm-libc-types.time_t
70-
.llvm-libc-types.tm
70+
.llvm-libc-types.struct_tm
7171
)
7272

7373
add_gen_header(
@@ -103,7 +103,7 @@ add_gen_header(
103103
DATA_FILES
104104
../config/${LIBC_TARGET_OS}/signal.h.in
105105
DEPENDS
106-
.llvm-libc-types.__sigaction
106+
.llvm-libc-types.struct_sigaction
107107
.llvm-libc-types.__sighandler_t
108108
)
109109

libc/include/llvm-libc-types/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
add_header(__bsearchcompare_t HDR __bsearchcompare_t.h)
22
add_header(__call_once_func_t HDR __call_once_func_t.h)
33
add_header(__qsortcompare_t HDR __qsortcompare_t.h)
4-
add_header(__sigaction HDR __sigaction.h)
54
add_header(__sighandler_t HDR __sighandler_t.h)
65
add_header(cnd_t HDR cnd_t.h)
76
add_header(double_t HDR double_t.h)
@@ -18,7 +17,8 @@ add_header(off_t HDR off_t.h)
1817
add_header(once_flag HDR once_flag.h)
1918
add_header(size_t HDR size_t.h)
2019
add_header(ssize_t HDR ssize_t.h)
20+
add_header(struct_sigaction HDR struct_sigaction.h)
21+
add_header(struct_tm HDR struct_tm.h)
2122
add_header(thrd_start_t HDR thrd_start_t.h)
2223
add_header(thrd_t HDR thrd_t.h)
2324
add_header(time_t HDR time_t.h)
24-
add_header(tm HDR tm.h)

0 commit comments

Comments
 (0)