Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/struct_literal.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 Bar:
10 pass
11
12 ctypedef struct Foo:
13 int32_t a;
14 uint32_t b;
15 const Foo Foo_FOO # = <Foo>{ 42, 47 }
16 const Foo Foo_FOO2 # = <Foo>{ 42, 47 }
17 const Foo Foo_FOO3 # = <Foo>{ 42, 47 }
18
19
20 const Foo BAR # = <Foo>{ 42, 1337 }
21
22
23
24 void root(Foo x, Bar bar);