Emit C attributes via cbindgen

This commit is contained in:
Josh Megnauth
2024-11-17 16:15:07 +00:00
committed by Jeremy Soller
parent a45c7b26d9
commit 5348273ccc
29 changed files with 175 additions and 35 deletions
+1 -4
View File
@@ -1,4 +1,4 @@
sys_includes = []
sys_includes = ["features.h"]
include_guard = "_RELIBC_ASSERT_H"
trailer = "#include <bits/assert.h>"
language = "C"
@@ -8,6 +8,3 @@ cpp_compat = true
[enum]
prefix_with_name = true
[fn]
no_return = "__attribute__((noreturn))"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["bits/ctype.h"]
sys_includes = ["bits/ctype.h", "features.h"]
include_guard = "_RELIBC_CTYPE_H"
language = "C"
style = "Tag"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["sys/types.h"]
sys_includes = ["sys/types.h", "features.h"]
include_guard = "_RELIBC_DIRENT_H"
language = "C"
style = "Both"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["sys/socket.h", "netinet/in.h"]
sys_includes = ["sys/socket.h", "netinet/in.h", "features.h"]
include_guard = "_RELIBC_NETDB_H"
trailer = "#include <bits/netdb.h>"
language = "C"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["sched.h", "time.h", "bits/pthread.h"]
sys_includes = ["sched.h", "time.h", "bits/pthread.h", "features.h"]
include_guard = "_RELIBC_PTHREAD_H"
language = "C"
style = "tag"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["bits/signal.h", "stdint.h", "sys/types.h", "time.h", "bits/pthread.h"]
sys_includes = ["bits/signal.h", "stdint.h", "sys/types.h", "time.h", "bits/pthread.h", "features.h"]
include_guard = "_RELIBC_SIGNAL_H"
trailer = "#include <bits/signal.h>"
language = "C"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h"]
sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h", "features.h"]
include_guard = "_RELIBC_STDIO_H"
trailer = "#include <bits/stdio.h>"
language = "C"
+1 -4
View File
@@ -1,4 +1,4 @@
sys_includes = ["stddef.h", "alloca.h", "wchar.h"]
sys_includes = ["stddef.h", "alloca.h", "wchar.h", "features.h"]
include_guard = "_RELIBC_STDLIB_H"
trailer = "#include <bits/stdlib.h>"
language = "C"
@@ -8,6 +8,3 @@ cpp_compat = true
[enum]
prefix_with_name = true
[fn]
no_return = "__attribute__((noreturn))"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["sys/types.h"]
sys_includes = ["sys/types.h", "features.h"]
include_guard = "_SYS_TIME_H"
language = "C"
trailer = "#include <bits/sys/time.h>"
+1
View File
@@ -7,6 +7,7 @@ sys_includes = [
"stddef.h",
"sys/select.h",
"bits/pthread.h",
"features.h",
]
include_guard = "_SYS_TYPES_H"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["stdint.h"]
sys_includes = ["stdint.h", "features.h"]
include_guard = "_RELIBC_TERMIOS_H"
language = "C"
style = "Tag"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["sys/types.h", "stdint.h", "stddef.h"]
sys_includes = ["sys/types.h", "stdint.h", "stddef.h", "features.h"]
include_guard = "_RELIBC_TIME_H"
language = "C"
style = "Tag"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["stddef.h", "stdint.h", "sys/types.h"]
sys_includes = ["stddef.h", "stdint.h", "sys/types.h", "features.h"]
include_guard = "_RELIBC_UNISTD_H"
trailer = """
#include <bits/fcntl.h>
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["sys/types.h"]
sys_includes = ["sys/types.h", "features.h"]
include_guard = "_RELIBC_UTIME_H"
language = "C"
style = "Tag"
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = ["stddef.h", "stdint.h", "stdio.h", "time.h", "bits/wchar.h"]
sys_includes = ["stddef.h", "stdint.h", "stdio.h", "time.h", "bits/wchar.h", "features.h"]
include_guard = "_RELIBC_WCHAR_H"
language = "C"
style = "Type"