Update test expecations based on newline change
This commit is contained in:
parent
af95d87c05
commit
24f69ecc9b
@ -12,11 +12,9 @@ enum Status
|
||||
Err,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t Status;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int32_t a;
|
||||
float b;
|
||||
@ -43,15 +41,11 @@ typedef int32_t Unit;
|
||||
typedef Status SpecialStatus;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(IntFoo x, DoubleFoo y, Unit z, SpecialStatus w);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,11 +12,9 @@ enum C
|
||||
Y,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t C;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int32_t m0;
|
||||
} A;
|
||||
@ -36,11 +34,9 @@ enum F_Tag
|
||||
Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t F_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
F_Tag tag;
|
||||
int16_t _0;
|
||||
@ -68,11 +64,9 @@ enum H_Tag
|
||||
Everyone,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t H_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int16_t _0;
|
||||
} Hello_Body;
|
||||
@ -91,15 +85,11 @@ typedef struct {
|
||||
} H;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(A x, B y, C z, F f, H h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -6,10 +6,6 @@
|
||||
typedef enum {
|
||||
A,
|
||||
} Foo_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
float _0[20];
|
||||
@ -23,15 +19,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -18,11 +18,9 @@ enum H_Tag
|
||||
H_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t H_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int16_t _0;
|
||||
} H_Foo_Body;
|
||||
@ -50,11 +48,9 @@ enum J_Tag
|
||||
J_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t J_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int16_t _0;
|
||||
} J_Foo_Body;
|
||||
@ -82,11 +78,9 @@ enum K_Tag
|
||||
K_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t K_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
K_Tag tag;
|
||||
int16_t _0;
|
||||
@ -105,15 +99,11 @@ typedef union {
|
||||
} K;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void foo(H h, I i, J j, K k);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -10,15 +10,11 @@ typedef struct {
|
||||
#define Foo_ZO 3.14
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -17,15 +17,11 @@ typedef struct {
|
||||
#define StyleAlignFlags_FLEX_START (StyleAlignFlags){ .bits = 1 << 3 }
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(StyleAlignFlags flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -17,15 +17,11 @@ typedef struct {
|
||||
#define AlignFlags_FLEX_START (AlignFlags){ .bits = 1 << 3 }
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(AlignFlags flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,10 +8,6 @@ typedef enum {
|
||||
Bar1,
|
||||
Baz1,
|
||||
} MyCLikeEnum;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int32_t i;
|
||||
@ -25,10 +21,6 @@ typedef enum {
|
||||
Bar,
|
||||
Baz,
|
||||
} MyFancyEnum_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int32_t _0;
|
||||
@ -56,15 +48,11 @@ typedef union {
|
||||
} MyUnion;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(MyFancyStruct s, MyFancyEnum e, MyCLikeEnum c, MyUnion u);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,11 +12,9 @@ enum Status
|
||||
Err,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t Status;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Dep {
|
||||
int32_t a;
|
||||
float b;
|
||||
@ -43,15 +41,11 @@ typedef int32_t Unit;
|
||||
typedef Status SpecialStatus;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(IntFoo x, DoubleFoo y, Unit z, SpecialStatus w);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,11 +12,9 @@ enum C
|
||||
Y,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t C;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct A {
|
||||
int32_t m0;
|
||||
} A;
|
||||
@ -36,11 +34,9 @@ enum F_Tag
|
||||
Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t F_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Foo_Body {
|
||||
F_Tag tag;
|
||||
int16_t _0;
|
||||
@ -68,11 +64,9 @@ enum H_Tag
|
||||
Everyone,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t H_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Hello_Body {
|
||||
int16_t _0;
|
||||
} Hello_Body;
|
||||
@ -91,15 +85,11 @@ typedef struct H {
|
||||
} H;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(A x, B y, C z, F f, H h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -6,10 +6,6 @@
|
||||
typedef enum Foo_Tag {
|
||||
A,
|
||||
} Foo_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct A_Body {
|
||||
float _0[20];
|
||||
@ -23,15 +19,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -18,11 +18,9 @@ enum H_Tag
|
||||
H_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t H_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct H_Foo_Body {
|
||||
int16_t _0;
|
||||
} H_Foo_Body;
|
||||
@ -50,11 +48,9 @@ enum J_Tag
|
||||
J_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t J_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct J_Foo_Body {
|
||||
int16_t _0;
|
||||
} J_Foo_Body;
|
||||
@ -82,11 +78,9 @@ enum K_Tag
|
||||
K_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t K_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct K_Foo_Body {
|
||||
K_Tag tag;
|
||||
int16_t _0;
|
||||
@ -105,15 +99,11 @@ typedef union K {
|
||||
} K;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void foo(H h, I i, J j, K k);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -10,15 +10,11 @@ typedef struct Foo {
|
||||
#define Foo_ZO 3.14
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -17,15 +17,11 @@ typedef struct StyleAlignFlags {
|
||||
#define StyleAlignFlags_FLEX_START (StyleAlignFlags){ .bits = 1 << 3 }
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(StyleAlignFlags flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -17,15 +17,11 @@ typedef struct AlignFlags {
|
||||
#define AlignFlags_FLEX_START (AlignFlags){ .bits = 1 << 3 }
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(AlignFlags flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,10 +8,6 @@ typedef enum MyCLikeEnum {
|
||||
Bar1,
|
||||
Baz1,
|
||||
} MyCLikeEnum;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct MyFancyStruct {
|
||||
int32_t i;
|
||||
@ -25,10 +21,6 @@ typedef enum MyFancyEnum_Tag {
|
||||
Bar,
|
||||
Baz,
|
||||
} MyFancyEnum_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Bar_Body {
|
||||
int32_t _0;
|
||||
@ -56,15 +48,11 @@ typedef union MyUnion {
|
||||
} MyUnion;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(MyFancyStruct s, MyFancyEnum e, MyCLikeEnum c, MyUnion u);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,9 +34,7 @@ typedef void (*N[16])(int32_t, int32_t);
|
||||
typedef void (*P)(int32_t named1st, bool, bool named3rd, int32_t _);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void (*O(void))(void);
|
||||
@ -44,7 +42,5 @@ void (*O(void))(void);
|
||||
void root(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l, M m, N n, P p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,15 +34,11 @@ typedef struct Root {
|
||||
} Root;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Root a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -14,10 +14,8 @@ enum BarType
|
||||
C,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t BarType;
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif
|
||||
|
||||
#if (defined(PLATFORM_UNIX) && defined(X11))
|
||||
@ -31,10 +29,8 @@ enum FooType
|
||||
C,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t FooType;
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif
|
||||
|
||||
#if (defined(PLATFORM_UNIX) && defined(X11))
|
||||
@ -54,9 +50,7 @@ typedef struct BarHandle {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#if (defined(PLATFORM_UNIX) && defined(X11))
|
||||
@ -68,7 +62,5 @@ void root(BarHandle a);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -28,15 +28,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -19,11 +19,9 @@ enum Bar_Tag
|
||||
FooParen,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Bar_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Bazz_Body {
|
||||
Bar_Tag tag;
|
||||
Foo named;
|
||||
@ -49,15 +47,11 @@ typedef union Bar {
|
||||
} Bar;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
Foo root(Bar aBar);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,11 +12,9 @@ enum FillRule
|
||||
B,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t FillRule;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
/**
|
||||
* This will have a destructor manually implemented via variant_body, and
|
||||
* similarly a Drop impl in Rust.
|
||||
@ -53,11 +51,9 @@ enum Foo_u32_Tag
|
||||
Slice4_u32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Foo_u32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Polygon1_Body_u32 {
|
||||
Polygon_u32 _0;
|
||||
} Polygon1_Body_u32;
|
||||
@ -109,11 +105,9 @@ enum Baz_i32_Tag
|
||||
Slice24_i32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Baz_i32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Polygon21_Body_i32 {
|
||||
Baz_i32_Tag tag;
|
||||
Polygon_i32 _0;
|
||||
@ -159,11 +153,9 @@ enum Taz_Tag
|
||||
Taz1,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Taz_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Taz1_Body {
|
||||
Taz_Tag tag;
|
||||
int32_t _0;
|
||||
@ -183,11 +175,9 @@ enum Tazz_Tag
|
||||
Taz2,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Tazz_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Taz2_Body {
|
||||
Tazz_Tag tag;
|
||||
int32_t _0;
|
||||
@ -199,15 +189,11 @@ typedef union Tazz {
|
||||
} Tazz;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(const Foo_u32 *a, const Baz_i32 *b, const Taz *c, Tazz d);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -27,11 +27,9 @@ enum DisplayItem_Tag
|
||||
ClearScreen,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t DisplayItem_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Fill_Body {
|
||||
DisplayItem_Tag tag;
|
||||
Rect _0;
|
||||
@ -51,15 +49,11 @@ typedef union DisplayItem {
|
||||
} DisplayItem;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
bool push_item(DisplayItem item);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,9 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
@ -15,7 +13,5 @@ extern "C" {
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,16 +4,12 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
// The root of all evil.
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,9 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
@ -15,7 +13,5 @@ extern "C" {
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -14,11 +14,9 @@ enum A
|
||||
a4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t A;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum B
|
||||
#ifdef __cplusplus
|
||||
: uint16_t
|
||||
@ -30,11 +28,9 @@ enum B
|
||||
b4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint16_t B;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum C
|
||||
#ifdef __cplusplus
|
||||
: uint8_t
|
||||
@ -46,11 +42,9 @@ enum C
|
||||
c4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t C;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum D
|
||||
#ifdef __cplusplus
|
||||
: uintptr_t
|
||||
@ -62,11 +56,9 @@ enum D
|
||||
d4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uintptr_t D;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum E
|
||||
#ifdef __cplusplus
|
||||
: intptr_t
|
||||
@ -78,21 +70,15 @@ enum E
|
||||
e4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef intptr_t E;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef enum K {
|
||||
k1,
|
||||
k2,
|
||||
k3,
|
||||
k4,
|
||||
} K;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum L
|
||||
#ifdef __cplusplus
|
||||
@ -104,11 +90,9 @@ enum L
|
||||
l3 = 1,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef int8_t L;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct I I;
|
||||
|
||||
typedef struct J J;
|
||||
@ -125,11 +109,9 @@ enum F_Tag
|
||||
Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t F_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Foo_Body {
|
||||
F_Tag tag;
|
||||
int16_t _0;
|
||||
@ -152,10 +134,6 @@ typedef enum G_Tag {
|
||||
G_Bar,
|
||||
G_Baz,
|
||||
} G_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct G_Foo_Body {
|
||||
int16_t _0;
|
||||
@ -184,11 +162,9 @@ enum H_Tag
|
||||
H_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t H_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct H_Foo_Body {
|
||||
int16_t _0;
|
||||
} H_Foo_Body;
|
||||
@ -207,15 +183,11 @@ typedef struct H {
|
||||
} H;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Opaque *o, A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -94,9 +94,7 @@ typedef struct TypedTransform2D_f32__LayoutUnit__UnknownUnit {
|
||||
} TypedTransform2D_f32__LayoutUnit__UnknownUnit;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(TypedLength_f32__UnknownUnit length_a,
|
||||
@ -123,7 +121,5 @@ void root(TypedLength_f32__UnknownUnit length_a,
|
||||
TypedTransform2D_f32__LayoutUnit__UnknownUnit transform_b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,9 +8,7 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void extra_debug_fn(void);
|
||||
@ -18,7 +16,5 @@ void extra_debug_fn(void);
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,9 +8,7 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void cbindgen(void);
|
||||
@ -20,7 +18,5 @@ void extra_debug_fn(void);
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,9 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void first(void);
|
||||
@ -14,7 +12,5 @@ void first(void);
|
||||
void second(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -9,9 +9,7 @@ typedef struct Normal {
|
||||
} Normal;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
extern void bar(Normal a);
|
||||
@ -19,7 +17,5 @@ extern void bar(Normal a);
|
||||
extern int32_t foo(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct ExtType {
|
||||
} ExtType;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void consume_ext(ExtType _ext);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct Fns {
|
||||
} Fns;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Fns _fns);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,7 +12,5 @@ enum OnlyThisShouldBeGenerated
|
||||
Bar,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t OnlyThisShouldBeGenerated;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
@ -12,7 +12,5 @@ enum StyleOnlyThisShouldBeGenerated
|
||||
Bar,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t StyleOnlyThisShouldBeGenerated;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
@ -8,15 +8,11 @@ typedef struct A {
|
||||
} A;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(A _a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -24,9 +24,7 @@ typedef struct Foo {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#if defined(BAR)
|
||||
@ -38,7 +36,5 @@ void foo(const Foo *foo);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -10,15 +10,11 @@ typedef struct ExportMe {
|
||||
} ExportMe;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void export_me(ExportMe *val);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,9 +34,7 @@ typedef struct Tuple_f32__f32 {
|
||||
typedef Tuple_f32__f32 Indirection_f32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo_i32 a,
|
||||
@ -49,7 +47,5 @@ void root(Foo_i32 a,
|
||||
Indirection_f32 h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -18,9 +18,7 @@ typedef struct List_A {
|
||||
} List_A;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void bar(List_B b);
|
||||
@ -28,7 +26,5 @@ void bar(List_B b);
|
||||
void foo(List_A a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,9 +34,7 @@ typedef union Tuple_f32__f32 {
|
||||
typedef Tuple_f32__f32 Indirection_f32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo_i32 a,
|
||||
@ -49,7 +47,5 @@ void root(Foo_i32 a,
|
||||
Indirection_f32 h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -17,11 +17,9 @@ enum MaybeOwnedPtr_i32_Tag
|
||||
None_i32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t MaybeOwnedPtr_i32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct Owned_Body_i32 {
|
||||
int32_t *_0;
|
||||
} Owned_Body_i32;
|
||||
@ -38,15 +36,11 @@ typedef struct MUST_USE_STRUCT OwnedPtr_i32 {
|
||||
} OwnedPtr_i32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
MUST_USE_FUNC MaybeOwnedPtr_i32 maybe_consume(OwnedPtr_i32 input);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -1,13 +1,9 @@
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -18,15 +18,11 @@ typedef struct Foo_u64 {
|
||||
} Foo_u64;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(int32_t *arg, Foo_u64 *foo, Opaque **d);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -19,11 +19,9 @@ enum PREFIX_AbsoluteFontWeight_Tag
|
||||
Bold,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t PREFIX_AbsoluteFontWeight_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct PREFIX_Weight_Body {
|
||||
PREFIX_AbsoluteFontWeight_Tag tag;
|
||||
float _0;
|
||||
@ -35,15 +33,11 @@ typedef union PREFIX_AbsoluteFontWeight {
|
||||
} PREFIX_AbsoluteFontWeight;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(PREFIX_NamedLenArray x, PREFIX_ValuedLenArray y, PREFIX_AbsoluteFontWeight z);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct PREFIXFoo {
|
||||
#define PREFIXBAR (PREFIXFoo){ .a = 42, .b = 1337 }
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(PREFIXFoo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -16,15 +16,11 @@ typedef struct PREFIXFoo {
|
||||
#define PREFIXVAL (PREFIXFoo){ .a = 42, .b = 1337, .bar = (PREFIXBar){ .a = 323 } }
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(PREFIXFoo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -30,9 +30,7 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void no_extern_func(ContainsNoExternTy a);
|
||||
@ -42,7 +40,5 @@ void renamed_func(RenamedTy a);
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -14,11 +14,9 @@ enum C_E
|
||||
y = 1,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t C_E;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct C_A C_A;
|
||||
|
||||
typedef struct C_C C_C;
|
||||
@ -36,9 +34,7 @@ typedef union C_D {
|
||||
typedef C_A C_F;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
extern const int32_t G;
|
||||
@ -46,7 +42,5 @@ extern const int32_t G;
|
||||
void root(const C_A *a, C_AwesomeB b, C_C c, C_D d, C_E e, C_F f);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -11,15 +11,11 @@ typedef struct B {
|
||||
} B;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(const StyleA *a, B b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -21,11 +21,9 @@ enum C_Tag
|
||||
D,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t C_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct D_Body {
|
||||
int32_t namespace_;
|
||||
float float_;
|
||||
@ -39,15 +37,11 @@ typedef struct C {
|
||||
} C;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(A a, B b, C c, int32_t namespace_, float float_);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -18,15 +18,11 @@ typedef union Bar {
|
||||
} Bar;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(const Opaque *a, Opaque *b, Foo c, Bar d);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -10,9 +10,7 @@ typedef struct Foo {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
extern const Bar BAR;
|
||||
@ -24,7 +22,5 @@ extern const int32_t NUMBER;
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -10,15 +10,11 @@ typedef struct Result_i32__String Result_i32__String;
|
||||
typedef struct Vec_String Vec_String;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(const Vec_String *a, const Option_i32 *b, const Result_i32__String *c);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -26,15 +26,11 @@ typedef struct TupleNamed {
|
||||
} TupleNamed;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Opaque *a, Normal b, NormalWithZST c, TupleRenamed d, TupleNamed e);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -19,15 +19,11 @@ typedef struct Foo {
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x, Bar bar);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -24,11 +24,9 @@ enum StyleFoo_i32_Tag
|
||||
Bazz_i32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t StyleFoo_i32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct StyleFoo_Body_i32 {
|
||||
StyleFoo_i32_Tag tag;
|
||||
int32_t x;
|
||||
@ -59,10 +57,6 @@ typedef enum StyleBar_i32_Tag {
|
||||
Bar3_i32,
|
||||
Bar4_i32,
|
||||
} StyleBar_i32_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct StyleBar1_Body_i32 {
|
||||
int32_t x;
|
||||
@ -99,10 +93,6 @@ typedef enum StyleBar_u32_Tag {
|
||||
Bar3_u32,
|
||||
Bar4_u32,
|
||||
} StyleBar_u32_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct StyleBar1_Body_u32 {
|
||||
int32_t x;
|
||||
@ -138,11 +128,9 @@ enum StyleBaz_Tag
|
||||
Baz3,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t StyleBaz_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct StyleBaz1_Body {
|
||||
StyleBaz_Tag tag;
|
||||
StyleBar_u32 _0;
|
||||
@ -169,11 +157,9 @@ enum StyleTaz_Tag
|
||||
Taz3,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t StyleTaz_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct StyleTaz1_Body {
|
||||
StyleBar_u32 _0;
|
||||
} StyleTaz1_Body;
|
||||
@ -191,9 +177,7 @@ typedef struct StyleTaz {
|
||||
} StyleTaz;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void foo(const StyleFoo_i32 *foo,
|
||||
@ -202,7 +186,5 @@ void foo(const StyleFoo_i32 *foo,
|
||||
const StyleTaz *taz);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -26,9 +26,7 @@ typedef uint32_t TransparentPrimitiveWithAssociatedConstants;
|
||||
#define EnumWithAssociatedConstantInImpl_TEN 10
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(TransparentComplexWrappingStructTuple a,
|
||||
@ -41,7 +39,5 @@ void root(TransparentComplexWrappingStructTuple a,
|
||||
EnumWithAssociatedConstantInImpl h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -11,15 +11,11 @@ typedef struct Foo_i32__i32 {
|
||||
typedef Foo_i32__i32 IntFoo_i32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(IntFoo_i32 a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -16,15 +16,11 @@ typedef union NormalWithZST {
|
||||
} NormalWithZST;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Opaque *a, Normal b, NormalWithZST c);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,15 +4,11 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
int32_t va_list_test(va_list ap);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct ExtType {
|
||||
} ExtType;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void consume_ext(ExtType _ext);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,9 +34,7 @@ typedef void (*N[16])(int32_t, int32_t);
|
||||
typedef void (*P)(int32_t named1st, bool, bool named3rd, int32_t _);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void (*O(void))(void);
|
||||
@ -44,7 +42,5 @@ void (*O(void))(void);
|
||||
void root(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l, M m, N n, P p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,15 +34,11 @@ typedef struct {
|
||||
} Root;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Root a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -14,10 +14,8 @@ enum BarType
|
||||
C,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t BarType;
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif
|
||||
|
||||
#if (defined(PLATFORM_UNIX) && defined(X11))
|
||||
@ -31,10 +29,8 @@ enum FooType
|
||||
C,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t FooType;
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif
|
||||
|
||||
#if (defined(PLATFORM_UNIX) && defined(X11))
|
||||
@ -54,9 +50,7 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#if (defined(PLATFORM_UNIX) && defined(X11))
|
||||
@ -68,7 +62,5 @@ void root(BarHandle a);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -28,15 +28,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -19,11 +19,9 @@ enum Bar_Tag
|
||||
FooParen,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Bar_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
Bar_Tag tag;
|
||||
Foo named;
|
||||
@ -49,15 +47,11 @@ typedef union {
|
||||
} Bar;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
Foo root(Bar aBar);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,11 +12,9 @@ enum FillRule
|
||||
B,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t FillRule;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
/**
|
||||
* This will have a destructor manually implemented via variant_body, and
|
||||
* similarly a Drop impl in Rust.
|
||||
@ -53,11 +51,9 @@ enum Foo_u32_Tag
|
||||
Slice4_u32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Foo_u32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
Polygon_u32 _0;
|
||||
} Polygon1_Body_u32;
|
||||
@ -109,11 +105,9 @@ enum Baz_i32_Tag
|
||||
Slice24_i32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Baz_i32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
Baz_i32_Tag tag;
|
||||
Polygon_i32 _0;
|
||||
@ -159,11 +153,9 @@ enum Taz_Tag
|
||||
Taz1,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Taz_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
Taz_Tag tag;
|
||||
int32_t _0;
|
||||
@ -183,11 +175,9 @@ enum Tazz_Tag
|
||||
Taz2,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t Tazz_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
Tazz_Tag tag;
|
||||
int32_t _0;
|
||||
@ -199,15 +189,11 @@ typedef union {
|
||||
} Tazz;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(const Foo_u32 *a, const Baz_i32 *b, const Taz *c, Tazz d);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -27,11 +27,9 @@ enum DisplayItem_Tag
|
||||
ClearScreen,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t DisplayItem_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
DisplayItem_Tag tag;
|
||||
Rect _0;
|
||||
@ -51,15 +49,11 @@ typedef union {
|
||||
} DisplayItem;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
bool push_item(DisplayItem item);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,9 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
@ -15,7 +13,5 @@ extern "C" {
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,16 +4,12 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
// The root of all evil.
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,9 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
@ -15,7 +13,5 @@ extern "C" {
|
||||
void root(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -14,11 +14,9 @@ enum A
|
||||
a4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint32_t A;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum B
|
||||
#ifdef __cplusplus
|
||||
: uint16_t
|
||||
@ -30,11 +28,9 @@ enum B
|
||||
b4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint16_t B;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum C
|
||||
#ifdef __cplusplus
|
||||
: uint8_t
|
||||
@ -46,11 +42,9 @@ enum C
|
||||
c4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t C;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum D
|
||||
#ifdef __cplusplus
|
||||
: uintptr_t
|
||||
@ -62,11 +56,9 @@ enum D
|
||||
d4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uintptr_t D;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum E
|
||||
#ifdef __cplusplus
|
||||
: intptr_t
|
||||
@ -78,21 +70,15 @@ enum E
|
||||
e4 = 5,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef intptr_t E;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef enum {
|
||||
k1,
|
||||
k2,
|
||||
k3,
|
||||
k4,
|
||||
} K;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
enum L
|
||||
#ifdef __cplusplus
|
||||
@ -104,11 +90,9 @@ enum L
|
||||
l3 = 1,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef int8_t L;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct I I;
|
||||
|
||||
typedef struct J J;
|
||||
@ -125,11 +109,9 @@ enum F_Tag
|
||||
Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t F_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
F_Tag tag;
|
||||
int16_t _0;
|
||||
@ -152,10 +134,6 @@ typedef enum {
|
||||
G_Bar,
|
||||
G_Baz,
|
||||
} G_Tag;
|
||||
#ifndef __cplusplus
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int16_t _0;
|
||||
@ -184,11 +162,9 @@ enum H_Tag
|
||||
H_Baz,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t H_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int16_t _0;
|
||||
} H_Foo_Body;
|
||||
@ -207,15 +183,11 @@ typedef struct {
|
||||
} H;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Opaque *o, A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -94,9 +94,7 @@ typedef struct {
|
||||
} TypedTransform2D_f32__LayoutUnit__UnknownUnit;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(TypedLength_f32__UnknownUnit length_a,
|
||||
@ -123,7 +121,5 @@ void root(TypedLength_f32__UnknownUnit length_a,
|
||||
TypedTransform2D_f32__LayoutUnit__UnknownUnit transform_b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,9 +8,7 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void extra_debug_fn(void);
|
||||
@ -18,7 +16,5 @@ void extra_debug_fn(void);
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,9 +8,7 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void cbindgen(void);
|
||||
@ -20,7 +18,5 @@ void extra_debug_fn(void);
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -4,9 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void first(void);
|
||||
@ -14,7 +12,5 @@ void first(void);
|
||||
void second(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -9,9 +9,7 @@ typedef struct {
|
||||
} Normal;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
extern void bar(Normal a);
|
||||
@ -19,7 +17,5 @@ extern void bar(Normal a);
|
||||
extern int32_t foo(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct {
|
||||
} ExtType;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void consume_ext(ExtType _ext);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct {
|
||||
} Fns;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Fns _fns);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -8,15 +8,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,7 +12,5 @@ enum OnlyThisShouldBeGenerated
|
||||
Bar,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t OnlyThisShouldBeGenerated;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
@ -12,7 +12,5 @@ enum StyleOnlyThisShouldBeGenerated
|
||||
Bar,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t StyleOnlyThisShouldBeGenerated;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
@ -8,15 +8,11 @@ typedef struct {
|
||||
} A;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(A _a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -24,9 +24,7 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#if defined(BAR)
|
||||
@ -38,7 +36,5 @@ void foo(const Foo *foo);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -10,15 +10,11 @@ typedef struct {
|
||||
} ExportMe;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void export_me(ExportMe *val);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,9 +34,7 @@ typedef struct {
|
||||
typedef Tuple_f32__f32 Indirection_f32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo_i32 a,
|
||||
@ -49,7 +47,5 @@ void root(Foo_i32 a,
|
||||
Indirection_f32 h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -18,9 +18,7 @@ typedef struct {
|
||||
} List_A;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void bar(List_B b);
|
||||
@ -28,7 +26,5 @@ void bar(List_B b);
|
||||
void foo(List_A a);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -34,9 +34,7 @@ typedef union {
|
||||
typedef Tuple_f32__f32 Indirection_f32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo_i32 a,
|
||||
@ -49,7 +47,5 @@ void root(Foo_i32 a,
|
||||
Indirection_f32 h);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -17,11 +17,9 @@ enum MaybeOwnedPtr_i32_Tag
|
||||
None_i32,
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef uint8_t MaybeOwnedPtr_i32_Tag;
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
typedef struct {
|
||||
int32_t *_0;
|
||||
} Owned_Body_i32;
|
||||
@ -38,15 +36,11 @@ typedef struct MUST_USE_STRUCT {
|
||||
} OwnedPtr_i32;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
MUST_USE_FUNC MaybeOwnedPtr_i32 maybe_consume(OwnedPtr_i32 input);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
@ -12,15 +12,11 @@ typedef struct {
|
||||
} Foo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(Foo x);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#endif // __cplusplus
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user