summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-19 18:35:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-19 18:35:11 +0000
commit7a4984bf727c6949c9703d0846284bc96a4fe056 (patch)
treef71291cd3bd49c390c61daab09ae553d4405ddb4 /json.h
parent00ac70ae6486f373aee1fa9f5a2f0d62d5c5c096 (diff)
downloadgpsd-7a4984bf727c6949c9703d0846284bc96a4fe056.tar.gz
Remove enumerated-flags feature from JSON parser.
Too much complexity for too little gain.
Diffstat (limited to 'json.h')
-rw-r--r--json.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/json.h b/json.h
index bd0d46e5..0e830dce 100644
--- a/json.h
+++ b/json.h
@@ -5,15 +5,10 @@
#include <ctype.h>
typedef enum {integer, real, string, boolean,
- flags, object, structobject, array, check} json_type;
+ object, structobject, array, check} json_type;
#define nullbool -1 /* not true, not false */
-struct json_enum_t {
- char *name;
- int mask;
-};
-
struct json_array_t {
json_type element_type;
union {
@@ -27,10 +22,6 @@ struct json_array_t {
char *store;
int storelen;
} strings;
- struct {
- const struct json_enum_t *map;
- int *bits;
- } flags;
} arr;
int *count, maxlen;
};