summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2010-12-28 11:16:41 +0200
committerSerge A. Zaitsev <devnull@localhost>2010-12-28 11:16:41 +0200
commit4e869f7e9e3121ee84b8a3b65806143f7c8672ab (patch)
tree0d05ba13257e06321a669db03ab12cc56fc8d8aa /jsmn.h
parentc4d9412483bc561cef53a784e9f28b827e010e7b (diff)
Complex types (objects and arrays) now have also size - number of child elements
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsmn.h b/jsmn.h
index a45569632..8b21cab4d 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -32,6 +32,7 @@ typedef struct {
jsmntype_t type;
int start;
int end;
+ int size;
} jsmntok_t;
/**
@@ -43,6 +44,7 @@ typedef struct {
unsigned int pos;
unsigned int num_tokens;
int curtoken;
+ int *cursize;
jsmntok_t *tokens;
} jsmn_parser;