Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/annotation.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 m0;
16
17 ctypedef struct B:
18 int32_t x;
19 float y;
20
21 cdef enum:
22 Foo,
23 Bar,
24 Baz,
25 ctypedef uint8_t F_Tag;
26
27 ctypedef struct Bar_Body:
28 F_Tag tag;
29 uint8_t x;
30 int16_t y;
31
32 ctypedef union F:
33 F_Tag tag;
34 int16_t foo;
35 Bar_Body bar;
36
37 cdef enum:
38 Hello,
39 There,
40 Everyone,
41 ctypedef uint8_t H_Tag;
42
43 ctypedef struct There_Body:
44 uint8_t x;
45 int16_t y;
46
47 ctypedef struct H:
48 H_Tag tag;
49 int16_t hello;
50 There_Body there;
51
52 void root(A x, B y, C z, F f, H h);