From f3d47a5271ef3cbe5755d1dd51bd96508aa0c3bc Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Feb 2024 02:16:22 +0000 Subject: library api's: _ectx_ (command execution context) namespace overhaul. --- src/logic/slbt_exec_compile.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/logic/slbt_exec_compile.c') diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index 3941bf6..d651607 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -180,7 +180,7 @@ int slbt_exec_compile( /* context */ if (ectx) slbt_reset_placeholders(ectx); - else if ((ret = slbt_get_exec_ctx(dctx,&ectx))) + else if ((ret = slbt_ectx_get_exec_ctx(dctx,&ectx))) return ret; else actx = ectx; @@ -193,7 +193,7 @@ int slbt_exec_compile( if (cctx->drvflags & SLBT_DRIVER_SHARED) if (slbt_mkdir(dctx,ectx->ldirname)) { ret = SLBT_SYSTEM_ERROR(dctx,ectx->ldirname); - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return ret; } @@ -231,22 +231,22 @@ int slbt_exec_compile( if (!(cctx->drvflags & SLBT_DRIVER_SILENT)) { if (slbt_output_compile(dctx,ectx)) { - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return SLBT_NESTED_ERROR(dctx); } } if ((slbt_spawn(ectx,true) < 0) && (ectx->pid < 0)) { - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return SLBT_SYSTEM_ERROR(dctx,0); } else if (ectx->exitcode) { - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_COMPILE_ERROR); } if (cctx->drvflags & SLBT_DRIVER_STATIC) - slbt_reset_argvector(ectx); + slbt_ectx_reset_argvector(ectx); } /* static archive object */ @@ -266,23 +266,23 @@ int slbt_exec_compile( if (!(cctx->drvflags & SLBT_DRIVER_SILENT)) { if (slbt_output_compile(dctx,ectx)) { - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return SLBT_NESTED_ERROR(dctx); } } if ((slbt_spawn(ectx,true) < 0) && (ectx->pid < 0)) { - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return SLBT_SYSTEM_ERROR(dctx,0); } else if (ectx->exitcode) { - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_COMPILE_ERROR); } } ret = slbt_create_object_wrapper(dctx,ectx); - slbt_free_exec_ctx(actx); + slbt_ectx_free_exec_ctx(actx); return ret ? SLBT_NESTED_ERROR(dctx) : 0; } -- cgit v1.2.3