Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/prefix.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 #define PREFIX_LEN 22
7
8 #define PREFIX_X (22 << 22)
9
10 #define PREFIX_Y (PREFIX_X + PREFIX_X)
11
12 typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
13
14 typedef int32_t PREFIX_ValuedLenArray[22];
15
16 enum PREFIX_AbsoluteFontWeight_Tag {
17 Weight,
18 Normal,
19 Bold,
20 };
21 typedef uint8_t PREFIX_AbsoluteFontWeight_Tag;
22
23 typedef union {
24 PREFIX_AbsoluteFontWeight_Tag tag;
25 struct {
26 PREFIX_AbsoluteFontWeight_Tag weight_tag;
27 float weight;
28 };
29 } PREFIX_AbsoluteFontWeight;
30
31 void root(PREFIX_NamedLenArray x, PREFIX_ValuedLenArray y, PREFIX_AbsoluteFontWeight z);