projects
/
xmenu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse resources before command-line options
[xmenu]
/
xmenu.h
diff --git
a/xmenu.h
b/xmenu.h
index
ecb0d14
..
051bc4a
100644
(file)
--- a/
xmenu.h
+++ b/
xmenu.h
@@
-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 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};
/* color enum */
enum {ColorFG, ColorBG, ColorLast};