Mercurial > hg > dmlib
changeset 2584:9f26a93d7e70
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 14:25:08 +0200 |
parents | b0fc26d9fc26 |
children | ef6c826c5b7a |
files | tools/fanalyze.c |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/fanalyze.c Sun Mar 20 23:30:23 2022 +0200 +++ b/tools/fanalyze.c Thu Dec 08 14:25:08 2022 +0200 @@ -143,7 +143,7 @@ FA_ANALYZE, FA_GREP, FA_OFFSET, - FA_MATCHES, + FA_DIFF, }; @@ -172,8 +172,8 @@ { 10, 'g', "grep" , "Binary grep <val>[,<val2>...][:<le|be>[8|16|32]]", OPT_ARGREQ }, { 12, 'o', "offset" , "Show data in offset <offs>[,<offs2>...][:<le|be>[8|16|32][d|x]]", OPT_ARGREQ }, - { 14, 'm', "match" , "Find matching sequences minimum of <n> bytes long", OPT_NONE }, - { 16, 'n', "minmatch" , "Minimum match sequence length", OPT_ARGREQ }, + { 14, 'd', "diff" , "Side-by-side sliding binary diff", OPT_NONE }, + { 16, 'm', "minmatch" , "Minimum match sequence length", OPT_ARGREQ }, { 18, 'O', "offset-mode" , "Output -o offset list when in grep mode (-g)", OPT_NONE }, }; @@ -514,7 +514,7 @@ return argParseGrepValue(optArg, FA_OFFSET) == DMERR_OK; case 14: - setMode = FA_MATCHES; + setMode = FA_DIFF; break; case 16: @@ -665,7 +665,8 @@ memset(&dmSequences, 0, sizeof(dmSequences)); - dmInitProg("fanalyze", "Simple tool for file format analysis", + dmInitProg("fanalyze", + "Simple tool for file format analysis", "0.4", NULL, NULL); dmVerbosity = 0; @@ -979,7 +980,7 @@ } else - if (setMode == FA_MATCHES) + if (setMode == FA_DIFF) { // // Attempt to find matching sequences of N+