-
Notifications
You must be signed in to change notification settings - Fork 45
Initial addition of CONSTANT SECTION #278
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
Draft
RamyGeorge
wants to merge
10
commits into
OCamlPro:gitside-gnucobol-3.x
Choose a base branch
from
RamyGeorge:based-storage-parsing
base: gitside-gnucobol-3.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ebb3b05
Initial addition of CONSTANT SECTION
RamyGeorge 7c8d4bb
Corrections and follow up on previous CONSTANT SECTION changes
RamyGeorge 73d2b01
TEsts, Fdump and symbols
RamyGeorge 08997c8
trailing whitespace fix
RamyGeorge 96e7ac8
NULLABLE and CONSTANT RECORD
RamyGeorge 1283d1a
field.c addition
RamyGeorge 156a99e
Fixed testing and field.c adjustments
RamyGeorge 5cf52b0
CONSTANT RECORD and NULLABLE redefinition
RamyGeorge 20a07e0
News Changelog and older requests
RamyGeorge ccee361
Fixed Constant_Record token position
RamyGeorge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the changes in this file miss an update to listings.at, verifying it to work as expected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
RamyGeorge marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6299,3 +6299,54 @@ AT_CHECK([$COMPILE -febcdic-symbolic-characters -febcdic-table=ebcdic500_latin1 | |
| AT_CHECK([$COBCRUN_DIRECT ./prog], [0], []) | ||
|
|
||
| AT_CLEANUP | ||
|
|
||
|
|
||
| AT_SETUP([CONSTANT SECTION with reference modification]) | ||
| AT_KEYWORDS([extension constant move refmod]) | ||
|
|
||
| # Expected to fail until reference modification is | ||
| # fully implemented for CONSTANT literals. | ||
| AT_XFAIL_IF([true]) | ||
|
Comment on lines
+6307
to
+6309
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as noted before: that should already be fully supported |
||
|
|
||
| AT_DATA([prog.cob],[ | ||
| IDENTIFICATION DIVISION. | ||
| PROGRAM-ID. prog. | ||
| DATA DIVISION. | ||
| CONSTANT SECTION. | ||
| 01 MY-CONST PIC X(5) VALUE "ABCDE". | ||
| WORKING-STORAGE SECTION. | ||
| 01 RESULT-FLD PIC X(2). | ||
| PROCEDURE DIVISION. | ||
| MOVE MY-CONST (2:2) TO RESULT-FLD. | ||
| DISPLAY RESULT-FLD NO ADVANCING. | ||
| STOP RUN. | ||
| ]) | ||
|
|
||
| AT_CHECK([$COMPILE -Wno-unfinished prog.cob], [0], [], []) | ||
| AT_CHECK([$COBCRUN_DIRECT ./prog], [0], [BC]) | ||
|
|
||
| AT_CLEANUP | ||
|
|
||
|
|
||
| AT_SETUP([MOVE CONSTANT SECTION to field]) | ||
| AT_KEYWORDS([extension constant move]) | ||
|
|
||
| AT_DATA([prog.cob],[ | ||
| IDENTIFICATION DIVISION. | ||
| PROGRAM-ID. prog. | ||
| DATA DIVISION. | ||
| WORKING-STORAGE SECTION. | ||
| 01 RESULT-FLD PIC 9(3). | ||
| CONSTANT SECTION. | ||
| 01 MY-CONST PIC 9(3) VALUE 123. | ||
| PROCEDURE DIVISION. | ||
| MOVE MY-CONST TO RESULT-FLD. | ||
| DISPLAY RESULT-FLD. | ||
| STOP RUN. | ||
| ]) | ||
|
|
||
| AT_CHECK([$COMPILE -Wno-unfinished prog.cob], [0], [], []) | ||
| AT_CHECK([$COBCRUN_DIRECT ./prog], [0], [123 | ||
| ]) | ||
| AT_CLEANUP | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.