RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
61
zeroidc/vendor/cbindgen/tests/expectations/constant.both.compat.c
vendored
Normal file
61
zeroidc/vendor/cbindgen/tests/expectations/constant.both.compat.c
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user