summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_compile.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-19 02:16:22 +0000
committermidipix <writeonce@midipix.org>2024-02-19 02:59:31 +0000
commitf3d47a5271ef3cbe5755d1dd51bd96508aa0c3bc (patch)
treeaa015f7118ab335f16c820e9b814d83884a06e21 /src/logic/slbt_exec_compile.c
parent8dc63ddc326ec54709c580a400536fcc4ef62622 (diff)
downloadslibtool-f3d47a5271ef3cbe5755d1dd51bd96508aa0c3bc.tar.bz2
slibtool-f3d47a5271ef3cbe5755d1dd51bd96508aa0c3bc.tar.xz
library api's: _ectx_ (command execution context) namespace overhaul.
Diffstat (limited to 'src/logic/slbt_exec_compile.c')
-rw-r--r--src/logic/slbt_exec_compile.c20
1 files changed, 10 insertions, 10 deletions
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;
}