2015-09-21 18:02:45 +00:00
|
|
|
|
2015-11-22 15:07:38 +00:00
|
|
|
extern "C" {
|
2015-09-21 18:02:45 +00:00
|
|
|
fn c_func(x: *mut *mut libc::c_void);
|
|
|
|
|
|
|
|
fn c_func(x: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
|
|
|
|
y: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY);
|
|
|
|
|
|
|
|
#[test123]
|
|
|
|
fn foo() -> uint64_t;
|
|
|
|
|
|
|
|
pub fn bar();
|
|
|
|
}
|
|
|
|
|
2015-11-22 15:07:38 +00:00
|
|
|
extern "C" {
|
2015-09-21 18:02:45 +00:00
|
|
|
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;
|
|
|
|
}
|
2015-10-10 20:53:20 +00:00
|
|
|
|
2015-11-22 15:07:38 +00:00
|
|
|
extern "C" {
|
2015-10-10 20:53:20 +00:00
|
|
|
fn syscall(number: libc::c_long, // comment 1
|
|
|
|
// comm 2
|
|
|
|
... /* sup? */)
|
|
|
|
-> libc::c_long;
|
|
|
|
|
|
|
|
fn foo(x: *const c_char, ...) -> libc::c_long;
|
|
|
|
}
|
2015-10-16 20:05:44 +00:00
|
|
|
|
2015-11-22 15:07:38 +00:00
|
|
|
extern "C" {
|
2015-10-16 20:05:44 +00:00
|
|
|
pub fn freopen(filename: *const c_char,
|
|
|
|
mode: *const c_char,
|
|
|
|
mode2: *const c_char,
|
|
|
|
mode3: *const c_char,
|
|
|
|
file: *mut FILE)
|
|
|
|
-> *mut FILE;
|
|
|
|
}
|
2016-03-14 05:55:55 +00:00
|
|
|
|
|
|
|
extern "C" {}
|