Top |
#define | ABYDOS_ENCODE_VERSION() |
#define | ABYDOS_CHECK_VERSION() |
int | abydos_version () |
int | abydos_major_version () |
int | abydos_micro_version () |
int | abydos_minor_version () |
const char * | abydos_version_string () |
int | abydos_check_version () |
#define | ABYDOS_VERSION |
#define | ABYDOS_VERSION_MAJOR |
#define | ABYDOS_VERSION_MICRO |
#define | ABYDOS_VERSION_MINOR |
#define | ABYDOS_VERSION_STRING |
#define ABYDOS_ENCODE_VERSION(major,minor,micro)
This macro encodes the given version into an integer. The numbers
returned by ABYDOS_VERSION
and abydos_version()
are encoded using this
macro. Two encoded version numbers can be compared as integers. The
encoding ensures that later versions compare greater than earlier
versions.
#define ABYDOS_CHECK_VERSION(major,minor,micro) (ABYDOS_ENCODE_VERSION(major,minor,micro) >= ABYDOS_VERSION)
Checks the compile-time version of abydos.
Use abydos_check_version()
for a run-time version check.
int
abydos_version (void
);
The run-time version of abydos, encoded using ABYDOS_ENCODE_VERSION()
.
const char *
abydos_version_string (void
);
The run-time version of abydos as a string.
int abydos_check_version (int major
,int minor
,int micro
);
Checks the run-time version of abydos.
Use ABYDOS_CHECK_VERSION()
for a compile-time version check.
#define ABYDOS_VERSION ABYDOS_ENCODE_VERSION(0,1,4)
The compile-time version of abydos, encoded using ABYDOS_ENCODE_VERSION()
.
#define ABYDOS_VERSION_MAJOR 0
The compile-time major version of abydos (currently 0).
#define ABYDOS_VERSION_MICRO 4
The compile-time micro version of abydos (currently 4).
#define ABYDOS_VERSION_MINOR 1
The compile-time minor version of abydos (currently 1).