diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-19 18:35:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-19 18:35:11 +0000 |
commit | 7a4984bf727c6949c9703d0846284bc96a4fe056 (patch) | |
tree | f71291cd3bd49c390c61daab09ae553d4405ddb4 /json.h | |
parent | 00ac70ae6486f373aee1fa9f5a2f0d62d5c5c096 (diff) | |
download | gpsd-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.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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; }; |