summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2012-02-01 14:02:12 +0200
committerSerge A. Zaitsev <devnull@localhost>2012-02-01 14:02:12 +0200
commit443be365f6bf8639a1b1e836e8e948d12af28100 (patch)
treef0f56cec27ca0e70a70ccc1aea3ab542d840d972 /jsmn.h
parentbed0a7a3e647abb7204d73c69f9f44b37bdfc84f (diff)
removed JSON string and token array from parser internals, because they must not be saved between parse() calls
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/jsmn.h b/jsmn.h
index 57112fa8c..3d1f9ec20 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -44,12 +44,9 @@ typedef struct {
* the string being parsed now and current position in that string
*/
typedef struct {
- const char *js;
unsigned int pos;
- unsigned int num_tokens;
int curtoken;
int *cursize;
- jsmntok_t *tokens;
} jsmn_parser;
/**