aboutsummaryrefslogtreecommitdiffstats
path: root/src/loader.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-13 01:48:49 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-13 01:48:49 +0100
commita2b3551dfb9460470bd79f5648bf597c517c40d4 (patch)
treeb82f50efbd76f581a281d61009811c1afabb0733 /src/loader.c
parent3ead966f48bc47444d7ec72f46e94e73557695a5 (diff)
downloadblogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.tar.gz
blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.tar.bz2
blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.zip
*: use squareball error infrastructure
Diffstat (limited to 'src/loader.c')
-rw-r--r--src/loader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/loader.c b/src/loader.c
index 8008c3a..fd184e5 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -60,7 +60,7 @@ blogc_get_filename(const char *f)
sb_slist_t*
-blogc_template_parse_from_file(const char *f, blogc_error_t **err)
+blogc_template_parse_from_file(const char *f, sb_error_t **err)
{
if (err == NULL || *err != NULL)
return NULL;
@@ -75,7 +75,7 @@ blogc_template_parse_from_file(const char *f, blogc_error_t **err)
sb_trie_t*
-blogc_source_parse_from_file(const char *f, blogc_error_t **err)
+blogc_source_parse_from_file(const char *f, sb_error_t **err)
{
if (err == NULL || *err != NULL)
return NULL;
@@ -98,9 +98,9 @@ blogc_source_parse_from_file(const char *f, blogc_error_t **err)
sb_slist_t*
-blogc_source_parse_from_files(sb_trie_t *conf, sb_slist_t *l, blogc_error_t **err)
+blogc_source_parse_from_files(sb_trie_t *conf, sb_slist_t *l, sb_error_t **err)
{
- blogc_error_t *tmp_err = NULL;
+ sb_error_t *tmp_err = NULL;
sb_slist_t *rv = NULL;
unsigned int with_date = 0;
@@ -125,10 +125,10 @@ blogc_source_parse_from_files(sb_trie_t *conf, sb_slist_t *l, blogc_error_t **er
char *f = tmp->data;
sb_trie_t *s = blogc_source_parse_from_file(f, &tmp_err);
if (s == NULL) {
- *err = blogc_error_new_printf(BLOGC_ERROR_LOADER,
+ *err = sb_error_new_printf(BLOGC_ERROR_LOADER,
"An error occurred while parsing source file: %s\n\n%s",
f, tmp_err->msg);
- blogc_error_free(tmp_err);
+ sb_error_free(tmp_err);
tmp_err = NULL;
sb_slist_free_full(rv, (sb_free_func_t) sb_trie_free);
rv = NULL;