More sensible way of passing errors back to caller

This commit is contained in:
Eric Fischer
2014-02-06 12:13:23 -08:00
parent f8465828e5
commit 42283ece0b
3 changed files with 54 additions and 39 deletions
+1 -1
View File
@@ -15,5 +15,5 @@ typedef struct json_object {
int length;
} json_object;
json_object *json_parse(FILE *f, json_object *current);
json_object *json_parse(FILE *f, json_object *current, char **error);
json_object *json_hash_get(json_object *o, char *s);