parse resources before command-line options

This commit is contained in:
phillbush
2020-12-29 18:56:50 -03:00
parent 9cfea60e8e
commit 6abae763c6
2 changed files with 109 additions and 102 deletions

View File

@@ -11,6 +11,11 @@ enum {LeftAlignment, CenterAlignment, RightAlignment};
#define MAX(x,y) ((x)>(y)?(x):(y))
#define MIN(x,y) ((x)<(y)?(x):(y))
#define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b))
#define GETNUM(n, s) { \
unsigned long __TMP__; \
if ((__TMP__ = strtoul((s), NULL, 10)) < INT_MAX) \
(n) = __TMP__; \
}
/* color enum */
enum {ColorFG, ColorBG, ColorLast};