summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2012-02-02 13:26:15 +0200
committerSerge A. Zaitsev <devnull@localhost>2012-02-02 13:26:15 +0200
commitf3b41ae30c7627f540ee539aed51bcca06d23a82 (patch)
treeff99bcf77f56f4065518df38ff9a765845c743ca /jsmn.h
parenta983a7606136a3dfd538a9940c5ebf48d200251c (diff)
fixed: superior node size is now an index, not a pointer (safe to realloc)
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/jsmn.h b/jsmn.h
index 72040bc3b..91e285d25 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -44,9 +44,9 @@ typedef struct {
* the string being parsed now and current position in that string
*/
typedef struct {
- unsigned int pos;
- int toknext;
- int *cursize;
+ unsigned int pos; /* offset in the JSON string */
+ int toknext; /* next token to allocate */
+ int toksuper; /* suporior token node, e.g parent object or array */
} jsmn_parser;
/**