Clarify what types are used where

This commit is contained in:
Eric Fischer 2014-02-07 16:01:27 -08:00
parent fee27e1353
commit 4a14e09457

View File

@ -1,6 +1,12 @@
typedef enum json_type { typedef enum json_type {
// These types can be returned by json_parse()
JSON_HASH, JSON_ARRAY, JSON_NUMBER, JSON_STRING, JSON_TRUE, JSON_FALSE, JSON_NULL, JSON_HASH, JSON_ARRAY, JSON_NUMBER, JSON_STRING, JSON_TRUE, JSON_FALSE, JSON_NULL,
JSON_COMMA, JSON_COLON, JSON_ITEM, JSON_KEY, JSON_VALUE,
// These and JSON_HASH and JSON_ARRAY can be called back by json_parse_with_separators()
JSON_COMMA, JSON_COLON,
// These are only used internally as expectations of what comes next
JSON_ITEM, JSON_KEY, JSON_VALUE,
} json_type; } json_type;
typedef struct json_object { typedef struct json_object {