speedwm-personal/main.h
speedie cef970ac27 Use pango, add support for pango markup. This *does* add pango as a
dependency, however i will likely add #ifs for this later. If this is a
problem, get this diff and patch -R it on your build.
2022-11-15 16:18:33 +01:00

27 lines
648 B
C

/* See LICENSE file for copyright and license details. */
#ifndef MAX
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#endif
#ifndef MIN
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
#if USEIPC
#ifdef _DEBUG
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
#else
#define DEBUG(...)
#endif
#endif
void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size);
#if USEIPC
int normalizepath(const char *path, char **normal);
int mkdirp(const char *path);
int parentdir(const char *path, char **parent);
int nullterminate(char **str, size_t *len);
#endif