From f3b41ae30c7627f540ee539aed51bcca06d23a82 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Thu, 2 Feb 2012 13:26:15 +0200 Subject: fixed: superior node size is now an index, not a pointer (safe to realloc) --- jsmn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jsmn.h') 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; /** -- cgit v1.2.3