From 2a7f1c397f3476a5e3b7aede06f1415954a0c16d Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 9 Apr 2016 13:40:13 -0400 Subject: execution context: slbt_disable_placeholders(): initial implementation. --- include/slibtool/slibtool.h | 1 + src/logic/slbt_exec_ctx.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+) 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; +} -- cgit v1.2.3