summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-13 03:10:11 +0000
committermidipix <writeonce@midipix.org>2024-02-13 03:13:49 +0000
commitc578162753123ea7d2746d2032ceb439c7c31d32 (patch)
tree686bee282ea50e6eb7854259a2e02ef350b26997 /src/output
parent32c2302764dce9380c427b748bc634825d08a2f7 (diff)
downloadslibtool-c578162753123ea7d2746d2032ceb439c7c31d32.tar.bz2
slibtool-c578162753123ea7d2746d2032ceb439c7c31d32.tar.xz
driver: rename --config as --info in anticipation of a compatible --config.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/slbt_output_info.c (renamed from src/output/slbt_output_config.c)26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/output/slbt_output_config.c b/src/output/slbt_output_info.c
index 71389e2..7498cb8 100644
--- a/src/output/slbt_output_config.c
+++ b/src/output/slbt_output_info.c
@@ -21,7 +21,7 @@
#define SLBT_KEY_WIDTH 16
#endif
-static bool slbt_output_config_line(
+static bool slbt_output_info_line(
int fd,
const char * key,
const char * value,
@@ -35,7 +35,7 @@ static bool slbt_output_config_line(
? true : false;
}
-int slbt_output_config(const struct slbt_driver_ctx * dctx)
+int slbt_output_info(const struct slbt_driver_ctx * dctx)
{
const struct slbt_common_ctx * cctx;
const char * compiler;
@@ -77,37 +77,37 @@ int slbt_output_config(const struct slbt_driver_ctx * dctx)
midwidth += SLBT_TAB_WIDTH;
midwidth &= (~(SLBT_TAB_WIDTH-1));
- if (slbt_output_config_line(fdout,"key","value","annotation",midwidth))
+ if (slbt_output_info_line(fdout,"key","value","annotation",midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"---","-----","----------",midwidth))
+ if (slbt_output_info_line(fdout,"---","-----","----------",midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"compiler",cctx->cargv[0],"",midwidth))
+ if (slbt_output_info_line(fdout,"compiler",cctx->cargv[0],"",midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"target",cctx->target,"",midwidth))
+ if (slbt_output_info_line(fdout,"target",cctx->target,"",midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"host",cctx->host.host,cctx->cfgmeta.host,midwidth))
+ if (slbt_output_info_line(fdout,"host",cctx->host.host,cctx->cfgmeta.host,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"flavor",cctx->host.flavor,cctx->cfgmeta.flavor,midwidth))
+ if (slbt_output_info_line(fdout,"flavor",cctx->host.flavor,cctx->cfgmeta.flavor,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"ar",cctx->host.ar,cctx->cfgmeta.ar,midwidth))
+ if (slbt_output_info_line(fdout,"ar",cctx->host.ar,cctx->cfgmeta.ar,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"ranlib",cctx->host.ranlib,cctx->cfgmeta.ranlib,midwidth))
+ if (slbt_output_info_line(fdout,"ranlib",cctx->host.ranlib,cctx->cfgmeta.ranlib,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"windres",cctx->host.windres,cctx->cfgmeta.windres,midwidth))
+ if (slbt_output_info_line(fdout,"windres",cctx->host.windres,cctx->cfgmeta.windres,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"dlltool",cctx->host.dlltool,cctx->cfgmeta.dlltool,midwidth))
+ if (slbt_output_info_line(fdout,"dlltool",cctx->host.dlltool,cctx->cfgmeta.dlltool,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
- if (slbt_output_config_line(fdout,"mdso",cctx->host.mdso,cctx->cfgmeta.mdso,midwidth))
+ if (slbt_output_info_line(fdout,"mdso",cctx->host.mdso,cctx->cfgmeta.mdso,midwidth))
return SLBT_SYSTEM_ERROR(dctx,0);
return 0;