-
Notifications
You must be signed in to change notification settings - Fork 30
COMP-X displayed with number of characters from maximum value #205
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
Open
emilienlemaire
wants to merge
7
commits into
OCamlPro:gcos4gnucobol-3.x
Choose a base branch
from
emilienlemaire:comp-x-display
base: gcos4gnucobol-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.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
590f5a3
COMP-X displayed with 3 characters when size is one byte
emilienlemaire a5cd198
Move test
emilienlemaire 9a23266
Promote tests manually
emilienlemaire 66902f7
Update changelog
emilienlemaire 24ad0c7
Edit test + fall-through comment
emilienlemaire 5870488
Update
emilienlemaire 94d9a31
Merge branch 'gcos4gnucobol-3.x' into comp-x-display
GitMensch 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,29 @@ | |
* gentable.c: generate EBCDIC/ASCII translation tables | ||
* cobc.c, help.c: new --gentable option | ||
|
||
2024-12-18 Emilien Lemaire <[email protected]> | ||
|
||
* cobgen.c, field.c, tree.c, tree.h, typeck.c: Hand merge 2015-07-02 | ||
about COMP-X. | ||
* cobgen.c (output_size): use `compx_size` when usage is COMP-X | ||
* cobgen.c (output_attr): override type to `COB_TYPE_NUMERIC_BINARY` | ||
when usage is `COMP-X` | ||
* field.c: Increment `pic_digits` values by one | ||
* field.c (setup_parameters): set the `compx_size` and override usage | ||
of `COMP-N` to `COMP-X` field when picture starts with `X` | ||
* field.c (compute_size): leave `align_size` to 1 when usage is | ||
`COMP-x` and use `compx_size` to compute size of `COMP-X` | ||
* tree.c (cb_tree_category): `COMP-X` is of category | ||
`CB_CATEGORY_NUMERIC`. | ||
* tree.c (cb_field_size): size of `COMP-X` field and references is | ||
`compx_size` | ||
* tree.h (struct cob_field): add `compx_size` to `cob_field` | ||
* typeck.c (cb_check_numeric_name): `COMP-X` is numeric name | ||
* typeck.c (cb_check_numeric_edited_name): `COMP-X` is numeric edited | ||
name | ||
* typeck.c (validate_move): `COMP-x` is validated when dst is category | ||
`ALPHANUMERIC` or `ALPHANUMERIC-EDITED`. | ||
|
||
2024-12-09 Simon Sobisch <[email protected]> | ||
|
||
* Makefile.am (cobc.1): add description using help2man -n | ||
|
@@ -7364,6 +7387,11 @@ | |
* codegen.c (output_size): Fix Bug #146 reference modification | ||
ignored ODO size | ||
|
||
2015-07-02 Ron Norman | ||
|
||
* Fixes to tree.c, tree,h typeck.c field.c codegen.c to correctly | ||
handle COMP-X data fields. This now works the same as Micro Focus | ||
|
||
2015-06-12 Edward Hart <[email protected]> | ||
|
||
* codegen.c: bug #78 - changed location of initialization of | ||
|
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 |
---|---|---|
|
@@ -914,6 +914,7 @@ struct cb_field { | |
int size; /* Field size */ | ||
int level; /* Level number */ | ||
int memory_size; /* Memory size */ | ||
int compx_size; /* Original COMP-X byte size */ | ||
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. Couldn't we just use f->pic->size for this rarely used definition, instead of adding an extra field to all variables? |
||
int offset; /* Byte offset from 01 level */ | ||
int occurs_min; /* OCCURS <min> */ | ||
int occurs_max; /* OCCURS [... TO] <max> */ | ||
|
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
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.