DELIMITERLENGTH might possibly be set to 0 in future
This commit is contained in:
parent
801a3de6d7
commit
0e65963446
|
@ -12,8 +12,10 @@
|
||||||
#define NILL INT_MIN
|
#define NILL INT_MIN
|
||||||
#define LOCKFILE "/tmp/dwmblocks.pid"
|
#define LOCKFILE "/tmp/dwmblocks.pid"
|
||||||
|
|
||||||
|
#define LENGTH(X) (sizeof X / sizeof X[0])
|
||||||
|
|
||||||
#define DELIMITERLENGTH (sizeof delimiter)
|
#define DELIMITERLENGTH (sizeof delimiter)
|
||||||
#define STATUSLENGTH ((sizeof blocks / sizeof blocks[0]) * (CMDOUTLENGTH + DELIMITERLENGTH))
|
#define STATUSLENGTH (LENGTH(blocks) * (CMDOUTLENGTH + DELIMITERLENGTH) + 1)
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue