From 1826b5ad70ebd5db751ed0d4eee6f857a7001100 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 19 Apr 2015 02:30:26 -0300 Subject: remove specific type used to store sources --- src/renderer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/renderer.c') diff --git a/src/renderer.c b/src/renderer.c index 7d20b39..ffd46c9 100644 --- a/src/renderer.c +++ b/src/renderer.c @@ -30,7 +30,7 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources) b_string_t *str = b_string_new(); - blogc_source_t *tmp_source = NULL; + b_trie_t *tmp_source = NULL; char *config_value = NULL; unsigned int if_count = 0; @@ -87,7 +87,7 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources) case BLOGC_TEMPLATE_VARIABLE_STMT: if (stmt->value != NULL && tmp_source != NULL) { - config_value = b_trie_lookup(tmp_source->config, stmt->value); + config_value = b_trie_lookup(tmp_source, stmt->value); if (config_value != NULL) b_string_append(str, config_value); break; @@ -108,7 +108,7 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources) case BLOGC_TEMPLATE_IF_STMT: if (stmt->value != NULL && tmp_source != NULL) { - if (b_trie_lookup(tmp_source->config, stmt->value) == NULL) { + if (b_trie_lookup(tmp_source, stmt->value) == NULL) { if_skip = if_count; // at this point we can just skip anything, counting the -- cgit v1.2.3-18-g5258