diff options
author | midipix <writeonce@midipix.org> | 2016-04-09 13:40:13 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-09 19:00:57 -0400 |
commit | 2a7f1c397f3476a5e3b7aede06f1415954a0c16d (patch) | |
tree | b8868b57f297ee55255ccd2c31944d46bf24029c | |
parent | 340edad7c8fd59148cd15a92b78bc7536140cc45 (diff) | |
download | slibtool-2a7f1c397f3476a5e3b7aede06f1415954a0c16d.tar.bz2 slibtool-2a7f1c397f3476a5e3b7aede06f1415954a0c16d.tar.xz |
execution context: slbt_disable_placeholders(): initial implementation.
-rw-r--r-- | include/slibtool/slibtool.h | 1 | ||||
-rw-r--r-- | src/logic/slbt_exec_ctx.c | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 1052303..bf85763 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -189,6 +189,7 @@ slbt_api int slbt_get_exec_ctx (const struct slbt_driver_ctx *, struct slbt_ex slbt_api void slbt_free_exec_ctx (struct slbt_exec_ctx *); slbt_api void slbt_reset_arguments (struct slbt_exec_ctx *); slbt_api void slbt_reset_placeholders (struct slbt_exec_ctx *); +slbt_api void slbt_disable_placeholders (struct slbt_exec_ctx *); slbt_api int slbt_exec_compile (const struct slbt_driver_ctx *, struct slbt_exec_ctx *); slbt_api int slbt_exec_link (const struct slbt_driver_ctx *, struct slbt_exec_ctx *); diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c index 620cde7..5f08526 100644 --- a/src/logic/slbt_exec_ctx.c +++ b/src/logic/slbt_exec_ctx.c @@ -370,3 +370,18 @@ void slbt_reset_placeholders(struct slbt_exec_ctx * ectx) *ectx->lout[1] = "-USLIBTOOL_PLACEHOLDER_OUTPUT_FILE"; *ectx->sentinel= 0; } + +void slbt_disable_placeholders(struct slbt_exec_ctx * ectx) +{ + *ectx->dpic = 0; + *ectx->fpic = 0; + *ectx->cass = 0; + + *ectx->noundef = 0; + *ectx->soname = 0; + *ectx->lsoname = 0; + + *ectx->lout[0] = 0; + *ectx->lout[1] = 0; + *ectx->sentinel= 0; +} |