summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-20 16:53:00 +0000
committermidipix <writeonce@midipix.org>2024-02-20 16:53:00 +0000
commit280b99c4d9975370d081dc2232367a09661044bf (patch)
tree78a7440fd9fb59bb9af0d2b1f654616ffb0ebba1
parent4560b9716ba1e8816cd3c1f44b2f506a394bc22d (diff)
downloadslibtool-280b99c4d9975370d081dc2232367a09661044bf.tar.bz2
slibtool-280b99c4d9975370d081dc2232367a09661044bf.tar.xz
struct slbt_exec_ctx_impl: added pointer to the associated driver context.
-rw-r--r--src/internal/slibtool_driver_impl.h1
-rw-r--r--src/logic/slbt_exec_ctx.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 5bc421d..b364ea3 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -165,6 +165,7 @@ struct slbt_driver_ctx_alloc {
};
struct slbt_exec_ctx_impl {
+ const struct slbt_driver_ctx * dctx;
int argc;
char * args;
char * shadow;
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 5b4b087..0e02c23 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -153,6 +153,7 @@ static struct slbt_exec_ctx_impl * slbt_exec_ctx_alloc(
return 0;
}
+ ictx->dctx = dctx;
ictx->args = args;
ictx->argc = argc;