cbindgen/tests/expectations/constant_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

62 lines
766 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#define FOO 10
#define DELIMITER ':'
#define LEFTCURLY '{'
#define QUOTE '\''
#define TAB '\t'
#define NEWLINE '\n'
#define HEART U'\U00002764'
#define EQUID U'\U00010083'
#define ZOM 3.14
/**
* A single-line doc comment.
*/
#define POS_ONE 1
/**
* A
* multi-line
* doc
* comment.
*/
#define NEG_ONE -1
#define SHIFT 3
#define XBOOL 1
#define XFALSE ((0 << SHIFT) | XBOOL)
#define XTRUE (1 << (SHIFT | XBOOL))
#define CAST (uint8_t)'A'
#define DOUBLE_CAST (uint32_t)(float)1
typedef struct Foo {
int32_t x[FOO];
} Foo;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void root(struct Foo x);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus