Macros | |
#define | MIRKL_BUILDING 0 |
#define | MIRKL_DECLARE(type) type |
#define | MIRKL_DECLARE_NONSTD(type) type |
#define | MIRKL_DECLARE_DATA |
#define | true 1 |
#define | false 0 |
#define | MIRKL_SUCCESS 0 |
#define | MIRKL_ERROR_APRINIT 1 |
#define | MIRKL_ERROR_APRPOOL 2 |
#define | MIRKL_ERROR_ERRINIT 3 |
#define | MIRKL_ERROR_MUTEXINIT 4 |
#define | MIRKL_MAX_INP_LINE_LEN 1000 |
#define | MIRKL_MAX_OUT_LINE_LEN 1000 |
#define | MIRKL_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | MIRKL_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIRKL_PATH_MAX 4096 |
Functions | |
int | mirkl_initialize (void) |
Initialization of the MirKL library. More... | |
void | mirkl_terminate (void) |
Termination of the MirKL library. More... | |
#define false 0 |
uhh... false
#define MIRKL_DECLARE | ( | type | ) | type |
The public MirKL functions are declared with MIRKL_DECLARE(), so they may use the most appropriate calling convention. Public MirKL functions with variable arguments must use MIRKL_DECLARE_NONSTD().
MIRKL_DECLARE(rettype) mirkl_func(args)
#define MIRKL_DECLARE_DATA |
The public MirKL variables are declared with MIRKL_DECLARE_DATA. This assures the appropriate indirection is invoked at compile time.
extern MIRKL_DECLARE_DATA type mirkl_variable;
MIRKL_DECLARE_DATA type mirkl_variable = value;
#define MIRKL_DECLARE_NONSTD | ( | type | ) | type |
The public MirKL functions using variable arguments are declared with MIRKL_DECLARE_NONSTD(), as they must follow the C language calling convention. The difference between MIRKL_DECLARE and MIRKL_DECLARE_NONSTD is that the latter is required for any functions which use varargs or are used via indirect function call. This is to accomodate the two calling conventions in windows dlls.
MIRKL_DECLARE_NONSTD(rettype) mirkl_func(args, ...);
#define MIRKL_PATH_MAX 4096 |
Number of chars in a path name including nul
#define true 1 |
uhh... true
int mirkl_initialize | ( | void | ) |
Initialization of the MirKL library.
void mirkl_terminate | ( | void | ) |
Termination of the MirKL library.