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:
51
zeroidc/vendor/cbindgen/tests/expectations/bitflags.both.compat.c
vendored
Normal file
51
zeroidc/vendor/cbindgen/tests/expectations/bitflags.both.compat.c
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* Constants shared by multiple CSS Box Alignment properties
|
||||
*
|
||||
* These constants match Gecko's `NS_STYLE_ALIGN_*` constants.
|
||||
*/
|
||||
typedef struct AlignFlags {
|
||||
uint8_t bits;
|
||||
} AlignFlags;
|
||||
/**
|
||||
* 'auto'
|
||||
*/
|
||||
#define AlignFlags_AUTO (AlignFlags){ .bits = (uint8_t)0 }
|
||||
/**
|
||||
* 'normal'
|
||||
*/
|
||||
#define AlignFlags_NORMAL (AlignFlags){ .bits = (uint8_t)1 }
|
||||
/**
|
||||
* 'start'
|
||||
*/
|
||||
#define AlignFlags_START (AlignFlags){ .bits = (uint8_t)(1 << 1) }
|
||||
/**
|
||||
* 'end'
|
||||
*/
|
||||
#define AlignFlags_END (AlignFlags){ .bits = (uint8_t)(1 << 2) }
|
||||
/**
|
||||
* 'flex-start'
|
||||
*/
|
||||
#define AlignFlags_FLEX_START (AlignFlags){ .bits = (uint8_t)(1 << 3) }
|
||||
|
||||
typedef struct DebugFlags {
|
||||
uint32_t bits;
|
||||
} DebugFlags;
|
||||
/**
|
||||
* Flag with the topmost bit set of the u32
|
||||
*/
|
||||
#define DebugFlags_BIGGEST_ALLOWED (DebugFlags){ .bits = (uint32_t)(1 << 31) }
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(struct AlignFlags flags, struct DebugFlags bigger_flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif // __cplusplus
|
||||
Reference in New Issue
Block a user