Debian Codegraph @

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

raw
1 #define CBINDGEN_PACKED __attribute__ ((packed))
2 #define CBINDGEN_ALIGNED(n) __attribute__ ((aligned(n)))
3
4
5 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
6 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
7 cdef extern from *:
8 ctypedef bint bool
9 ctypedef struct va_list
10
11 cdef extern from *:
12
13 ctypedef struct OpaqueAlign16Union:
14 pass
15
16 ctypedef struct OpaqueAlign1Struct:
17 pass
18
19 ctypedef struct OpaqueAlign1Union:
20 pass
21
22 ctypedef struct OpaqueAlign2Struct:
23 pass
24
25 ctypedef struct OpaqueAlign32Struct:
26 pass
27
28 ctypedef struct OpaqueAlign4Struct:
29 pass
30
31 ctypedef struct OpaqueAlign4Union:
32 pass
33
34 ctypedef struct OpaqueAlign8Struct:
35 pass
36
37 ctypedef packed struct PackedStruct:
38 uintptr_t arg1;
39 uint8_t *arg2;
40
41 ctypedef union PackedUnion:
42 uintptr_t variant1;
43 uint8_t *variant2;