|
Zycore 1.5.2
Zyan Core Library for C
|
Defines prototypes of general-purpose comparison functions. More...
Go to the source code of this file.
Macros | |
| #define | ZYAN_DECLARE_EQUALITY_COMPARISON(name, type) |
| Declares a generic equality comparison function for an integral data-type. | |
| #define | ZYAN_DECLARE_EQUALITY_COMPARISON_FOR_FIELD(name, type, field_name) |
| Declares a generic equality comparison function that compares a single integral data-type field of a struct. | |
| #define | ZYAN_DECLARE_COMPARISON(name, type) |
| Declares a generic comparison function for an integral data-type. | |
| #define | ZYAN_DECLARE_COMPARISON_FOR_FIELD(name, type, field_name) |
| Declares a generic comparison function that compares a single integral data-type field of a struct. | |
Typedefs | |
| typedef ZyanBool(* | ZyanEqualityComparison) (const void *left, const void *right) |
| Defines the ZyanEqualityComparison function prototype. | |
| typedef ZyanI32(* | ZyanComparison) (const void *left, const void *right) |
| Defines the ZyanComparison function prototype. | |
Functions | |
| ZYAN_INLINE ZyanBool | ZyanEqualsPointer (const void *const *left, const void *const *right) |
| Defines a default equality comparison function for pointer values. | |
| ZYAN_INLINE ZyanBool | ZyanEqualsBool (const ZyanBool *left, const ZyanBool *right) |
| Defines a default equality comparison function for ZyanBool values. | |
| ZYAN_INLINE ZyanBool | ZyanEqualsNumeric8 (const ZyanU8 *left, const ZyanU8 *right) |
| Defines a default equality comparison function for 8-bit numeric values. | |
| ZYAN_INLINE ZyanBool | ZyanEqualsNumeric16 (const ZyanU16 *left, const ZyanU16 *right) |
| Defines a default equality comparison function for 16-bit numeric values. | |
| ZYAN_INLINE ZyanBool | ZyanEqualsNumeric32 (const ZyanU32 *left, const ZyanU32 *right) |
| Defines a default equality comparison function for 32-bit numeric values. | |
| ZYAN_INLINE ZyanBool | ZyanEqualsNumeric64 (const ZyanU64 *left, const ZyanU64 *right) |
| Defines a default equality comparison function for 64-bit numeric values. | |
| ZYAN_INLINE ZyanI32 | ZyanComparePointer (const void *const *left, const void *const *right) |
| Defines a default comparison function for pointer values. | |
| ZYAN_INLINE ZyanI32 | ZyanCompareBool (const ZyanBool *left, const ZyanBool *right) |
| Defines a default comparison function for ZyanBool values. | |
| ZYAN_INLINE ZyanI32 | ZyanCompareNumeric8 (const ZyanU8 *left, const ZyanU8 *right) |
| Defines a default comparison function for 8-bit numeric values. | |
| ZYAN_INLINE ZyanI32 | ZyanCompareNumeric16 (const ZyanU16 *left, const ZyanU16 *right) |
| Defines a default comparison function for 16-bit numeric values. | |
| ZYAN_INLINE ZyanI32 | ZyanCompareNumeric32 (const ZyanU32 *left, const ZyanU32 *right) |
| Defines a default comparison function for 32-bit numeric values. | |
| ZYAN_INLINE ZyanI32 | ZyanCompareNumeric64 (const ZyanU64 *left, const ZyanU64 *right) |
| Defines a default comparison function for 64-bit numeric values. | |
Defines prototypes of general-purpose comparison functions.
| #define ZYAN_DECLARE_COMPARISON | ( | name, | |
| type ) |
Declares a generic comparison function for an integral data-type.
| name | The name of the function. |
| type | The name of the integral data-type. |
| #define ZYAN_DECLARE_COMPARISON_FOR_FIELD | ( | name, | |
| type, | |||
| field_name ) |
Declares a generic comparison function that compares a single integral data-type field of a struct.
| name | The name of the function. |
| type | The name of the integral data-type. |
| field_name | The name of the struct field. |
| #define ZYAN_DECLARE_EQUALITY_COMPARISON | ( | name, | |
| type ) |
Declares a generic equality comparison function for an integral data-type.
| name | The name of the function. |
| type | The name of the integral data-type. |
| #define ZYAN_DECLARE_EQUALITY_COMPARISON_FOR_FIELD | ( | name, | |
| type, | |||
| field_name ) |
Declares a generic equality comparison function that compares a single integral data-type field of a struct.
| name | The name of the function. |
| type | The name of the integral data-type. |
| field_name | The name of the struct field. |
| typedef ZyanI32(* ZyanComparison) (const void *left, const void *right) |
Defines the ZyanComparison function prototype.
| left | A pointer to the first element. |
| right | A pointer to the second element. |
| typedef ZyanBool(* ZyanEqualityComparison) (const void *left, const void *right) |
Defines the ZyanEqualityComparison function prototype.
| left | A pointer to the first element. |
| right | A pointer to the second element. |
| ZYAN_INLINE ZyanI32 ZyanCompareBool | ( | const ZyanBool * | left, |
| const ZyanBool * | right ) |
Defines a default comparison function for ZyanBool values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanI32 ZyanCompareNumeric16 | ( | const ZyanU16 * | left, |
| const ZyanU16 * | right ) |
Defines a default comparison function for 16-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanI32 ZyanCompareNumeric32 | ( | const ZyanU32 * | left, |
| const ZyanU32 * | right ) |
Defines a default comparison function for 32-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanI32 ZyanCompareNumeric64 | ( | const ZyanU64 * | left, |
| const ZyanU64 * | right ) |
Defines a default comparison function for 64-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanI32 ZyanCompareNumeric8 | ( | const ZyanU8 * | left, |
| const ZyanU8 * | right ) |
Defines a default comparison function for 8-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanI32 ZyanComparePointer | ( | const void *const * | left, |
| const void *const * | right ) |
Defines a default comparison function for pointer values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanBool ZyanEqualsBool | ( | const ZyanBool * | left, |
| const ZyanBool * | right ) |
Defines a default equality comparison function for ZyanBool values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanBool ZyanEqualsNumeric16 | ( | const ZyanU16 * | left, |
| const ZyanU16 * | right ) |
Defines a default equality comparison function for 16-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanBool ZyanEqualsNumeric32 | ( | const ZyanU32 * | left, |
| const ZyanU32 * | right ) |
Defines a default equality comparison function for 32-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanBool ZyanEqualsNumeric64 | ( | const ZyanU64 * | left, |
| const ZyanU64 * | right ) |
Defines a default equality comparison function for 64-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanBool ZyanEqualsNumeric8 | ( | const ZyanU8 * | left, |
| const ZyanU8 * | right ) |
Defines a default equality comparison function for 8-bit numeric values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |
| ZYAN_INLINE ZyanBool ZyanEqualsPointer | ( | const void *const * | left, |
| const void *const * | right ) |
Defines a default equality comparison function for pointer values.
| left | A pointer to the first value. |
| right | A pointer to the second value. |