Browse Source

Merge branch 'style-tag' into 'master'

Use style = Tag everywhere possible

See merge request redox-os/relibc!151
jD91mZM2 6 năm trước cách đây
mục cha
commit
587ee32a30

+ 1 - 0
src/ctype/cbindgen.toml

@@ -1,6 +1,7 @@
 sys_includes = []
 include_guard = "_CTYPE_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true

+ 1 - 0
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

+ 1 - 0
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__"

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
src/grp/cbindgen.toml

@@ -1,6 +1,7 @@
 sys_includes = []
 include_guard = "_GRP_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true

+ 1 - 0
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

+ 1 - 0
src/semaphore/cbindgen.toml

@@ -1,6 +1,7 @@
 sys_includes = []
 include_guard = "_SEMAPHORE_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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

+ 3 - 0
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]

+ 3 - 0
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]

+ 1 - 0
src/sys_utsname/cbindgen.toml

@@ -1,5 +1,6 @@
 include_guard = "_SYS_UTSNAME_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true

+ 1 - 0
src/template/cbindgen.toml

@@ -1,6 +1,7 @@
 sys_includes = []
 include_guard = "_TEMPLATE_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true

+ 4 - 0
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
 

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
src/wctype/cbindgen.toml

@@ -1,6 +1,7 @@
 sys_includes = []
 include_guard = "_WCTYPE_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true