summaryrefslogtreecommitdiffhomepage
path: root/src/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-02 12:01:40 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:38 -0500
commit08a8944a7ecd8faa1fbe09e4bb0abbd3970735a6 (patch)
tree8f0d4091d24fd11e934b7bfbe85a53420912ad52 /src/output
parent951ee88a077c949e4eb3c5a7d4489f57443cf081 (diff)
downloadperk-08a8944a7ecd8faa1fbe09e4bb0abbd3970735a6.tar.bz2
perk-08a8944a7ecd8faa1fbe09e4bb0abbd3970735a6.tar.xz
output: implemented --pretty=dlltool for exported symbols.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/pe_output_export_symbols.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/output/pe_output_export_symbols.c b/src/output/pe_output_export_symbols.c
index 642d539..0ab3539 100644
--- a/src/output/pe_output_export_symbols.c
+++ b/src/output/pe_output_export_symbols.c
@@ -16,9 +16,11 @@
static int pretty_header(const struct pe_common_ctx * cctx, FILE * fout)
{
- return (cctx->fmtflags & PERK_PRETTY_YAML)
- ? fputs("exports:\n",fout)
- : 0;
+ if (cctx->fmtflags & PERK_PRETTY_YAML)
+ return fputs("exports:\n",fout);
+ else if (cctx->fmtflags & PERK_PRETTY_DLLTOOL)
+ return fputs("EXPORTS\n",fout);
+ return 0;
}
static int pretty_export_item(const struct pe_common_ctx * cctx, const char * name, FILE * fout)