diff options
author | P4t <pt300@tlen.pl> | 2020-04-02 15:08:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 15:08:12 +0200 |
commit | 053d3cd29200edb1bfd181d917d140c16c1f8834 (patch) | |
tree | 412154d52c0f760593d154ac0a2aace2c1e2e89b /jsmn.h | |
parent | a91022a07d70674fc4b8c5e3f448f2bd93b00066 (diff) | |
parent | 0837288b7c6dbd3c015f6a184cfa1e99937c5d09 (diff) |
Merge pull request #175 from pks-t/pks/struct-type
jsmn: declare struct names to allow forward decls
Diffstat (limited to 'jsmn.h')
-rw-r--r-- | jsmn.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,7 +66,7 @@ enum jsmnerr { * start start position in JSON data string * end end position in JSON data string */ -typedef struct { +typedef struct jsmntok { jsmntype_t type; int start; int end; @@ -80,7 +80,7 @@ typedef struct { * JSON parser. Contains an array of token blocks available. Also stores * the string being parsed now and current position in that string. */ -typedef struct { +typedef struct jsmn_parser { unsigned int pos; /* offset in the JSON string */ unsigned int toknext; /* next token to allocate */ int toksuper; /* superior token node, e.g. parent object or array */ |