File: rename.rs

package info (click to toggle)
rust-cbindgen 0.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: ansic: 15; makefile: 11
file content (47 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
struct A {
    x: i32,
    y: f32,
}

#[repr(C)]
struct B {
    x: i32,
    y: f32,
}

union C {
    x: i32,
    y: f32,
}

#[repr(C)]
union D {
    x: i32,
    y: f32,
}

#[repr(u8)]
enum E {
    x = 0,
    y = 1,
}

type F = A;

#[no_mangle]
pub static G: i32 = 10;

pub const H: i32 = 10;

pub const I: isize = 10 as *mut F as isize;

#[no_mangle]
pub extern "C" fn root(
    a: *const A,
    b: B,
    c: C,
    d: D,
    e: E,
    f: F,
) { }