aboutsummaryrefslogtreecommitdiffstats
path: root/src/loader.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 02:30:26 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 02:30:26 -0300
commit1826b5ad70ebd5db751ed0d4eee6f857a7001100 (patch)
tree90cdf5cac51ed30ca12d4ea390f65bbca5242de4 /src/loader.c
parent86b551fdf2a8bf5c6e3cebcc463ee830d65ced94 (diff)
downloadblogc-1826b5ad70ebd5db751ed0d4eee6f857a7001100.tar.gz
blogc-1826b5ad70ebd5db751ed0d4eee6f857a7001100.tar.bz2
blogc-1826b5ad70ebd5db751ed0d4eee6f857a7001100.zip
remove specific type used to store sources
Diffstat (limited to 'src/loader.c')
-rw-r--r--src/loader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/loader.c b/src/loader.c
index 35ecdcf..7eefa77 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -64,7 +64,7 @@ blogc_template_parse_from_file(const char *f, blogc_error_t **err)
}
-blogc_source_t*
+b_trie_t*
blogc_source_parse_from_file(const char *f, blogc_error_t **err)
{
if (err == NULL || *err != NULL)
@@ -73,7 +73,7 @@ blogc_source_parse_from_file(const char *f, blogc_error_t **err)
char *s = blogc_file_get_contents(f, &len, err);
if (s == NULL)
return NULL;
- blogc_source_t *rv = blogc_source_parse(s, len, err);
+ b_trie_t *rv = blogc_source_parse(s, len, err);
free(s);
return rv;
}
@@ -87,14 +87,14 @@ blogc_source_parse_from_files(b_slist_t *l, blogc_error_t **err)
for (b_slist_t *tmp = l; tmp != NULL; tmp = tmp->next) {
char *f = tmp->data;
- blogc_source_t *s = blogc_source_parse_from_file(f, &tmp_err);
+ b_trie_t *s = blogc_source_parse_from_file(f, &tmp_err);
if (s == NULL) {
*err = blogc_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);
tmp_err = NULL;
- b_slist_free_full(rv, blogc_source_free);
+ b_slist_free_full(rv, (b_free_func_t) b_trie_free);
rv = NULL;
break;
}