diff options
author | Serge A. Zaitsev <devnull@localhost> | 2012-02-02 13:26:15 +0200 |
---|---|---|
committer | Serge A. Zaitsev <devnull@localhost> | 2012-02-02 13:26:15 +0200 |
commit | f3b41ae30c7627f540ee539aed51bcca06d23a82 (patch) | |
tree | ff99bcf77f56f4065518df38ff9a765845c743ca /jsmn.h | |
parent | a983a7606136a3dfd538a9940c5ebf48d200251c (diff) |
fixed: superior node size is now an index, not a pointer (safe to realloc)
Diffstat (limited to 'jsmn.h')
-rw-r--r-- | jsmn.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; /** |