summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-07 12:38:56 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-07 12:38:56 +0000
commitcde88418f304c4b62d83f142b9bfd7818aa34613 (patch)
tree92ce2fce79d42cfc66d20af78c1062e27dcbc136 /json.h
parentbd6680b29c898ffef331532dc97f9dd0986f3516 (diff)
downloadgpsd-cde88418f304c4b62d83f142b9bfd7818aa34613.tar.gz
Enable JSON parser to recognize a type mismatch.
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 e5d456bc..963b3c6c 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_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