Use style = Tag everywhere possible See merge request redox-os/relibc!151
@@ -1,6 +1,7 @@
sys_includes = []
include_guard = "_CTYPE_H"
language = "C"
+style = "Tag"
[enum]
prefix_with_name = true
sys_includes = ["bits/errno.h"]
include_guard = "_ERRNO_H"
@@ -2,6 +2,7 @@ sys_includes = ["stdarg.h", "sys/types.h"]
include_guard = "_FCNTL_H"
trailer = "#include <bits/fcntl.h>"
[defines]
"target_os=linux" = "__linux__"
sys_includes = ["stdint.h", "sys/types.h"]
include_guard = "_FENV_H"
sys_includes = ["sys/types.h", "bits/float.h"]
include_guard = "_FLOAT_H"
include_guard = "_GRP_H"
include_guard = "_LOCALE_H"
trailer = "#include <bits/locale.h>"
include_guard = "_SEMAPHORE_H"
@@ -2,6 +2,7 @@ sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h"]
include_guard = "_STDIO_H"
trailer = "#include <bits/stdio.h>"
+style = "Type"
sys_includes = ["stddef.h"]
include_guard = "_STDLIB_H"
sys_includes = ["stddef.h", "stdint.h"]
include_guard = "_STRING_H"
include_guard = "_SYS_MMAN_H"
@@ -1,6 +1,9 @@
sys_includes = ["sys/types.h", "stdint.h", "sys/time.h"]
include_guard = "_SYS_RESOURCE_H"
+
+# WORKAROUND:
+# Rusage is used by another header, and cbindgen does not prefix that usage with `struct` :|
style = "Both"
sys_includes = ["sys/types.h"]
include_guard = "_SYS_TIME_H"
+# Timeval is used by another header, and cbindgen doesn't prefix that with `struct` :|
@@ -1,5 +1,6 @@
include_guard = "_SYS_UTSNAME_H"
include_guard = "_TEMPLATE_H"
@@ -2,6 +2,10 @@ sys_includes = ["sys/types.h", "bits/timespec.h", "stdint.h"]
include_guard = "_TIME_H"
+# Tm is used by another header, and cbindgen doesn't prefix that with `struct` :|
+style = "Both"
@@ -2,6 +2,7 @@ sys_includes = ["stddef.h", "stdint.h", "sys/types.h"]
include_guard = "_UNISTD_H"
trailer = "#include <bits/fcntl.h>\n#include <bits/unistd.h>"
@@ -2,6 +2,7 @@ sys_includes = ["stddef.h", "stdint.h", "time.h", "stdio.h" ]
include_guard = "_WCHAR_H"
header = "#include <bits/wchar.h>"
include_guard = "_WCTYPE_H"