Files
cbindgen/tests/expectations/struct.c
T
Ingvar Stepanyan f0bef30daa Simplify opaque struct output in C
There is no need for a separate forward struct declaration, just like in case with regular structures.
2017-11-16 23:26:07 -06:00

28 lines
399 B
C

#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
typedef struct Opaque Opaque;
typedef struct {
int32_t x;
float y;
} Normal;
typedef struct {
int32_t x;
float y;
} NormalWithZST;
typedef struct {
int32_t m0;
float m1;
} TupleRenamed;
typedef struct {
int32_t x;
float y;
} TupleNamed;
void root(Opaque *a, Normal b, NormalWithZST c, TupleRenamed d, TupleNamed e);