From 985a83ee696f91813d63786af9aa82761886bd0c Mon Sep 17 00:00:00 2001 From: jD91mZM2 <me@krake.one> Date: Fri, 6 Jul 2018 16:58:27 +0200 Subject: [PATCH] Use style = Tag everywhere possible --- src/ctype/cbindgen.toml | 1 + src/errno/cbindgen.toml | 1 + src/fcntl/cbindgen.toml | 1 + src/fenv/cbindgen.toml | 1 + src/float/cbindgen.toml | 1 + src/grp/cbindgen.toml | 1 + src/locale/cbindgen.toml | 1 + src/semaphore/cbindgen.toml | 1 + src/stdio/cbindgen.toml | 1 + src/stdlib/cbindgen.toml | 1 + src/string/cbindgen.toml | 1 + src/sys_mman/cbindgen.toml | 1 + src/sys_resource/cbindgen.toml | 3 +++ src/sys_time/cbindgen.toml | 3 +++ src/sys_utsname/cbindgen.toml | 1 + src/template/cbindgen.toml | 1 + src/time/cbindgen.toml | 4 ++++ src/unistd/cbindgen.toml | 1 + src/wchar/cbindgen.toml | 1 + src/wctype/cbindgen.toml | 1 + 20 files changed, 27 insertions(+) diff --git a/src/ctype/cbindgen.toml b/src/ctype/cbindgen.toml index db7a3a0b..4fadb844 100644 --- a/src/ctype/cbindgen.toml +++ b/src/ctype/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = [] include_guard = "_CTYPE_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/errno/cbindgen.toml b/src/errno/cbindgen.toml index 1159d8ed..b1b2ef41 100644 --- a/src/errno/cbindgen.toml +++ b/src/errno/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["bits/errno.h"] include_guard = "_ERRNO_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/fcntl/cbindgen.toml b/src/fcntl/cbindgen.toml index d49feaa8..a3dac2dd 100644 --- a/src/fcntl/cbindgen.toml +++ b/src/fcntl/cbindgen.toml @@ -2,6 +2,7 @@ sys_includes = ["stdarg.h", "sys/types.h"] include_guard = "_FCNTL_H" trailer = "#include <bits/fcntl.h>" language = "C" +style = "Tag" [defines] "target_os=linux" = "__linux__" diff --git a/src/fenv/cbindgen.toml b/src/fenv/cbindgen.toml index c369f03b..35663dc7 100644 --- a/src/fenv/cbindgen.toml +++ b/src/fenv/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["stdint.h", "sys/types.h"] include_guard = "_FENV_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/float/cbindgen.toml b/src/float/cbindgen.toml index bbb97a81..643616b3 100644 --- a/src/float/cbindgen.toml +++ b/src/float/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["sys/types.h", "bits/float.h"] include_guard = "_FLOAT_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/grp/cbindgen.toml b/src/grp/cbindgen.toml index 5b249723..97cd0141 100644 --- a/src/grp/cbindgen.toml +++ b/src/grp/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = [] include_guard = "_GRP_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/locale/cbindgen.toml b/src/locale/cbindgen.toml index 1c865da1..2d2b2b42 100644 --- a/src/locale/cbindgen.toml +++ b/src/locale/cbindgen.toml @@ -1,6 +1,7 @@ include_guard = "_LOCALE_H" trailer = "#include <bits/locale.h>" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/semaphore/cbindgen.toml b/src/semaphore/cbindgen.toml index db95e2fe..def4de4a 100644 --- a/src/semaphore/cbindgen.toml +++ b/src/semaphore/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = [] include_guard = "_SEMAPHORE_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/stdio/cbindgen.toml b/src/stdio/cbindgen.toml index 3f13ef55..a610fc3c 100644 --- a/src/stdio/cbindgen.toml +++ b/src/stdio/cbindgen.toml @@ -2,6 +2,7 @@ sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h"] include_guard = "_STDIO_H" trailer = "#include <bits/stdio.h>" language = "C" +style = "Type" [enum] prefix_with_name = true diff --git a/src/stdlib/cbindgen.toml b/src/stdlib/cbindgen.toml index c4d72d17..0c8062d6 100644 --- a/src/stdlib/cbindgen.toml +++ b/src/stdlib/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["stddef.h"] include_guard = "_STDLIB_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/string/cbindgen.toml b/src/string/cbindgen.toml index 33100dc2..b61a7804 100644 --- a/src/string/cbindgen.toml +++ b/src/string/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["stddef.h", "stdint.h"] include_guard = "_STRING_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/sys_mman/cbindgen.toml b/src/sys_mman/cbindgen.toml index 9858a56a..baaa5325 100644 --- a/src/sys_mman/cbindgen.toml +++ b/src/sys_mman/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["stdint.h", "sys/types.h"] include_guard = "_SYS_MMAN_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/sys_resource/cbindgen.toml b/src/sys_resource/cbindgen.toml index 1b33a4e4..3ed0b2f5 100644 --- a/src/sys_resource/cbindgen.toml +++ b/src/sys_resource/cbindgen.toml @@ -1,6 +1,9 @@ sys_includes = ["sys/types.h", "stdint.h", "sys/time.h"] include_guard = "_SYS_RESOURCE_H" language = "C" + +# WORKAROUND: +# Rusage is used by another header, and cbindgen does not prefix that usage with `struct` :| style = "Both" [enum] diff --git a/src/sys_time/cbindgen.toml b/src/sys_time/cbindgen.toml index e25c5404..f599d8f9 100644 --- a/src/sys_time/cbindgen.toml +++ b/src/sys_time/cbindgen.toml @@ -1,6 +1,9 @@ sys_includes = ["sys/types.h"] include_guard = "_SYS_TIME_H" language = "C" + +# WORKAROUND: +# Timeval is used by another header, and cbindgen doesn't prefix that with `struct` :| style = "Both" [enum] diff --git a/src/sys_utsname/cbindgen.toml b/src/sys_utsname/cbindgen.toml index 7429451f..967c89dc 100644 --- a/src/sys_utsname/cbindgen.toml +++ b/src/sys_utsname/cbindgen.toml @@ -1,5 +1,6 @@ include_guard = "_SYS_UTSNAME_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/template/cbindgen.toml b/src/template/cbindgen.toml index bf4ccefc..37ed9f83 100644 --- a/src/template/cbindgen.toml +++ b/src/template/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = [] include_guard = "_TEMPLATE_H" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/time/cbindgen.toml b/src/time/cbindgen.toml index 40448b8f..7864a0a5 100644 --- a/src/time/cbindgen.toml +++ b/src/time/cbindgen.toml @@ -2,6 +2,10 @@ sys_includes = ["sys/types.h", "bits/timespec.h", "stdint.h"] include_guard = "_TIME_H" language = "C" +# WORKAROUND: +# Tm is used by another header, and cbindgen doesn't prefix that with `struct` :| +style = "Both" + [enum] prefix_with_name = true diff --git a/src/unistd/cbindgen.toml b/src/unistd/cbindgen.toml index a10250c6..2c03074d 100644 --- a/src/unistd/cbindgen.toml +++ b/src/unistd/cbindgen.toml @@ -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>" language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/wchar/cbindgen.toml b/src/wchar/cbindgen.toml index 0e0aa10c..1deb8f64 100644 --- a/src/wchar/cbindgen.toml +++ b/src/wchar/cbindgen.toml @@ -2,6 +2,7 @@ sys_includes = ["stddef.h", "stdint.h", "time.h", "stdio.h" ] include_guard = "_WCHAR_H" header = "#include <bits/wchar.h>" language = "C" +style = "Type" [enum] prefix_with_name = true diff --git a/src/wctype/cbindgen.toml b/src/wctype/cbindgen.toml index f31ad97c..bd1dd437 100644 --- a/src/wctype/cbindgen.toml +++ b/src/wctype/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = [] include_guard = "_WCTYPE_H" language = "C" +style = "Tag" [enum] prefix_with_name = true -- GitLab