|
liba 0.1.15
An algorithm library based on C/C++
|
algorithm library version More...
#include "a.h"Go to the source code of this file.
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_4(major, minor, third, extra) |
| #define | A_VERSION_3(major, minor, third) |
| #define | A_VERSION_2(major, minor) |
| #define | A_VERSION_1(major) |
| #define | A_VERSION_0() |
| #define | A_VERSION_CHECK() |
Typedefs | |
| typedef struct a_version | a_version |
| typedef 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 |
algorithm library version