Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/swift_name.pyx

raw
1 #define CF_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
2
3 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
4 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
5 cdef extern from *:
6 ctypedef bint bool
7 ctypedef struct va_list
8
9 cdef extern from *:
10
11 ctypedef struct Opaque:
12 pass
13
14 ctypedef struct SelfTypeTestStruct:
15 uint8_t times;
16
17 ctypedef struct PointerToOpaque:
18 Opaque *ptr;
19
20 void rust_print_hello_world();
21
22 void SelfTypeTestStruct_should_exist_ref(const SelfTypeTestStruct *self);
23
24 void SelfTypeTestStruct_should_exist_ref_mut(SelfTypeTestStruct *self);
25
26 void SelfTypeTestStruct_should_not_exist_box(SelfTypeTestStruct *self);
27
28 SelfTypeTestStruct *SelfTypeTestStruct_should_not_exist_return_box();
29
30 void SelfTypeTestStruct_should_exist_annotated_self(SelfTypeTestStruct self);
31
32 void SelfTypeTestStruct_should_exist_annotated_mut_self(SelfTypeTestStruct self);
33
34 void SelfTypeTestStruct_should_exist_annotated_by_name(SelfTypeTestStruct self);
35
36 void SelfTypeTestStruct_should_exist_annotated_mut_by_name(SelfTypeTestStruct self);
37
38 void SelfTypeTestStruct_should_exist_unannotated(SelfTypeTestStruct self);
39
40 void SelfTypeTestStruct_should_exist_mut_unannotated(SelfTypeTestStruct self);
41
42 void free_function_should_exist_ref(const SelfTypeTestStruct *test_struct);
43
44 void free_function_should_exist_ref_mut(SelfTypeTestStruct *test_struct);
45
46 void unnamed_argument(SelfTypeTestStruct*);
47
48 void free_function_should_not_exist_box(SelfTypeTestStruct *boxed);
49
50 void free_function_should_exist_annotated_by_name(SelfTypeTestStruct test_struct);
51
52 void free_function_should_exist_annotated_mut_by_name(SelfTypeTestStruct test_struct);
53
54 PointerToOpaque PointerToOpaque_create(uint8_t times);
55
56 void PointerToOpaque_sayHello(PointerToOpaque self);