aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.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/renderer.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/renderer.c')
-rw-r--r--src/renderer.c6
1 files changed, 3 insertions, 3 deletions
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