* 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;
* 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 */
case ']':
case '}':
goto found;
+ default:
+ /* to quiet a warning from gcc*/
+ break;
}
if (js[parser->pos] < 32 || js[parser->pos] >= 127) {
parser->pos = start;