-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flags to make listing easy to diff #105
Add flags to make listing easy to diff #105
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
I still have many tests in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could go live tomorrow - but -ftversion
is really out of the question, so please adjust.
And just as a note: we don't need to add the other two to NEWS; but as this is a global change to testsuite.src/listing.at this is one of the cases where a Changelog entry for the testsuite is good.
cobc/cobc.c
Outdated
if (cb_listing_with_timestamp){ | ||
strftime (cb_listing_date, (size_t)CB_LISTING_DATE_MAX, | ||
LISTING_TIMESTAMP_FORMAT, ¤t_compile_tm); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the idea of cb_listing_with_timestamp == 0
is to drop this completely; this provides more space (even if we only use that later) and can be a benefit to the user - while the hard values below cannot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to leave this code unchanged (= original) and instead check cb_listing_with_timestamp
in print_program_header()
.
The current implementation would generate a trailing space for --tlines=0
which may be a reason for the testsuite failures you currently see.
This comment was marked as outdated.
This comment was marked as outdated.
959c94b
to
ce6a132
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## gcos4gnucobol-3.x #105 +/- ##
=====================================================
+ Coverage 65.17% 65.19% +0.01%
=====================================================
Files 31 31
Lines 58384 58393 +9
Branches 15380 15384 +4
=====================================================
+ Hits 38051 38067 +16
+ Misses 14402 14396 -6
+ Partials 5931 5930 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment was marked as outdated.
This comment was marked as outdated.
Argh, tests run fine with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only minor changes needed (place where cb_listing_with_timestamp
is read), which may also fix the tests - as soon as this is done and the test run - feel free to commit to svn, so we can go on with the REPLACE issue
one thing that is not mandatory but may be done in this PR: move --tlines
to -ftlines
(drop from help.c, keep setting in cobc.c as compatibility for now, only the definition moves to flag.def)
Note: I took the freedom to adjust the help output in flags.def.
cobc/cobc.c
Outdated
if (cb_listing_with_timestamp){ | ||
strftime (cb_listing_date, (size_t)CB_LISTING_DATE_MAX, | ||
LISTING_TIMESTAMP_FORMAT, ¤t_compile_tm); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to leave this code unchanged (= original) and instead check cb_listing_with_timestamp
in print_program_header()
.
The current implementation would generate a trailing space for --tlines=0
which may be a reason for the testsuite failures you currently see.
Just inspected the testsuite.log: it is exactly as I've thought: -GnuCOBOL V.R.P prog.cob
+GnuCOBOL V.R.P prog.cob To fix that change the place where |
afeb5ca
to
87a0695
Compare
I will commit this version to SVN as soon as the CI passes, to be able to switch to the other PR. |
( I just pushed a commit in |
The point was that there is a trailing timestamp, right adjusted. |
87a0695
to
4654158
Compare
LGTM (we can right-adjust the filename for |
New flags: -fno-ttimestamp: suppress time stamp -fttitle=<title>: display <title> instead of package name and version Partially implements feature request #294
minor spacing issue and dropped info from help that never was true
4654158
to
766bfc1
Compare
Merged with whitespaces removed at the end of line |
follow-up to the discussion originally in #75, implementing part of https://sourceforge.net/p/gnucobol/feature-requests/294/
New flags: