From 280b99c4d9975370d081dc2232367a09661044bf Mon Sep 17 00:00:00 2001 From: midipix Date: Feb 20 2024 16:53:00 +0000 Subject: struct slbt_exec_ctx_impl: added pointer to the associated driver context. --- 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;