Debian Codegraph @

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

raw
1 #if 0
2 ''' '
3 #endif
4
5 #ifdef __cplusplus
6 template <typename T>
7 using Box = T*;
8 #endif
9
10 #if 0
11 ' '''
12 #endif
13
14
15 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
16 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
17 cdef extern from *:
18 ctypedef bint bool
19 ctypedef struct va_list
20
21 cdef extern from *:
22
23 ctypedef struct NotReprC_____i32:
24 pass
25
26 ctypedef NotReprC_____i32 Foo;
27
28 ctypedef struct MyStruct:
29 int32_t *number;
30
31 void root(const Foo *a, const MyStruct *with_box);
32
33 void drop_box(int32_t *x);
34
35 void drop_box_opt(int32_t *x);