Skip to content

Commit

Permalink
Merge pull request zserge#175 from pks-t/pks/struct-type
Browse files Browse the repository at this point in the history
jsmn: declare struct names to allow forward decls
pt300 authored Apr 2, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents a91022a + 0837288 commit 053d3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsmn.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 053d3cd

Please sign in to comment.