Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/enum_self.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 Foo_Bar:
10 const int32_t *something;
11
12 cdef enum:
13 Min,
14 Max,
15 Other,
16 ctypedef uint8_t Bar_Tag;
17
18 ctypedef union Bar:
19 Bar_Tag tag;
20 Foo_Bar min;
21 Foo_Bar max;
22
23 void root(Bar b);