summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-16 09:10:16 +0000
committermidipix <writeonce@midipix.org>2021-04-16 10:24:25 +0000
commit430d5ab66c4a03939bad4d2fd8437260de8edc19 (patch)
tree174cc1ce1997620c86bdb443f0c2d2db8871d790 /src/logic
parent89f5e3327da73886837264325c7c4484da0fc257 (diff)
downloadslibtool-430d5ab66c4a03939bad4d2fd8437260de8edc19.tar.bz2
slibtool-430d5ab66c4a03939bad4d2fd8437260de8edc19.tar.xz
Whitespace meditation.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_execute.c3
-rw-r--r--src/logic/slbt_exec_link.c33
2 files changed, 22 insertions, 14 deletions
diff --git a/src/logic/slbt_exec_execute.c b/src/logic/slbt_exec_execute.c
index 91a1cb7..b397306 100644
--- a/src/logic/slbt_exec_execute.c
+++ b/src/logic/slbt_exec_execute.c
@@ -50,7 +50,8 @@ int slbt_exec_execute(
if (script) {
/* wrapper */
- if ((size_t)snprintf(wrapper,sizeof(wrapper),"%s%s.exe.wrapper",
+ if ((size_t)snprintf(wrapper,sizeof(wrapper),
+ "%s%s.exe.wrapper",
(script[0] == '/') ? "" : "./",
script)
>= sizeof(wrapper)) {
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index b1c242c..59eebd4 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -359,9 +359,13 @@ static int slbt_emit_fdwrap_amend_dl_path(
if ((fdwrap = slbt_exec_get_fdwrapper(ectx)) >= 0) {
if (buf[0] == '/') {
- fdwrap_fmt = "DL_PATH=\"${DL_PATH}${COLON}%s\"\nCOLON=':'\n\n";
+ fdwrap_fmt =
+ "DL_PATH=\"${DL_PATH}${COLON}%s\"\n"
+ "COLON=':'\n\n";
} else {
- fdwrap_fmt = "DL_PATH=\"${DL_PATH}${COLON}${DL_PATH_FIXUP}%s\"\nCOLON=':'\n\n";
+ fdwrap_fmt =
+ "DL_PATH=\"${DL_PATH}${COLON}${DL_PATH_FIXUP}%s\"\n"
+ "COLON=':'\n\n";
}
if (slbt_dprintf(fdwrap,fdwrap_fmt,buf) < 0) {
@@ -498,9 +502,9 @@ static int slbt_exec_link_adjust_argument_vector(
close(fd);
if ((ret = slbt_emit_fdwrap_amend_dl_path(
- dctx,ectx,depsmeta,"%s",ldir)) < 0) {
+ dctx,ectx,depsmeta,
+ "%s",ldir)) < 0)
return ret;
- }
}
*aarg++ = *carg++;
@@ -568,12 +572,14 @@ static int slbt_exec_link_adjust_argument_vector(
mark = strrchr(*carg,'/');
*mark = 0;
-
*slash = 0;
- if ((ret = slbt_emit_fdwrap_amend_dl_path(dctx,ectx,depsmeta,
- "%s%s%s",
- ((arg[0] == '/') ? "" : cwd),
- ((arg[0] == '/') ? "" : "/"),arg)) < 0) {
+
+ if ((ret = slbt_emit_fdwrap_amend_dl_path(
+ dctx,ectx,depsmeta,
+ "%s%s%s",
+ ((arg[0] == '/') ? "" : cwd),
+ ((arg[0] == '/') ? "" : "/"),
+ arg)) < 0) {
return ret;
}
@@ -649,14 +655,15 @@ static int slbt_exec_link_adjust_argument_vector(
darg++;
if ((ret = slbt_emit_fdwrap_amend_dl_path(
- dctx,ectx,depsmeta,"%s/%s",lib,depdir)) < 0) {
+ dctx,ectx,depsmeta,
+ "%s/%s",lib,depdir)) < 0)
return ret;
- }
+
} else if ((mark[0] == '-') && (mark[1] == 'L')) {
if ((ret = slbt_emit_fdwrap_amend_dl_path(
- dctx,ectx,depsmeta,"%s",&mark[2])) < 0) {
+ dctx,ectx,depsmeta,
+ "%s",&mark[2])) < 0)
return ret;
- }
}
}
}