2012-12-08 16:13:01 +07:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
|
|
|
#define MAX(A, B) ((A) > (B) ? (A) : (B))
|
|
|
|
#define MIN(A, B) ((A) < (B) ? (A) : (B))
|
2015-03-06 11:26:11 +07:00
|
|
|
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
|
2012-12-08 16:13:01 +07:00
|
|
|
|
|
|
|
void die(const char *errstr, ...);
|
2015-10-21 04:34:49 +07:00
|
|
|
void *ecalloc(size_t, size_t);
|