X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2Fdecl_struct.c;h=d17895a1beece66708fa212e5069140cfa123e91;hb=b1c7c64ca1d1d9dc79a59c0f612bd07e7a997a60;hp=14076c6b296d7cd8a72f5e001ddff4ab30ca6cd2;hpb=216e7ac3b97aed5a5d65c511dc061c78be90e79d;p=m6w6%2Fext-psi diff --git a/src/types/decl_struct.c b/src/types/decl_struct.c index 14076c6..d17895a 100644 --- a/src/types/decl_struct.c +++ b/src/types/decl_struct.c @@ -55,14 +55,14 @@ void psi_decl_struct_free(struct psi_decl_struct **s_ptr) } } -void psi_decl_struct_dump(int fd, struct psi_decl_struct *strct) +void psi_decl_struct_dump(struct psi_dump *dump, struct psi_decl_struct *strct) { - dprintf(fd, "struct %s::(%zu, %zu)", strct->name->val, strct->align, + PSI_DUMP(dump, "struct %s::(%zu, %zu)", strct->name->val, strct->align, strct->size); if (psi_plist_count(strct->args)) { - psi_decl_type_dump_args_with_layout(fd, strct->args, 0); + psi_decl_type_dump_args_with_layout(dump, strct->args, 0); } else { - dprintf(fd, ";"); + PSI_DUMP(dump, ";"); } }