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/associated_in_body.cpp
vendored
Normal file
61
zeroidc/vendor/cbindgen/tests/expectations/associated_in_body.cpp
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <ostream>
|
||||
#include <new>
|
||||
|
||||
/// Constants shared by multiple CSS Box Alignment properties
|
||||
///
|
||||
/// These constants match Gecko's `NS_STYLE_ALIGN_*` constants.
|
||||
struct StyleAlignFlags {
|
||||
uint8_t bits;
|
||||
|
||||
explicit operator bool() const {
|
||||
return !!bits;
|
||||
}
|
||||
StyleAlignFlags operator~() const {
|
||||
return {static_cast<decltype(bits)>(~bits)};
|
||||
}
|
||||
StyleAlignFlags operator|(const StyleAlignFlags& other) const {
|
||||
return {static_cast<decltype(bits)>(this->bits | other.bits)};
|
||||
}
|
||||
StyleAlignFlags& operator|=(const StyleAlignFlags& other) {
|
||||
*this = (*this | other);
|
||||
return *this;
|
||||
}
|
||||
StyleAlignFlags operator&(const StyleAlignFlags& other) const {
|
||||
return {static_cast<decltype(bits)>(this->bits & other.bits)};
|
||||
}
|
||||
StyleAlignFlags& operator&=(const StyleAlignFlags& other) {
|
||||
*this = (*this & other);
|
||||
return *this;
|
||||
}
|
||||
StyleAlignFlags operator^(const StyleAlignFlags& other) const {
|
||||
return {static_cast<decltype(bits)>(this->bits ^ other.bits)};
|
||||
}
|
||||
StyleAlignFlags& operator^=(const StyleAlignFlags& other) {
|
||||
*this = (*this ^ other);
|
||||
return *this;
|
||||
}
|
||||
static const StyleAlignFlags AUTO;
|
||||
static const StyleAlignFlags NORMAL;
|
||||
static const StyleAlignFlags START;
|
||||
static const StyleAlignFlags END;
|
||||
static const StyleAlignFlags FLEX_START;
|
||||
};
|
||||
/// 'auto'
|
||||
inline const StyleAlignFlags StyleAlignFlags::AUTO = StyleAlignFlags{ /* .bits = */ (uint8_t)0 };
|
||||
/// 'normal'
|
||||
inline const StyleAlignFlags StyleAlignFlags::NORMAL = StyleAlignFlags{ /* .bits = */ (uint8_t)1 };
|
||||
/// 'start'
|
||||
inline const StyleAlignFlags StyleAlignFlags::START = StyleAlignFlags{ /* .bits = */ (uint8_t)(1 << 1) };
|
||||
/// 'end'
|
||||
inline const StyleAlignFlags StyleAlignFlags::END = StyleAlignFlags{ /* .bits = */ (uint8_t)(1 << 2) };
|
||||
/// 'flex-start'
|
||||
inline const StyleAlignFlags StyleAlignFlags::FLEX_START = StyleAlignFlags{ /* .bits = */ (uint8_t)(1 << 3) };
|
||||
|
||||
extern "C" {
|
||||
|
||||
void root(StyleAlignFlags flags);
|
||||
|
||||
} // extern "C"
|
||||
Reference in New Issue
Block a user