summaryrefslogtreecommitdiffhomepage
path: root/src/arbits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-03 05:32:21 +0000
committermidipix <writeonce@midipix.org>2024-02-03 05:32:21 +0000
commit11d50e798beffc0e353a5a146c70eca348b306d9 (patch)
treec6346ff6bca36d3f69c3d8b19f826dc92f485697 /src/arbits
parente7c28b37271902687a69290aec91c72eba29567d (diff)
downloadslibtool-11d50e798beffc0e353a5a146c70eca348b306d9.tar.bz2
slibtool-11d50e798beffc0e353a5a146c70eca348b306d9.tar.xz
slbt_ar_output_members_yaml(): produce a more data-oriented yaml output.
Diffstat (limited to 'src/arbits')
-rw-r--r--src/arbits/output/slbt_ar_output_members.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arbits/output/slbt_ar_output_members.c b/src/arbits/output/slbt_ar_output_members.c
index 7388f38..2a63c73 100644
--- a/src/arbits/output/slbt_ar_output_members.c
+++ b/src/arbits/output/slbt_ar_output_members.c
@@ -155,7 +155,7 @@ static int slbt_ar_output_members_yaml(
struct ar_meta_member_info ** memberp;
const char * name;
- if (slbt_dprintf(fdctx->fdout," - Members = {\n") < 0)
+ if (slbt_dprintf(fdctx->fdout," - Members:\n") < 0)
return SLBT_SYSTEM_ERROR(dctx,0);
for (memberp=meta->a_memberv; *memberp; memberp++) {
@@ -168,14 +168,14 @@ static int slbt_ar_output_members_yaml(
default:
name = (*memberp)->ar_file_header.ar_member_name;
- if (slbt_dprintf(fdctx->fdout," - %s\n",name) < 0)
+ if (slbt_dprintf(
+ fdctx->fdout,
+ " - [ member: %s ]\n",
+ name) < 0)
return SLBT_SYSTEM_ERROR(dctx,0);
}
}
- if (slbt_dprintf(fdctx->fdout," }\n") < 0)
- return SLBT_SYSTEM_ERROR(dctx,0);
-
return 0;
}