summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-07 12:39:01 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-07 12:39:01 +0000
commitc7d120dbf5668cd00650b2fe2661e9cf9601c8c7 (patch)
tree0919fe1a4ec0bc5653b0241e1496dbae03398400 /json.h
parent6ca64ddaae7a30d5647f21722b81042636f0bba7 (diff)
downloadgpsd-c7d120dbf5668cd00650b2fe2661e9cf9601c8c7.tar.gz
Added more type testing in the JSON parser.
Diffstat (limited to 'json.h')
-rw-r--r--json.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/json.h b/json.h
index 963b3c6c..430ba0c5 100644
--- a/json.h
+++ b/json.h
@@ -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 */
/*