From 985a83ee696f91813d63786af9aa82761886bd0c Mon Sep 17 00:00:00 2001 From: jD91mZM2 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 db7a3a0bc8..4fadb84477 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 1159d8eda7..b1b2ef4144 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 d49feaa87a..a3dac2dda6 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 " language = "C" +style = "Tag" [defines] "target_os=linux" = "__linux__" diff --git a/src/fenv/cbindgen.toml b/src/fenv/cbindgen.toml index c369f03b34..35663dc7bc 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 bbb97a8139..643616b31e 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 5b249723f8..97cd014124 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 1c865da186..2d2b2b425c 100644 --- a/src/locale/cbindgen.toml +++ b/src/locale/cbindgen.toml @@ -1,6 +1,7 @@ include_guard = "_LOCALE_H" trailer = "#include " language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/semaphore/cbindgen.toml b/src/semaphore/cbindgen.toml index db95e2fec9..def4de4a95 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 3f13ef55cb..a610fc3c9c 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 " language = "C" +style = "Type" [enum] prefix_with_name = true diff --git a/src/stdlib/cbindgen.toml b/src/stdlib/cbindgen.toml index c4d72d172a..0c8062d6e7 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 33100dc274..b61a780419 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 9858a56ae2..baaa532574 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 1b33a4e438..3ed0b2f5da 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 e25c54043f..f599d8f99d 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 7429451f54..967c89dc9a 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 bf4ccefced..37ed9f83d8 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 40448b8f89..7864a0a54c 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 a10250c6dd..2c03074df9 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 \n#include " language = "C" +style = "Tag" [enum] prefix_with_name = true diff --git a/src/wchar/cbindgen.toml b/src/wchar/cbindgen.toml index 0e0aa10c84..1deb8f6475 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 " language = "C" +style = "Type" [enum] prefix_with_name = true diff --git a/src/wctype/cbindgen.toml b/src/wctype/cbindgen.toml index f31ad97cf1..bd1dd437f1 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