mirror of
https://github.com/outbackdingo/nDPId.git
synced 2026-01-28 18:19:45 +00:00
Merge pull request #175 from pks-t/pks/struct-type
jsmn: declare struct names to allow forward decls
This commit is contained in:
4
jsmn.h
4
jsmn.h
@@ -66,7 +66,7 @@ enum jsmnerr {
|
|||||||
* start start position in JSON data string
|
* start start position in JSON data string
|
||||||
* end end position in JSON data string
|
* end end position in JSON data string
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct jsmntok {
|
||||||
jsmntype_t type;
|
jsmntype_t type;
|
||||||
int start;
|
int start;
|
||||||
int end;
|
int end;
|
||||||
@@ -80,7 +80,7 @@ typedef struct {
|
|||||||
* JSON parser. Contains an array of token blocks available. Also stores
|
* JSON parser. Contains an array of token blocks available. Also stores
|
||||||
* the string being parsed now and current position in that string.
|
* 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 pos; /* offset in the JSON string */
|
||||||
unsigned int toknext; /* next token to allocate */
|
unsigned int toknext; /* next token to allocate */
|
||||||
int toksuper; /* superior token node, e.g. parent object or array */
|
int toksuper; /* superior token node, e.g. parent object or array */
|
||||||
|
|||||||
Reference in New Issue
Block a user