|
liba 0.1.15
An algorithm library based on C/C++
|
Data Structures | |
| struct | a_version |
| instance structure for version More... | |
Macros | |
| #define | A_VERSION_MAJOR 0 |
| #define | A_VERSION_MINOR 1 |
| #define | A_VERSION_PATCH 15 |
| #define | A_VERSION_TWEAK 20250131 |
| #define | A_VERSION_TOSTR(X) |
| #define | A_VERSION A_VERSION_TOSTR(A_VERSION_MAJOR) "." A_VERSION_TOSTR(A_VERSION_MINOR) "." A_VERSION_TOSTR(A_VERSION_PATCH) |
| #define | A_VERSION_0() |
| #define | A_VERSION_1(major) |
| #define | A_VERSION_2(major, minor) |
| #define | A_VERSION_3(major, minor, third) |
| #define | A_VERSION_4(major, minor, third, extra) |
| #define | A_VERSION_CHECK() |
Typedefs | |
| typedef struct a_version | a_version |
Functions | |
| int | a_version_check (unsigned int major, unsigned int minor, unsigned int patch) |
| algorithm library version check | |
| unsigned int | a_version_tostr (a_version const *ctx, void *pdata, a_size nbyte) |
| convert version to string | |
| unsigned int | a_version_parse (a_version *ctx, char const *ver) |
| parse version string to version | |
| int | a_version_cmp (a_version const *lhs, a_version const *rhs) |
| compare the version lhs with the version rhs | |
| a_bool | a_version_lt (a_version const *lhs, a_version const *rhs) |
| version lhs is less than version rhs | |
| a_bool | a_version_gt (a_version const *lhs, a_version const *rhs) |
| version lhs is greater than version rhs | |
| a_bool | a_version_le (a_version const *lhs, a_version const *rhs) |
| version lhs is less than or equal to version rhs | |
| a_bool | a_version_ge (a_version const *lhs, a_version const *rhs) |
| version lhs is greater than or equal to version rhs | |
| a_bool | a_version_eq (a_version const *lhs, a_version const *rhs) |
| version lhs is equal to version rhs | |
| a_bool | a_version_ne (a_version const *lhs, a_version const *rhs) |
| version lhs is not equal to version rhs | |
| void | a_version_set_alpha (a_version *ctx, char const *alpha) |
| set alphabet for version | |
| void | a_version_alpha (a_version const *ctx, char alpha[5]) |
| get alphabet for version | |
Variables | |
| unsigned int const | a_version_major |
| unsigned int const | a_version_minor |
| unsigned int const | a_version_patch |
| a_u32 const | a_version_tweak |
| #define A_VERSION A_VERSION_TOSTR(A_VERSION_MAJOR) "." A_VERSION_TOSTR(A_VERSION_MINOR) "." A_VERSION_TOSTR(A_VERSION_PATCH) |
algorithm library version string
| #define A_VERSION_0 | ( | ) |
| #define A_VERSION_1 | ( | major | ) |
| #define A_VERSION_2 | ( | major, | |
| minor ) |
| #define A_VERSION_3 | ( | major, | |
| minor, | |||
| third ) |
| #define A_VERSION_4 | ( | major, | |
| minor, | |||
| third, | |||
| extra ) |
| #define A_VERSION_CHECK | ( | ) |
| #define A_VERSION_MAJOR 0 |
algorithm library version major
| #define A_VERSION_MINOR 1 |
algorithm library version minor
| #define A_VERSION_PATCH 15 |
algorithm library version patch
| #define A_VERSION_TOSTR | ( | X | ) |
| #define A_VERSION_TWEAK 20250131 |
algorithm library version tweak
| void a_version_alpha | ( | a_version const * | ctx, |
| char | alpha[5] ) |
get alphabet for version
| [in] | ctx | points to an instance structure for version |
| [out] | alpha | string buffer, >sizeof(ctx->alpha) |
| int a_version_check | ( | unsigned int | major, |
| unsigned int | minor, | ||
| unsigned int | patch ) |
algorithm library version check
| [in] | major | required major number |
| [in] | minor | required minor number |
| [in] | patch | required patch number |
| <0 | library version is higher than required version |
| >0 | library version is lower than required version |
| 0 | library version is equal to required version |
compare the version lhs with the version rhs
| [in] | lhs | version structure to be compared |
| [in] | rhs | version structure to be compared |
| <0 | version lhs < version rhs |
| >0 | version lhs > version rhs |
| 0 | version lhs == version rhs |
version lhs is equal to version rhs
| [in] | lhs | operand on the left |
| [in] | rhs | operand on the right |
version lhs is greater than or equal to version rhs
| [in] | lhs | operand on the left |
| [in] | rhs | operand on the right |
version lhs is greater than version rhs
| [in] | lhs | operand on the left |
| [in] | rhs | operand on the right |
version lhs is less than or equal to version rhs
| [in] | lhs | operand on the left |
| [in] | rhs | operand on the right |
version lhs is less than version rhs
| [in] | lhs | operand on the left |
| [in] | rhs | operand on the right |
version lhs is not equal to version rhs
| [in] | lhs | operand on the left |
| [in] | rhs | operand on the right |
| unsigned int a_version_parse | ( | a_version * | ctx, |
| char const * | ver ) |
parse version string to version
| [in,out] | ctx | points to an instance structure for version |
| [in] | ver | version string to be parsed |
| void a_version_set_alpha | ( | a_version * | ctx, |
| char const * | alpha ) |
set alphabet for version
| [in,out] | ctx | points to an instance structure for version |
| [in] | alpha | new alphabet |
convert version to string
| [in] | ctx | points to an instance structure for version |
| [in] | pdata | points to string buffer |
| [in] | nbyte | length of string buffer |
| unsigned int const a_version_major |
algorithm library version major
| unsigned int const a_version_minor |
algorithm library version minor
| unsigned int const a_version_patch |
algorithm library version patch
| a_u32 const a_version_tweak |
algorithm library version tweak