Formatting
This commit is contained in:
parent
70e0c4e877
commit
722b3e5337
|
@ -1013,12 +1013,10 @@ fn test_windows(target: &str) {
|
||||||
|
|
||||||
cfg.fn_cname(move |name, cname| cname.unwrap_or(name).to_string());
|
cfg.fn_cname(move |name, cname| cname.unwrap_or(name).to_string());
|
||||||
|
|
||||||
cfg.skip_type(move |name| {
|
cfg.skip_type(move |name| match name {
|
||||||
match name {
|
|
||||||
"SSIZE_T" if !gnu => true,
|
"SSIZE_T" if !gnu => true,
|
||||||
"ssize_t" if !gnu => true,
|
"ssize_t" if !gnu => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
cfg.skip_const(move |name| {
|
cfg.skip_const(move |name| {
|
||||||
|
@ -1047,10 +1045,7 @@ fn test_windows(target: &str) {
|
||||||
cfg.skip_fn(move |name| {
|
cfg.skip_fn(move |name| {
|
||||||
match name {
|
match name {
|
||||||
// FIXME: API error:
|
// FIXME: API error:
|
||||||
"execv" |
|
"execv" | "execve" | "execvp" | "execvpe" => true,
|
||||||
"execve" |
|
|
||||||
"execvp" |
|
|
||||||
"execvpe" => true,
|
|
||||||
|
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
|
@ -1065,7 +1060,7 @@ fn test_redox(target: &str) {
|
||||||
let mut cfg = ctest::TestGenerator::new();
|
let mut cfg = ctest::TestGenerator::new();
|
||||||
cfg.flag("-Wno-deprecated-declarations");
|
cfg.flag("-Wno-deprecated-declarations");
|
||||||
|
|
||||||
headers!{
|
headers! {
|
||||||
cfg:
|
cfg:
|
||||||
"ctype.h",
|
"ctype.h",
|
||||||
"dirent.h",
|
"dirent.h",
|
||||||
|
@ -1131,7 +1126,7 @@ fn test_cloudabi(target: &str) {
|
||||||
let mut cfg = ctest::TestGenerator::new();
|
let mut cfg = ctest::TestGenerator::new();
|
||||||
cfg.flag("-Wno-deprecated-declarations");
|
cfg.flag("-Wno-deprecated-declarations");
|
||||||
|
|
||||||
headers!{
|
headers! {
|
||||||
cfg:
|
cfg:
|
||||||
"execinfo.h",
|
"execinfo.h",
|
||||||
"glob.h",
|
"glob.h",
|
||||||
|
@ -1206,7 +1201,7 @@ fn test_solaris(target: &str) {
|
||||||
cfg.define("__EXTENSIONS__", None);
|
cfg.define("__EXTENSIONS__", None);
|
||||||
cfg.define("_LCONV_C99", None);
|
cfg.define("_LCONV_C99", None);
|
||||||
|
|
||||||
headers!{
|
headers! {
|
||||||
cfg:
|
cfg:
|
||||||
"ctype.h",
|
"ctype.h",
|
||||||
"dirent.h",
|
"dirent.h",
|
||||||
|
@ -1269,14 +1264,13 @@ fn test_solaris(target: &str) {
|
||||||
"wchar.h",
|
"wchar.h",
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.skip_const(move |name| {
|
cfg.skip_const(move |name| match name {
|
||||||
match name {
|
"DT_FIFO" | "DT_CHR" | "DT_DIR" | "DT_BLK" | "DT_REG" | "DT_LNK"
|
||||||
"DT_FIFO" | "DT_CHR" | "DT_DIR" | "DT_BLK" | "DT_REG" | "DT_LNK" |
|
| "DT_SOCK" | "USRQUOTA" | "GRPQUOTA" | "PRIO_MIN" | "PRIO_MAX" => {
|
||||||
"DT_SOCK" |"USRQUOTA" | "GRPQUOTA" | "PRIO_MIN" | "PRIO_MAX"
|
true
|
||||||
=> true,
|
}
|
||||||
|
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
cfg.skip_fn(move |name| {
|
cfg.skip_fn(move |name| {
|
||||||
|
@ -1617,11 +1611,14 @@ fn test_dragonflybsd(target: &str) {
|
||||||
s.replace("e_nsec", ".tv_nsec")
|
s.replace("e_nsec", ".tv_nsec")
|
||||||
}
|
}
|
||||||
"u64" if struct_ == "epoll_event" => "data.u64".to_string(),
|
"u64" if struct_ == "epoll_event" => "data.u64".to_string(),
|
||||||
"type_" if struct_ == "input_event"
|
"type_"
|
||||||
|
if struct_ == "input_event"
|
||||||
|| struct_ == "input_mask"
|
|| struct_ == "input_mask"
|
||||||
|| struct_ == "ff_effect"
|
|| struct_ == "ff_effect"
|
||||||
|| struct_ == "rtprio" =>
|
|| struct_ == "rtprio" =>
|
||||||
"type".to_string(),
|
{
|
||||||
|
"type".to_string()
|
||||||
|
}
|
||||||
s => s.to_string(),
|
s => s.to_string(),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue