aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/exec.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-11 23:15:04 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-11 23:15:08 +0100
commitde43627dab99768da6bbaf6b81fb488507eef212 (patch)
treeb02c7ffd847fe76ee405decdf294a40aa4d1f5b4 /src/blogc-make/exec.h
parentd5da0fc0d43b722cb5de853c6aca6c443aafa6b9 (diff)
downloadblogc-de43627dab99768da6bbaf6b81fb488507eef212.tar.gz
blogc-de43627dab99768da6bbaf6b81fb488507eef212.tar.bz2
blogc-de43627dab99768da6bbaf6b81fb488507eef212.zip
make: added `MAKE_POST` var to `posts` and `pages` rules
This variable will have the same string that was inserted in tbe `blogcfile` when listing posts and pages, and is useful to highlight active menu items, for example.
Diffstat (limited to 'src/blogc-make/exec.h')
-rw-r--r--src/blogc-make/exec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blogc-make/exec.h b/src/blogc-make/exec.h
index 715c903..85f2a44 100644
--- a/src/blogc-make/exec.h
+++ b/src/blogc-make/exec.h
@@ -19,10 +19,10 @@ char* bm_exec_find_binary(const char *argv0, const char *bin, const char *env);
int bm_exec_command(const char *cmd, const char *input, char **output,
char **error, bc_error_t **err);
char* bm_exec_build_blogc_cmd(const char *blogc_bin, bm_settings_t *settings,
- bc_trie_t *variables, bool listing, const char *template,
- const char *output, bool dev, bool sources_stdin);
-int bm_exec_blogc(bm_ctx_t *ctx, bc_trie_t *variables, bool listing,
- bm_filectx_t *template, bm_filectx_t *output, bc_slist_t *sources,
+ bc_trie_t *global_variables, bc_trie_t *local_variables, bool listing,
+ const char *template, const char *output, bool dev, bool sources_stdin);
+int bm_exec_blogc(bm_ctx_t *ctx, bc_trie_t *global_variables, bc_trie_t *local_variables,
+ bool listing, bm_filectx_t *template, bm_filectx_t *output, bc_slist_t *sources,
bool only_first_source);
int bm_exec_blogc_runserver(bm_ctx_t *ctx, const char *host, const char *port,
const char *threads);