From a05389c24a1156f461ba256a3073d08467d778ec Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 9 Feb 2024 20:59:02 +0000 Subject: install mode: invoke the argv interfaces via the driver-provided wrappers. --- src/logic/slbt_exec_install.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index 0f4f38e..909b28f 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -12,8 +12,6 @@ #include #include -#define ARGV_DRIVER - #include #include "slibtool_driver_impl.h" #include "slibtool_install_impl.h" @@ -41,15 +39,15 @@ static int slbt_install_usage( switch (noclr) { case 0: - argv_usage(fdout,header,optv,arg); + slbt_argv_usage(fdout,header,optv,arg); break; default: - argv_usage_plain(fdout,header,optv,arg); + slbt_argv_usage_plain(fdout,header,optv,arg); break; } - argv_free(meta); + slbt_argv_free(meta); return SLBT_USAGE; } @@ -59,7 +57,7 @@ static int slbt_exec_install_fail( struct argv_meta * meta, int ret) { - argv_free(meta); + slbt_argv_free(meta); slbt_free_exec_ctx(actx); return ret; } @@ -770,7 +768,7 @@ int slbt_exec_install( } /* missing arguments? */ - argv_optv_init(slbt_install_options,optv); + slbt_optv_init(slbt_install_options,optv); if (!iargv[1] && (dctx->cctx->drvflags & SLBT_DRIVER_VERBOSITY_USAGE)) return slbt_install_usage( @@ -780,7 +778,7 @@ int slbt_exec_install( dctx->cctx->drvflags & SLBT_DRIVER_ANNOTATE_NEVER); /* argv meta */ - if (!(meta = argv_get( + if (!(meta = slbt_argv_get( iargv,optv, dctx->cctx->drvflags & SLBT_DRIVER_VERBOSITY_ERRORS ? ARGV_VERBOSITY_ERRORS @@ -916,7 +914,7 @@ int slbt_exec_install( } } - argv_free(meta); + slbt_argv_free(meta); slbt_free_exec_ctx(actx); return 0; -- cgit v1.2.3