cbindgen/tests/expectations/monomorph-1.compat.c
Emilio Cobos Álvarez 9b5dd80d84 Stop including <uchar.h>, and instead map Rust char to uint32_t.
This is technically a breaking change for C++, unfortunately.

Fixes #423.
2019-12-04 00:03:38 +01:00

52 lines
865 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct Bar_Bar_f32 Bar_Bar_f32;
typedef struct Bar_Foo_f32 Bar_Foo_f32;
typedef struct Bar_f32 Bar_f32;
typedef struct {
const int32_t *data;
} Foo_i32;
typedef struct {
const float *data;
} Foo_f32;
typedef struct {
const Bar_f32 *data;
} Foo_Bar_f32;
typedef struct {
const Foo_f32 *a;
const float *b;
} Tuple_Foo_f32_____f32;
typedef struct {
const float *a;
const float *b;
} Tuple_f32__f32;
typedef Tuple_f32__f32 Indirection_f32;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void root(Foo_i32 a,
Foo_f32 b,
Bar_f32 c,
Foo_Bar_f32 d,
Bar_Foo_f32 e,
Bar_Bar_f32 f,
Tuple_Foo_f32_____f32 g,
Indirection_f32 h);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus