Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/derive_ostream.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 cdef enum:
10 X # = 2,
11 Y,
12 ctypedef uint32_t C;
13
14 ctypedef struct A:
15 int32_t _0;
16
17 ctypedef struct B:
18 int32_t x;
19 float y;
20
21 ctypedef struct D:
22 uint8_t List;
23 uintptr_t Of;
24 B Things;
25
26 cdef enum:
27 Foo,
28 Bar,
29 Baz,
30 ctypedef uint8_t F_Tag;
31
32 ctypedef struct Bar_Body:
33 F_Tag tag;
34 uint8_t x;
35 int16_t y;
36
37 ctypedef union F:
38 F_Tag tag;
39 int16_t foo;
40 Bar_Body bar;
41
42 cdef enum:
43 Hello,
44 There,
45 Everyone,
46 ctypedef uint8_t H_Tag;
47
48 ctypedef struct There_Body:
49 uint8_t x;
50 int16_t y;
51
52 ctypedef struct H:
53 H_Tag tag;
54 int16_t hello;
55 There_Body there;
56
57 cdef enum:
58 ThereAgain,
59 SomethingElse,
60 ctypedef uint8_t I_Tag;
61
62 ctypedef struct ThereAgain_Body:
63 uint8_t x;
64 int16_t y;
65
66 ctypedef struct I:
67 I_Tag tag;
68 ThereAgain_Body there_again;
69
70 void root(A a, B b, C c, D d, F f, H h, I i);