diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-03-03 01:10:35 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-03-03 01:10:35 +0100 |
commit | 0c290f72a9101c196031c3bcf5ee1340b4328b80 (patch) | |
tree | 4ac5e096ffc79afbd830b6c478646f355e1156b8 /src/blogc-make/exec.h | |
parent | be39aad967f2243dd512ae9ab9510179d13abf16 (diff) | |
download | blogc-0c290f72a9101c196031c3bcf5ee1340b4328b80.tar.gz blogc-0c290f72a9101c196031c3bcf5ee1340b4328b80.tar.bz2 blogc-0c290f72a9101c196031c3bcf5ee1340b4328b80.zip |
make: reworked binary lookups, added them to ctx
Diffstat (limited to 'src/blogc-make/exec.h')
-rw-r--r-- | src/blogc-make/exec.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/blogc-make/exec.h b/src/blogc-make/exec.h index ec52eec..08cc608 100644 --- a/src/blogc-make/exec.h +++ b/src/blogc-make/exec.h @@ -15,11 +15,12 @@ #include "ctx.h" #include "settings.h" -char* bm_exec_find_binary(const char *bin, const char *env); +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(bm_settings_t *settings, bc_trie_t *variables, - bool listing, const char *template, const char *output, bool sources_stdin); +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 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, bool only_first_source); |