i3bar: Fully parse the JSON header

This commit is contained in:
Quentin Glidic
2012-09-03 10:43:29 +02:00
committed by Michael Stapelberg
parent 34dc6d4d64
commit 1e114d7ab5
4 changed files with 54 additions and 37 deletions

View File

@ -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) { \