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.skip_type(move |name| {
|
||||
match name {
|
||||
cfg.skip_type(move |name| match name {
|
||||
"SSIZE_T" if !gnu => true,
|
||||
"ssize_t" if !gnu => true,
|
||||
_ => false,
|
||||
}
|
||||
});
|
||||
|
||||
cfg.skip_const(move |name| {
|
||||
|
@ -1047,10 +1045,7 @@ fn test_windows(target: &str) {
|
|||
cfg.skip_fn(move |name| {
|
||||
match name {
|
||||
// FIXME: API error:
|
||||
"execv" |
|
||||
"execve" |
|
||||
"execvp" |
|
||||
"execvpe" => true,
|
||||
"execv" | "execve" | "execvp" | "execvpe" => true,
|
||||
|
||||
_ => false,
|
||||
}
|
||||
|
@ -1269,14 +1264,13 @@ fn test_solaris(target: &str) {
|
|||
"wchar.h",
|
||||
}
|
||||
|
||||
cfg.skip_const(move |name| {
|
||||
match name {
|
||||
"DT_FIFO" | "DT_CHR" | "DT_DIR" | "DT_BLK" | "DT_REG" | "DT_LNK" |
|
||||
"DT_SOCK" |"USRQUOTA" | "GRPQUOTA" | "PRIO_MIN" | "PRIO_MAX"
|
||||
=> true,
|
||||
cfg.skip_const(move |name| match name {
|
||||
"DT_FIFO" | "DT_CHR" | "DT_DIR" | "DT_BLK" | "DT_REG" | "DT_LNK"
|
||||
| "DT_SOCK" | "USRQUOTA" | "GRPQUOTA" | "PRIO_MIN" | "PRIO_MAX" => {
|
||||
true
|
||||
}
|
||||
|
||||
_ => false,
|
||||
}
|
||||
});
|
||||
|
||||
cfg.skip_fn(move |name| {
|
||||
|
@ -1617,11 +1611,14 @@ fn test_dragonflybsd(target: &str) {
|
|||
s.replace("e_nsec", ".tv_nsec")
|
||||
}
|
||||
"u64" if struct_ == "epoll_event" => "data.u64".to_string(),
|
||||
"type_" if struct_ == "input_event"
|
||||
"type_"
|
||||
if struct_ == "input_event"
|
||||
|| struct_ == "input_mask"
|
||||
|| struct_ == "ff_effect"
|
||||
|| struct_ == "rtprio" =>
|
||||
"type".to_string(),
|
||||
{
|
||||
"type".to_string()
|
||||
}
|
||||
s => s.to_string(),
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue