jsontree: add JSONTREE_CONF_PRETTY option

This commit is contained in:
Jeff Kent 2015-12-28 09:45:09 -06:00
parent ca919ab0b0
commit fcc87ddce8
2 changed files with 32 additions and 0 deletions

View file

@ -49,6 +49,12 @@
#define JSONTREE_MAX_DEPTH 10
#endif /* JSONTREE_CONF_MAX_DEPTH */
#ifdef JSONTREE_CONF_PRETTY
#define JSONTREE_PRETTY JSONTREE_CONF_PRETTY
#else
#define JSONTREE_PRETTY 0
#endif /* JSONTREE_CONF_PRETTY */
struct jsontree_context {
struct jsontree_value *values[JSONTREE_MAX_DEPTH];
uint16_t index[JSONTREE_MAX_DEPTH];