/*
  err.h - Error codes
*/

/* ---------- Function declarations ---------- */
int do_error(int, char *);

/* ---------- Warnings ---------- */
#define NO_ERR 0
#define WARN_BOGUSXEV 1
#define WARN_BOGUSWINDOW 2

/* ---------- Fatal errors ---------- */
#define ERR_NODISPLAY -1
#define ERR_NOOPENWINDOW -2
#define ERR_NOMEM -3
#define ERR_NOWIND -4
#define ERR_INVALIDARG -5
#define ERR_INVALIDMOVE -6
#define ERR_INVALIDSTATE -7

/* ---------- Return codes ---------- */
#define EC_CANTADDCARD -1000
