mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
840012b5e0
Fix https://github.com/rust-lang-nursery/rustfmt/issues/616. Fix https://github.com/rust-lang-nursery/rustfmt/issues/276. Close https://github.com/rust-lang-nursery/rustfmt/issues/350.
48 lines
1.1 KiB
Rust
48 lines
1.1 KiB
Rust
|
|
extern "C" {
|
|
fn c_func(x: *mut *mut libc::c_void);
|
|
|
|
fn c_func(x: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
|
|
y: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY);
|
|
|
|
#[test123]
|
|
fn foo() -> uint64_t;
|
|
|
|
pub fn bar();
|
|
}
|
|
|
|
extern "C" {
|
|
fn DMR_GetDevice(pHDev: *mut HDEV,
|
|
searchMode: DeviceSearchMode,
|
|
pSearchString: *const c_char,
|
|
devNr: c_uint,
|
|
wildcard: c_char)
|
|
-> TDMR_ERROR;
|
|
|
|
fn quux() -> (); // Post comment
|
|
}
|
|
|
|
extern "Rust" {
|
|
static ext: u32;
|
|
// Some comment.
|
|
pub static mut var: SomeType;
|
|
}
|
|
|
|
extern "C" {
|
|
fn syscall(number: libc::c_long, // comment 1
|
|
// comm 2
|
|
... /* sup? */)
|
|
-> libc::c_long;
|
|
|
|
fn foo(x: *const c_char, ...) -> libc::c_long;
|
|
}
|
|
|
|
extern "C" {
|
|
pub fn freopen(filename: *const c_char,
|
|
mode: *const c_char,
|
|
mode2: *const c_char,
|
|
mode3: *const c_char,
|
|
file: *mut FILE)
|
|
-> *mut FILE;
|
|
}
|