summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2012-09-26 20:19:21 +0300
committerSerge A. Zaitsev <devnull@localhost>2012-09-26 20:19:21 +0300
commit37964b40ee94fdfdc9a8408a9ade9d7f3cb94683 (patch)
tree80a74058e3c4767fe181b8105c8be0ffbb5084e0 /jsmn.h
parentcfbb5b509174552ed00ac0ad46d474d00cad6e9d (diff)
added optional parent token pointer support. Increases parsing speed
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/jsmn.h b/jsmn.h
index 91e285d25..5914239ba 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -37,6 +37,9 @@ typedef struct {
int start;
int end;
int size;
+#ifdef JSMN_PARENT_LINKS
+ int parent;
+#endif
} jsmntok_t;
/**