-
Notifications
You must be signed in to change notification settings - Fork 45
NATIONAL + UTF8 tests, ref-mod: fix byte offset/size with poor man's display conversion #280
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
base: gitside-gnucobol-3.x
Are you sure you want to change the base?
Changes from all commits
9160c96
aa1d851
e08d619
ac06521
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1260,6 +1260,9 @@ output_data (cb_tree x) | |
| /* Offset */ | ||
| if (r->offset) { | ||
| output (" + "); | ||
| if (CB_TREE_CLASS (x) == CB_CLASS_NATIONAL) { | ||
| output (CB_STRINGIFY (COB_NATIONAL_SIZE) " * "); | ||
| } | ||
| output_index (r->offset); | ||
| } | ||
|
|
||
|
|
@@ -1317,6 +1320,9 @@ output_size (const cb_tree x) | |
| break; | ||
| } | ||
| if (r->length) { | ||
| if (CB_TREE_CLASS (x) == CB_CLASS_NATIONAL) { | ||
| output (CB_STRINGIFY (COB_NATIONAL_SIZE) " * "); | ||
| } | ||
| output_integer (r->length); | ||
| } else if (r->offset && f->flag_any_length) { | ||
| output ("%s%d.size - ", CB_PREFIX_FIELD, f->id); | ||
|
|
@@ -1358,6 +1364,9 @@ output_size (const cb_tree x) | |
| } | ||
| if (r->offset) { | ||
| output (" - "); | ||
| if (CB_TREE_CLASS (x) == CB_CLASS_NATIONAL) { | ||
| output (CB_STRINGIFY (COB_NATIONAL_SIZE) " * "); | ||
| } | ||
| output_index (r->offset); | ||
| } | ||
| } | ||
|
|
@@ -1600,7 +1609,11 @@ output_attr (const cb_tree x) | |
| struct cb_field *f = CB_FIELD (r->value); | ||
| flags = 0; | ||
| if (r->offset) { | ||
| id = lookup_attr (COB_TYPE_ALPHANUMERIC, 0, 0, 0, NULL, 0); | ||
| if (CB_TREE_CLASS (x) == CB_CLASS_NATIONAL) { | ||
| id = lookup_attr (COB_TYPE_NATIONAL, 0, 0, 0, NULL, 0); | ||
| } else { | ||
| id = lookup_attr (COB_TYPE_ALPHANUMERIC, 0, 0, 0, NULL, 0); | ||
| } | ||
|
Comment on lines
+1612
to
+1616
Collaborator
Author
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. That's correct. Something similar may be needed for the national literals (then to be added directly above). |
||
| } else { | ||
| int type = cb_tree_type (x, f); | ||
| switch (type) { | ||
|
|
||
|
GitMensch marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,11 @@ | ||
|
|
||
| 2026-03-23 Preston Horne <preston.m.horne@vanderbilt.edu> | ||
|
|
||
| * testsuite.src/run_refmod.at: add static and dynamic | ||
| reference-modification tests for NATIONAL and UTF-8 fields | ||
| * testsuite.src/data_display.at: add DISPLAY test for NATIONAL | ||
| fields and literals with HEX-OF | ||
|
|
||
|
Comment on lines
+2
to
+8
Collaborator
Author
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. not obvious: --> nice (but not enforeced) to be part of the log message 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. Ok I will keep this and know this for next time |
||
| 2025-12-04 Simon Sobisch <simonsobisch@gnu.org> | ||
|
|
||
| * atlocal.in: reordered to correctly use perf/valgrind definitions also | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.