- in the listing header: show only the filename of the processed source, even when it is specified as path (reason: when a full path is specified the source file name is often truncated completely)
- after the first listing header: show the complete name for the source (as specified on command line), with line continuation if necessary
after this line: show command line used for compilation (may need line continuation) and environment variables that actually change the compilation only if set (COB_CONFIG_DIR, COB_COPY_DIR/COBCPY, maybe more later [including system wide options via directive file/environment variable) - done a bit different, no system wide options yet; adding the variables will make the testsuite much ore complex, so that should be reconsidered
- add
-fno-ttimestamp
(with getopt a user can abbreviate that to -fno-ttime
); to "suppress timestamp in listing headers"; note: this may provide more space for the title (not sure if we'd use it anywhere)
- new option, which also fixes the TODO from
set_standard_title()
:
CB_FLAG_RQ (cb_listing_with_title, 1, "ttitle",
_(" -fttitle=<title> set listing title;\n"
" defaults to package name and version"))
- adjust the testsuite - only use UNIFY_LISTING in one place, in all the others set
-fttitle="GnuCOBOL V.R.P" -fno-ttimestamp
(the best option is possibly to add a new $COMPILE_LISTING to atlocal which uses $COMPILE_ONLY -fttitle="GnuCOBOL V.R.P" -fno-ttimestamp -tlines=0
an use that
Last edit: Simon Sobisch 2022-12-17
Only a FYI ping @nberth - no request to do that anytime soon, but if you tackle the listing more, this may be a good thing to look at. There should be an option to disable this, similar to the diagnostics.
Note: integrating the command line was added in [r4906], but may be adjusted (for example: I haven't checked yet what happens with a command line with a lot of arguments that would take 4 lines to be printed), the rest is open.
Related
Commit: [r4906]
I suggest you show the path/filename justified from the right so just the left hand edge is missing, that way at least the most significant bit is printed.
Show like for IBM and MF one sub command per line left hand side and may be in alpha order.
Diff: