Add >>IMP INCLUDE directive#143
Add >>IMP INCLUDE directive#143engboris wants to merge 12 commits intoOCamlPro:gcos4gnucobol-3.xfrom
Conversation
b2307d5 to
3936fe9
Compare
GitMensch
left a comment
There was a problem hiding this comment.
Thanks for this first take - please copy the tests for --include and adjust those for the directive. In gnbucobol.texi and NEWS add a remark in the --include description, that the directive can be used as an alternative.
|
We don't need two lists, but we need to reset the list for each source file specified on the command line to the state from cobc command line.
Therefore either backup the whole list and restore it (similar to cb_source_format) or just use two lists and reset the second before each new source file. I'm ok with both ways but think the two-list approach is easier to handle.
|
c035033 to
7bb6097
Compare
2ad6625 to
7b94002
Compare
GitMensch
left a comment
There was a problem hiding this comment.
still some requested changes - but we're on the finish line with this PR
d1abc18 to
67f4382
Compare
GitMensch
left a comment
There was a problem hiding this comment.
"approved with minor changes"
f81defa to
6a16582
Compare
GitMensch
left a comment
There was a problem hiding this comment.
changes to the testcases needed, overal fine
331e050 to
0df9e5b
Compare
0df9e5b to
21b5d51
Compare
a387b82 to
6760a54
Compare
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## gcos4gnucobol-3.x #143 +/- ##
=====================================================
- Coverage 77.56% 67.80% -9.76%
=====================================================
Files 33 33
Lines 60230 60413 +183
Branches 15834 15888 +54
=====================================================
- Hits 46717 40966 -5751
- Misses 13513 13538 +25
- Partials 0 5909 +5909
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@GitMensch friendly ping |
GitMensch
left a comment
There was a problem hiding this comment.
nearly done, I'm positive that we reach the commit-state tomorrow :-)
Thanks for working on this again!
|
Should be good now. You were right, cobc aborted where compiling several COBOL files within the same command line. I added new checks: |
GitMensch
left a comment
There was a problem hiding this comment.
LGTM, good that we ensured to not break something (I've found a lot ways to do so, which is often the reason I consider those checks .... nowadays - it is possible but hard to just deduce that when adding new code in that area for the first time).
Thanks again!
7d5f5ae to
3efed41
Compare
|
I did some mistakes while rebasing and fixing conflicts. I'm trying to fix it now. |
|
@GitMensch Could you do a last quick check? I rebased and fixed conflicts but I may have introduced unwanted code although it is unlikely (all the tests are successful). I'm sorry for the inconvenience! |
|
That's fine. [I've just checked the last "Compare", then the additional fix] |
|
What is the status of this PR ? Is it ready to be merged ? |
Yes, it should be ready (already marked with "Ready for SVN") |
Ah, yeah, I overlooked the "Ready for SVN" tag. |
|
yes, just waits for the commit since two months |
|
Merged in SVN @ 5448. |
Closes #114 and completes FR176 on SourceForge.
A new directive
>> IMP INCLUDE FILE_1 ... FILE_nis introduced, allowing to include multiple C headers. Only files with name finishing by.hare allowed.I'm not sure about that but I marked the feature with
/* GnuCOBOL 3.3 extension*/.