cbindgen/tests/expectations/display_list_both.compat.c
Jonathan Schwender 51a981cefc Rename expectations files
Rename expectation files to contain only one dot.
This is needed for the Cython tests as of Cython 3.
The following script was used in a clean repository
to rename the files:

```sh
 ls | sed -E -n 's/(.*)\.(both|tag)?((\..*)?\.(c|cpp|pyx))/mv "\1.\2\3" "\1_\2\3"/p' | sh
```
2023-09-04 19:37:45 +02:00

60 lines
892 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct Rect {
float x;
float y;
float w;
float h;
} Rect;
typedef struct Color {
uint8_t r;
uint8_t g;
uint8_t b;
uint8_t a;
} Color;
enum DisplayItem_Tag
#ifdef __cplusplus
: uint8_t
#endif // __cplusplus
{
Fill,
Image,
ClearScreen,
};
#ifndef __cplusplus
typedef uint8_t DisplayItem_Tag;
#endif // __cplusplus
typedef struct Fill_Body {
DisplayItem_Tag tag;
struct Rect _0;
struct Color _1;
} Fill_Body;
typedef struct Image_Body {
DisplayItem_Tag tag;
uint32_t id;
struct Rect bounds;
} Image_Body;
typedef union DisplayItem {
DisplayItem_Tag tag;
Fill_Body fill;
Image_Body image;
} DisplayItem;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
bool push_item(union DisplayItem item);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus