diff options
author | midipix <writeonce@midipix.org> | 2024-02-20 17:29:18 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-20 17:29:18 +0000 |
commit | 33a569a279a1c0acbf06fe6622866bd79f111685 (patch) | |
tree | 0fafd5353e258d17b127bbd468076ee0150cc609 /src/output | |
parent | d577a3308c18cb3b8d5fc46fc5fcf8a8fb8ad1a5 (diff) | |
download | slibtool-33a569a279a1c0acbf06fe6622866bd79f111685.tar.bz2 slibtool-33a569a279a1c0acbf06fe6622866bd79f111685.tar.xz |
utility api's: _output_ namespace: simplified the execution context interfaces.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/slbt_output_exec.c | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/src/output/slbt_output_exec.c b/src/output/slbt_output_exec.c index 0232024..3f95af0 100644 --- a/src/output/slbt_output_exec.c +++ b/src/output/slbt_output_exec.c @@ -90,11 +90,14 @@ static int slbt_output_exec_plain( } int slbt_output_exec( - const struct slbt_driver_ctx * dctx, const struct slbt_exec_ctx * ectx, const char * step) { - int fdout = slbt_driver_fdout(dctx); + const struct slbt_driver_ctx * dctx; + int fdout; + + dctx = (slbt_get_exec_ictx(ectx))->dctx; + fdout = slbt_driver_fdout(dctx); if (dctx->cctx->drvflags & SLBT_DRIVER_ANNOTATE_NEVER) return slbt_output_exec_plain(dctx,ectx,step); @@ -109,37 +112,27 @@ int slbt_output_exec( return slbt_output_exec_plain(dctx,ectx,step); } -int slbt_output_compile( - const struct slbt_driver_ctx * dctx, - const struct slbt_exec_ctx * ectx) +int slbt_output_compile(const struct slbt_exec_ctx * ectx) { - return slbt_output_exec(dctx,ectx,"compile"); + return slbt_output_exec(ectx,"compile"); } -int slbt_output_execute( - const struct slbt_driver_ctx * dctx, - const struct slbt_exec_ctx * ectx) +int slbt_output_execute(const struct slbt_exec_ctx * ectx) { - return slbt_output_exec(dctx,ectx,"execute"); + return slbt_output_exec(ectx,"execute"); } -int slbt_output_install( - const struct slbt_driver_ctx * dctx, - const struct slbt_exec_ctx * ectx) +int slbt_output_install(const struct slbt_exec_ctx * ectx) { - return slbt_output_exec(dctx,ectx,"install"); + return slbt_output_exec(ectx,"install"); } -int slbt_output_link( - const struct slbt_driver_ctx * dctx, - const struct slbt_exec_ctx * ectx) +int slbt_output_link(const struct slbt_exec_ctx * ectx) { - return slbt_output_exec(dctx,ectx,"link"); + return slbt_output_exec(ectx,"link"); } -int slbt_output_uninstall( - const struct slbt_driver_ctx * dctx, - const struct slbt_exec_ctx * ectx) +int slbt_output_uninstall(const struct slbt_exec_ctx * ectx) { - return slbt_output_exec(dctx,ectx,"uninstall"); + return slbt_output_exec(ectx,"uninstall"); } |