i3bar: Fully parse the JSON header
This commit is contained in:
committed by
Michael Stapelberg
parent
34dc6d4d64
commit
1e114d7ab5
@ -16,6 +16,8 @@
|
||||
#undef MIN
|
||||
#define MIN(x,y) ((x) < (y) ? (x) : (y))
|
||||
|
||||
#define STARTS_WITH(string, len, needle) ((len >= strlen(needle)) && strncasecmp(string, needle, strlen(needle)) == 0)
|
||||
|
||||
/* Securely free p */
|
||||
#define FREE(p) do { \
|
||||
if (p != NULL) { \
|
||||
|
Reference in New Issue
Block a user