cbindgen/tests/expectations/simplify-option-ptr.c
yingrueil 0163b83d76 bindgen: enable "void prototype" while writing struct field
This fixs typedef's signature in C as well because a typedef statement is
constructed like, "typedef " + field_like_string.
2020-02-15 13:03:44 +08:00

21 lines
317 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct Opaque Opaque;
typedef struct {
const Opaque *x;
Opaque *y;
void (*z)(void);
} Foo;
typedef union {
const Opaque *x;
Opaque *y;
void (*z)(void);
} Bar;
void root(const Opaque *a, Opaque *b, Foo c, Bar d);