diff options
author | midipix <writeonce@midipix.org> | 2025-06-03 19:49:04 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-06-03 23:03:20 +0000 |
commit | 4da2abbc49104cf9a6acb56f8a7ff2dc23aedbfb (patch) | |
tree | 6de5a1b7bc5819fdc2905ca709945f0339a99e2b /src | |
parent | d1d41c22c8042f6ed152f44d0e6a9e2a27dbeb99 (diff) | |
download | perk-4da2abbc49104cf9a6acb56f8a7ff2dc23aedbfb.tar.bz2 perk-4da2abbc49104cf9a6acb56f8a7ff2dc23aedbfb.tar.xz |
api: perk_output.h: added pretty-printer bits, refactored pre-alpha defs.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/pe_driver_ctx.c | 10 | ||||
-rw-r--r-- | src/internal/perk_driver_impl.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index 77a51d9..af9a30d 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -225,6 +225,10 @@ static int pe_cctx_update( pretty = entry->arg; break; + case TAG_VERBOSE: + cctx->fmtflags |= PERK_PRETTY_VERBOSE; + break; + case TAG_CATEGORY: cctx->fmtflags |= PERK_OUTPUT_IMAGE_CATEGORY; break; @@ -306,6 +310,12 @@ static int pe_cctx_update( if (pretty && !strcmp(pretty,"yaml")) { cctx->fmtflags |= PERK_PRETTY_YAML; + } else if (pretty && !strcmp(pretty,"posix")) { + cctx->fmtflags |= PERK_PRETTY_POSIX; + + } else if (pretty && !strcmp(pretty,"hexdata")) { + cctx->fmtflags |= PERK_PRETTY_HEXDATA; + } else if (pretty && !strcmp(pretty,"dlltool")) { cctx->fmtflags |= PERK_PRETTY_DLLTOOL; } diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h index 3948eae..569d2d2 100644 --- a/src/internal/perk_driver_impl.h +++ b/src/internal/perk_driver_impl.h @@ -21,6 +21,7 @@ enum app_tags { TAG_VERSION, TAG_CMD, TAG_PRETTY, + TAG_VERBOSE, TAG_CATEGORY, TAG_SECTIONS, TAG_SYMBOLS, |