add internal resolving for SPACE/SPACES/ZERO/ZEROES/ZEROS
This would allow to use it in assignments:
(gdb) cprint myvar = spaces
and also in comparisions
(gdb) ccondition 4 myvar = all space
To be usable "everywhere" I suggest to create an internal cob_field upon request.
When searching for a variable first look for (ALL) SPACE/SPACES/ZERO/ZEROS/ZEROES (LOW-VALUE/HIGH-VALUE/LOW-VALUES/HIGH-VALUES/QUOTE
could be added, too, but those are compile-time constants that can vary and they currently are not part of cob_module so you don't know their "expected" value) and return those in the payload
.
All of the above would have:
size=1
-
data
: pointing tochar[1]
with appropriate value -
attribute->flags
:COB_FLAG_CONSTANT
-
attribute->type
:- every
ALL ...
:COB_TYPE_ALPHANUMERIC_ALL
- the
ZERO
(S/ES):COB_TYPE_NUMERIC_DISPLAY
- all others:
COB_TYPE_ALPHANUMERIC
- every