Debian Codegraph @

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

raw
1 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
2 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
3 cdef extern from *:
4 ctypedef bint bool
5 ctypedef struct va_list
6
7 cdef extern from *:
8
9 ctypedef struct ABC:
10 float a;
11 uint32_t b;
12 uint32_t c;
13 const ABC ABC_abc # = <ABC>{ 1.0, 2, 3 }
14 const ABC ABC_bac # = <ABC>{ 1.0, 2, 3 }
15 const ABC ABC_cba # = <ABC>{ 1.0, 2, 3 }
16
17 ctypedef struct BAC:
18 uint32_t b;
19 float a;
20 int32_t c;
21 const BAC BAC_abc # = <BAC>{ 1, 2.0, 3 }
22 const BAC BAC_bac # = <BAC>{ 1, 2.0, 3 }
23 const BAC BAC_cba # = <BAC>{ 1, 2.0, 3 }
24
25 void root(ABC a1, BAC a2);