From f11c1faa5ab033f3b2ba1f6b3cd5f5db454c48ec Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 14 Nov 2016 14:35:37 -0500 Subject: libary api: pre-alpha: code maintenance: removed struct pe_io_ctx. --- src/driver/pe_amain.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/driver/pe_amain.c') diff --git a/src/driver/pe_amain.c b/src/driver/pe_amain.c index cd345d9..d23e9fe 100644 --- a/src/driver/pe_amain.c +++ b/src/driver/pe_amain.c @@ -46,15 +46,11 @@ static ssize_t pe_version(struct pe_driver_ctx * dctx) verclr[4],verinfo->commit,verclr[5]); } -static ssize_t pe_paragraph_break(const struct pe_driver_ctx * dctx, int * fpara) +static ssize_t pe_paragraph_break(int * fpara) { if (*fpara) { *fpara = 0; - - if (dctx->cctx->ioctx->fdout >= 0) - return write(dctx->cctx->ioctx->fdout,"\n",1); - else - return fputc('\n',stdout); + return fputc('\n',stdout); } else return 0; } @@ -75,7 +71,7 @@ static void pe_perform_unit_actions( } if ((flags & PERK_OUTPUT_IMPORT_LIBS) || (flags & PERK_OUTPUT_IMPORT_SYMS)) { - pe_paragraph_break(dctx,&fpara); + pe_paragraph_break(&fpara); pe_output_import_libraries(dctx,uctx->meta,0); fpara += (uctx->meta->summary.nimplibs > 0); } -- cgit v1.2.3