diff options
Diffstat (limited to 'jsmn/jsmn.h')
-rw-r--r-- | jsmn/jsmn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jsmn/jsmn.h b/jsmn/jsmn.h index 01ca99c..e6ee22c 100644 --- a/jsmn/jsmn.h +++ b/jsmn/jsmn.h @@ -42,6 +42,7 @@ typedef struct { int start; int end; int size; + int line; #ifdef JSMN_PARENT_LINKS int parent; #endif @@ -54,7 +55,9 @@ typedef struct { typedef struct { unsigned int pos; /* offset in the JSON string */ unsigned int toknext; /* next token to allocate */ + unsigned int count; /* number of tokens parsed */ int toksuper; /* superior token node, e.g parent object or array */ + int line; /* current line number */ } jsmn_parser; /** |