diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-07 12:38:56 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-07 12:38:56 +0000 |
commit | cde88418f304c4b62d83f142b9bfd7818aa34613 (patch) | |
tree | 92ce2fce79d42cfc66d20af78c1062e27dcbc136 /json.h | |
parent | bd6680b29c898ffef331532dc97f9dd0986f3516 (diff) | |
download | gpsd-cde88418f304c4b62d83f142b9bfd7818aa34613.tar.gz |
Enable JSON parser to recognize a type mismatch.
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_MISC 19 /* other data conversion error */ +#define JSON_ERR_QNONSTRING 19 /* saw string quote when expecting ns */ +#define JSON_ERR_MISC 20 /* other data conversion error */ /* * Use the following macros to declare template initializers for structobject |