gnu/gcc/afd69fe25cd653ddd2001f9904b3ff367b0fd476 cobol: Integrate PICTURE automaton into parser.
Technical change only. Remove leftover code and rearrange for
clarity. Use usual compiler include files. Prepare to replace parsing
of alphanumeric-edited and numeric-edited.
This commit also commences new whitespace policy: no committed file
will have trailing whitespace.
gcc/cobol/ChangeLog:
* picture.cc (symbol_currency): Remove test harness mock-up.
(cbl_internal_error): Same.
(yy_flex_debug): Undefine, per usual.
(seek_paren): Use ISALNUM.
(is_valid_picture): Use repeat_count to resolve size.
* scan_ante.h (repeat_count): Remove declaration.
* util.cc (cbl_prototype_ok): Whitespace.
(cdf_file): Same.
(repeat_count): Same.
(cbl_field_t::encode_numeric): Same.
(cbl_field_t::report_invalid_initial_value): Same.
(literal_subscript_oob): Same.
(valid_move): Same.
(hex2numstr): Same.
(cobol_filename): Same.
(gcc_location_set): Same.
(parse_file): Same.
(iso_cobol_word): Same.
* util.h (repeat_count): Declare function.
4 files changed