diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-07 12:39:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-07 12:39:01 +0000 |
commit | c7d120dbf5668cd00650b2fe2661e9cf9601c8c7 (patch) | |
tree | 0919fe1a4ec0bc5653b0241e1496dbae03398400 /json.h | |
parent | 6ca64ddaae7a30d5647f21722b81042636f0bba7 (diff) | |
download | gpsd-c7d120dbf5668cd00650b2fe2661e9cf9601c8c7.tar.gz |
Added more type testing in the JSON parser.
Diffstat (limited to 'json.h')
-rw-r--r-- | json.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,8 @@ const char *json_error_string(int); #define JSON_ERR_CHECKFAIL 16 /* check attribute not matched */ #define JSON_ERR_NOPARSTR 17 /* can't support strings in parallel arrays */ #define JSON_ERR_BADENUM 18 /* invalid enumerated value */ -#define JSON_ERR_QNONSTRING 19 /* saw string quote when expecting ns */ +#define JSON_ERR_QNONSTRING 19 /* saw quoted value when expecting nonstring */ +#define JSON_ERR_NONQSTRING 19 /* didn't see quoted value when expecting string */ #define JSON_ERR_MISC 20 /* other data conversion error */ /* |