Files
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

116 lines
1.7 KiB
C

#if 0
DEF PLATFORM_UNIX = 0
DEF PLATFORM_WIN = 0
DEF X11 = 0
DEF M_32 = 0
#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#if (defined(PLATFORM_WIN) || defined(M_32))
enum BarType
#ifdef __cplusplus
: uint32_t
#endif // __cplusplus
{
A,
B,
C,
};
#ifndef __cplusplus
typedef uint32_t BarType;
#endif // __cplusplus
#endif
#if (defined(PLATFORM_UNIX) && defined(X11))
enum FooType
#ifdef __cplusplus
: uint32_t
#endif // __cplusplus
{
A,
B,
C,
};
#ifndef __cplusplus
typedef uint32_t FooType;
#endif // __cplusplus
#endif
#if (defined(PLATFORM_UNIX) && defined(X11))
typedef struct FooHandle {
FooType ty;
int32_t x;
float y;
} FooHandle;
#endif
enum C_Tag
#ifdef __cplusplus
: uint8_t
#endif // __cplusplus
{
C1,
C2,
#if defined(PLATFORM_WIN)
C3,
#endif
#if defined(PLATFORM_UNIX)
C5,
#endif
};
#ifndef __cplusplus
typedef uint8_t C_Tag;
#endif // __cplusplus
#if defined(PLATFORM_UNIX)
typedef struct C5_Body {
C_Tag tag;
int32_t int_;
} C5_Body;
#endif
typedef union C {
C_Tag tag;
#if defined(PLATFORM_UNIX)
C5_Body c5;
#endif
} C;
#if (defined(PLATFORM_WIN) || defined(M_32))
typedef struct BarHandle {
BarType ty;
int32_t x;
float y;
} BarHandle;
#endif
typedef struct ConditionalField {
#if defined(X11)
int32_t field
#endif
;
} ConditionalField;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#if (defined(PLATFORM_UNIX) && defined(X11))
void root(struct FooHandle a, union C c);
#endif
#if (defined(PLATFORM_WIN) || defined(M_32))
void root(struct BarHandle a, union C c);
#endif
void cond(struct ConditionalField a);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus