jsontree: add JSONTREE_CONF_PRETTY option
This commit is contained in:
parent
ca919ab0b0
commit
fcc87ddce8
2 changed files with 32 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue