yml: yml_load(): optionally allocates an error string (on error)

This commit is contained in:
Daniel Eklöf 2019-01-01 23:25:36 +01:00
parent 3dc7d0e39d
commit 5abd825137
3 changed files with 24 additions and 8 deletions

2
yml.h
View file

@ -4,7 +4,7 @@
struct yml_node;
struct yml_node *yml_load(FILE *yml);
struct yml_node *yml_load(FILE *yml, char **error);
void yml_destroy(struct yml_node *root);
bool yml_is_scalar(const struct yml_node *node);