![]() |
GnuCOBOL
2.0
A free COBOL compiler
|
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include "cobc.h"
#include "tree.h"
Data Structures | |
struct | int_node |
Functions | |
static size_t | hash (const unsigned char *s) |
static void | lookup_word (struct cb_reference *p, const char *name) |
static void | file_error (cb_tree name, const char *clause, const char errtype) |
static void * | make_tree (const enum cb_tag tag, const enum cb_category category, const size_t size) |
static cb_tree | make_constant (const enum cb_category category, const char *val) |
static cb_tree | make_constant_label (const char *name) |
static size_t | cb_name_1 (char *s, cb_tree x) |
static cb_tree | make_intrinsic (cb_tree name, struct cb_intrinsic_table *cbp, cb_tree args, cb_tree field, cb_tree refmod, const int isuser) |
static cb_tree | global_check (struct cb_reference *r, cb_tree items, size_t *ambiguous) |
static int | iso_8601_func (const enum cb_intr_enum intr) |
static int | valid_format (const enum cb_intr_enum intr, const char *format) |
static const char * | try_get_constant_data (cb_tree val) |
static int | offset_time_format (const char *format) |
static int | offset_arg_param_num (const enum cb_intr_enum intr) |
static int | valid_const_date_time_args (const cb_tree tree, const struct cb_intrinsic_table *intr, cb_tree args) |
char * | cb_to_cname (const char *s) |
struct cb_literal * | build_literal (const enum cb_category category, const void *data, const size_t size) |
char * | cb_name (cb_tree x) |
enum cb_category | cb_tree_category (cb_tree x) |
enum cb_class | cb_tree_class (cb_tree x) |
int | cb_category_is_alpha (cb_tree x) |
int | cb_tree_type (const cb_tree x, const struct cb_field *f) |
int | cb_fits_int (const cb_tree x) |
int | cb_fits_long_long (const cb_tree x) |
int | cb_get_int (const cb_tree x) |
cob_s64_t | cb_get_long_long (const cb_tree x) |
cob_u64_t | cb_get_u_long_long (const cb_tree x) |
void | cb_init_constants (void) |
cb_tree | cb_build_list (cb_tree purpose, cb_tree value, cb_tree chain) |
cb_tree | cb_list_append (cb_tree l1, cb_tree l2) |
cb_tree | cb_list_add (cb_tree l, cb_tree x) |
cb_tree | cb_pair_add (cb_tree l, cb_tree x, cb_tree y) |
cb_tree | cb_list_reverse (cb_tree l) |
int | cb_list_length (cb_tree l) |
void | cb_list_map (cb_tree(*func)(cb_tree x), cb_tree l) |
const char * | cb_define (cb_tree name, cb_tree val) |
static struct nested_list * | add_contained_prog (struct nested_list *parent_list, struct cb_program *child_prog) |
struct cb_program * | cb_build_program (struct cb_program *last_program, const int nest_level) |
void | cb_add_common_prog (struct cb_program *prog) |
void | cb_insert_common_prog (struct cb_program *prog, struct cb_program *comprog) |
cb_tree | cb_int (const int n) |
cb_tree | cb_int_hex (const int n) |
cb_tree | cb_build_string (const void *data, const size_t size) |
cb_tree | cb_build_comment (const char *str) |
cb_tree | cb_build_direct (const char *str, const unsigned int flagnl) |
cb_tree | cb_build_debug (const cb_tree target, const char *str, const cb_tree fld) |
cb_tree | cb_build_debug_call (struct cb_label *target) |
cb_tree | cb_build_alphabet_name (cb_tree name) |
cb_tree | cb_build_class_name (cb_tree name, cb_tree list) |
cb_tree | cb_build_locale_name (cb_tree name, cb_tree list) |
cb_tree | cb_build_system_name (const enum cb_system_name_category category, const int token) |
cb_tree | cb_build_numeric_literal (const int sign, const void *data, const int scale) |
cb_tree | cb_build_numsize_literal (const void *data, const size_t size, const int sign) |
cb_tree | cb_build_alphanumeric_literal (const void *data, const size_t size) |
cb_tree | cb_concat_literals (const cb_tree x1, const cb_tree x2) |
cb_tree | cb_build_decimal (const int id) |
struct cb_picture * | cb_build_binary_picture (const char *str, const cob_u32_t size, const cob_u32_t sign) |
cb_tree | cb_build_picture (const char *str) |
cb_tree | cb_build_field (cb_tree name) |
cb_tree | cb_build_implicit_field (cb_tree name, const int len) |
cb_tree | cb_build_constant (cb_tree name, cb_tree value) |
struct cb_field * | cb_field_add (struct cb_field *f, struct cb_field *p) |
struct cb_field * | cb_field_founder (const struct cb_field *f) |
struct cb_field * | cb_field_variable_size (const struct cb_field *f) |
unsigned int | cb_field_variable_address (const struct cb_field *fld) |
int | cb_field_subordinate (const struct cb_field *pfld, const struct cb_field *f) |
void | cb_build_symbolic_chars (const cb_tree sym_list, const cb_tree alphabet) |
struct cb_report * | build_report (cb_tree name) |
struct cb_file * | build_file (cb_tree name) |
void | validate_file (struct cb_file *f, cb_tree name) |
void | finalize_file (struct cb_file *f, struct cb_field *records) |
cb_tree | cb_build_reference (const char *name) |
cb_tree | cb_build_filler (void) |
cb_tree | cb_build_field_reference (struct cb_field *f, cb_tree ref) |
static void | cb_define_system_name (const char *name) |
void | cb_set_system_names (void) |
cb_tree | cb_ref (cb_tree x) |
cb_tree | cb_build_binary_op (cb_tree x, const int op, cb_tree y) |
cb_tree | cb_build_binary_list (cb_tree l, const int op) |
cb_tree | cb_build_funcall (const char *name, const int argc, const cb_tree a1, const cb_tree a2, const cb_tree a3, const cb_tree a4, const cb_tree a5, const cb_tree a6, const cb_tree a7, const cb_tree a8, const cb_tree a9, const cb_tree a10) |
cb_tree | cb_build_cast (const enum cb_cast_type type, const cb_tree val) |
cb_tree | cb_build_cast_int (const cb_tree val) |
cb_tree | cb_build_cast_llint (const cb_tree val) |
cb_tree | cb_build_label (cb_tree name, struct cb_label *section) |
cb_tree | cb_build_assign (const cb_tree var, const cb_tree val) |
cb_tree | cb_build_initialize (const cb_tree var, const cb_tree val, const cb_tree rep, const unsigned int def, const unsigned int is_statement, const unsigned int no_filler_init) |
cb_tree | cb_build_search (const int flag_all, const cb_tree table, const cb_tree var, const cb_tree end_stmt, const cb_tree whens) |
cb_tree | cb_build_call (const cb_tree name, const cb_tree args, const cb_tree stmt1, const cb_tree stmt2, const cb_tree returning, const cob_u32_t is_system_call, const int convention) |
cb_tree | cb_build_cancel (const cb_tree target) |
cb_tree | cb_build_alter (const cb_tree source, const cb_tree target) |
cb_tree | cb_build_goto (const cb_tree target, const cb_tree depending) |
cb_tree | cb_build_if (const cb_tree test, const cb_tree stmt1, const cb_tree stmt2, const unsigned int is_if) |
cb_tree | cb_build_perform (const enum cb_perform_type type) |
cb_tree | cb_build_perform_varying (cb_tree name, cb_tree from, cb_tree by, cb_tree until) |
struct cb_statement * | cb_build_statement (const char *name) |
cb_tree | cb_build_continue (void) |
cb_tree | cb_build_set_attribute (const struct cb_field *fld, const int val_on, const int val_off) |
cb_tree | cb_build_any_intrinsic (cb_tree args) |
cb_tree | cb_build_intrinsic (cb_tree name, cb_tree args, cb_tree refmod, const int isuser) |
Variables | |
static enum cb_class | category_to_class_table [] |
static int | category_is_alphanumeric [] |
static struct int_node * | int_node_table = NULL |
static char * | scratch_buff = NULL |
static char * | pic_buff = NULL |
static int | filler_id = 1 |
static int | class_id = 0 |
static int | toplev_count |
static struct cb_program * | container_progs [64] |
static const char *const | cb_const_subs [] |
static struct cb_intrinsic_table | userbp |
cb_tree | cb_any |
cb_tree | cb_true |
cb_tree | cb_false |
cb_tree | cb_null |
cb_tree | cb_zero |
cb_tree | cb_one |
cb_tree | cb_space |
cb_tree | cb_low |
cb_tree | cb_high |
cb_tree | cb_norm_low |
cb_tree | cb_norm_high |
cb_tree | cb_quote |
cb_tree | cb_int0 |
cb_tree | cb_int1 |
cb_tree | cb_int2 |
cb_tree | cb_int3 |
cb_tree | cb_int4 |
cb_tree | cb_int5 |
cb_tree | cb_i [COB_MAX_SUBSCRIPTS] |
cb_tree | cb_error_node |
cb_tree | cb_intr_whencomp = NULL |
cb_tree | cb_standard_error_handler = NULL |
unsigned int | gen_screen_ptr = 0 |
#define CB_FILE_ERR_INVALID 3 |
Referenced by file_error(), and validate_file().
#define CB_FILE_ERR_INVALID_FT 2 |
Referenced by file_error(), and validate_file().
#define CB_FILE_ERR_REQUIRED 1 |
Referenced by file_error(), and validate_file().
#define PIC_ALPHABETIC 0x01 |
Referenced by cb_build_picture().
#define PIC_ALPHABETIC_EDITED (PIC_ALPHABETIC | PIC_EDITED) |
Referenced by cb_build_picture().
#define PIC_ALPHANUMERIC (PIC_ALPHABETIC | PIC_NUMERIC) |
Referenced by cb_build_picture().
#define PIC_ALPHANUMERIC_EDITED (PIC_ALPHANUMERIC | PIC_EDITED) |
Referenced by cb_build_picture().
#define PIC_EDITED 0x08 |
Referenced by cb_build_picture().
#define PIC_NATIONAL 0x04 |
Referenced by cb_build_picture().
#define PIC_NATIONAL_EDITED (PIC_NATIONAL | PIC_EDITED) |
Referenced by cb_build_picture().
#define PIC_NUMERIC 0x02 |
Referenced by cb_build_picture().
#define PIC_NUMERIC_EDITED (PIC_NUMERIC | PIC_EDITED) |
Referenced by cb_build_picture().
|
staticread |
References cobc_parse_malloc(), nested_list::nested_prog, and nested_list::next.
Referenced by cb_add_common_prog(), cb_build_program(), and cb_insert_common_prog().
|
read |
References CB_TAG_LITERAL, cobc_parse_malloc(), cb_literal::data, make_tree(), p, and cb_literal::size.
Referenced by cb_build_alphanumeric_literal(), cb_build_numeric_literal(), cb_build_numsize_literal(), and cb_validate_program_data().
void cb_add_common_prog | ( | struct cb_program * | prog | ) |
References add_contained_prog(), cb_program::common_prog_list, and cb_program::nested_level.
References CB_CATEGORY_UNKNOWN, cb_define(), CB_TAG_ALPHABET_NAME, cb_to_cname(), CB_TREE, cb_alphabet_name::cname, make_tree(), cb_alphabet_name::name, NULL, and p.
cb_tree cb_build_alphanumeric_literal | ( | const void * | data, |
const size_t | size | ||
) |
References build_literal(), CB_CATEGORY_ALPHANUMERIC, and CB_TREE.
Referenced by cb_build_assignment_name(), cb_build_registers(), cb_build_symbolic_chars(), cb_validate_collating(), finalize_file(), read_literal(), scan_define_options(), scan_x(), scan_z(), and while().
References cb_program::alter_list, CB_BUILD_PAIR, CB_CATEGORY_UNKNOWN, cb_list_append(), CB_TAG_ALTER, CB_TREE, current_program, make_tree(), p, cb_alter::source, and cb_alter::target.
Referenced by cb_emit_alter().
References CB_CATEGORY_UNKNOWN, CB_TAG_ASSIGN, CB_TREE, make_tree(), p, cb_assign::val, and cb_assign::var.
Referenced by cb_build_length(), cb_build_move(), cb_build_move_literal(), cb_build_move_num_zero(), cb_build_optim_add(), and cb_build_optim_sub().
References cb_build_binary_op(), CB_CHAIN, and CB_VALUE.
References _, CB_CATEGORY_BOOLEAN, CB_CATEGORY_DATA_POINTER, CB_CATEGORY_NUMERIC, CB_CATEGORY_UNKNOWN, cb_check_numeric_value(), CB_CLASS_BOOLEAN, CB_CLASS_POINTER, cb_error_node, cb_error_x(), CB_FIELD, cb_ref(), CB_REF_OR_FIELD_P, CB_TAG_BINARY_OP, CB_TREE, CB_TREE_CATEGORY, CB_TREE_CLASS, COBC_ABORT, cobc_abort_pr(), make_tree(), cb_binary_op::op, p, cb_binary_op::x, and cb_binary_op::y.
Referenced by build_cond_88(), build_evaluate(), cb_build_add(), cb_build_binary_list(), cb_build_cond(), cb_build_div(), cb_build_length_1(), cb_build_mul(), cb_build_optim_add(), cb_build_optim_sub(), cb_build_search_all(), cb_build_sub(), cb_build_write_advancing_lines(), cb_expr_shift(), cb_expr_shift_sign(), evaluate_test(), and expr_reduce().
|
read |
References cb_picture::category, CB_CATEGORY_NUMERIC, CB_TAG_PICTURE, cobc_check_string(), cb_picture::digits, cb_picture::have_sign, make_tree(), cb_picture::orig, cb_picture::scale, sign, and cb_picture::size.
Referenced by validate_field_1().
cb_tree cb_build_call | ( | const cb_tree | name, |
const cb_tree | args, | ||
const cb_tree | stmt1, | ||
const cb_tree | stmt2, | ||
const cb_tree | returning, | ||
const cob_u32_t | is_system_call, | ||
const int | convention | ||
) |
References cb_call::args, cb_call::call_returning, CB_CATEGORY_UNKNOWN, CB_TAG_CALL, CB_TREE, cb_call::convention, cb_call::is_system, make_tree(), cb_call::name, p, cb_call::stmt1, and cb_call::stmt2.
Referenced by cb_emit_call().
References CB_CATEGORY_UNKNOWN, CB_TAG_CANCEL, CB_TREE, make_tree(), p, and cb_cancel::target.
Referenced by cb_emit_cancel().
cb_tree cb_build_cast | ( | const enum cb_cast_type | type, |
const cb_tree | val | ||
) |
References cb_cast::cast_type, CB_CAST_INTEGER, CB_CATEGORY_NUMERIC, CB_CATEGORY_UNKNOWN, CB_TAG_CAST, CB_TREE, make_tree(), p, and cb_cast::val.
References cb_cast::cast_type, CB_CAST_INTEGER, CB_CATEGORY_NUMERIC, CB_TAG_CAST, CB_TREE, make_tree(), p, and cb_cast::val.
Referenced by cb_build_identifier(), cb_build_move(), cb_build_optim_add(), cb_build_optim_cond(), cb_build_optim_sub(), cb_build_write_advancing_lines(), cb_emit_sort_init(), cb_emit_stop_run(), and output_goto().
References cb_cast::cast_type, CB_CAST_LONG_INT, CB_CATEGORY_NUMERIC, CB_TAG_CAST, CB_TREE, make_tree(), p, and cb_cast::val.
Referenced by cb_build_move_literal(), cb_build_optim_cond(), decimal_expand(), and output_perform().
cb_tree cb_build_comment | ( | const char * | str | ) |
References CB_CATEGORY_ALPHANUMERIC, cb_source_file, cb_source_line, CB_TAG_DIRECT, CB_TREE, cb_direct::line, make_tree(), and p.
Referenced by build_evaluate(), cb_build_direct(), cb_emit_evaluate(), and while().
References cb_tree_common::category, cb_build_field(), CB_FIELD, CB_LIST_INIT, CB_STORAGE_CONSTANT, and cb_tree_category().
Referenced by build_nested_special(), cb_add_const_var(), cb_build_registers(), cb_build_symbolic_chars(), and cb_define_switch_name().
cb_tree cb_build_continue | ( | void | ) |
References CB_CATEGORY_UNKNOWN, CB_TAG_CONTINUE, CB_TREE, make_tree(), and p.
Referenced by cb_emit_continue().
References CB_CATEGORY_ALPHANUMERIC, CB_FIELD_PTR, cb_source_file, cb_source_line, CB_TAG_DEBUG, CB_TREE, cobc_parse_strdup(), cb_debug::fld, make_tree(), NULL, p, cb_debug::size, cb_debug::target, and cb_debug::value.
Referenced by cb_build_perform_varying(), cb_check_field_debug(), cb_emit_close(), cb_emit_open(), cb_emit_perform(), cb_emit_read(), cb_emit_rewrite(), cb_emit_sort_input(), cb_emit_sort_output(), cb_emit_write(), emit_entry(), output_alter(), output_cond_debug(), output_file_error(), output_funcall_debug(), output_goto(), output_goto_1(), output_perform(), output_perform_call(), output_perform_until(), and output_stmt().
References CB_CATEGORY_ALPHANUMERIC, cb_source_file, cb_source_line, CB_TAG_DEBUG_CALL, CB_TREE, make_tree(), p, and cb_debug_call::target.
Referenced by cb_build_perform_varying(), cb_check_field_debug(), cb_emit_close(), cb_emit_open(), cb_emit_read(), cb_emit_rewrite(), and cb_emit_write().
cb_tree cb_build_decimal | ( | const int | id | ) |
References CB_CATEGORY_NUMERIC, CB_TAG_DECIMAL, CB_TREE, cb_decimal::id, make_tree(), and p.
Referenced by decimal_alloc().
cb_tree cb_build_direct | ( | const char * | str, |
const unsigned int | flagnl | ||
) |
References cb_build_comment(), and CB_DIRECT.
Referenced by cb_check_needs_break(), and cb_emit_evaluate().
References CB_CATEGORY_UNKNOWN, cb_define(), cb_field_id, CB_STORAGE_WORKING, CB_TAG_FIELD, CB_TREE, CB_USAGE_DISPLAY, cb_field::ename, cb_field::id, make_tree(), cb_field::name, NULL, cb_field::occurs_max, p, cb_field::storage, and cb_field::usage.
Referenced by cb_build_constant(), cb_build_field_tree(), cb_build_implicit_field(), cb_build_index(), cb_validate_program_data(), and finalize_file().
References cb_tree_common::category, cb_build_reference(), CB_CATEGORY_UNKNOWN, CB_REFERENCE, CB_TREE, and cb_field::name.
Referenced by build_cond_88(), cb_build_identifier(), cb_build_length_1(), cb_emit_read(), cb_emit_return(), cb_emit_set_false(), cb_emit_set_true(), cb_validate_program_data(), emit_corresponding(), emit_move_corresponding(), finalize_file(), output_initial_values(), output_initialize(), output_initialize_compound(), output_param(), and output_screen_init().
cb_tree cb_build_filler | ( | void | ) |
References cb_build_reference(), CB_REFERENCE, cb_source_line, filler_id, and cb_tree_common::source_line.
Referenced by cb_build_debug_item(), cb_build_field_tree(), and cb_build_length().
cb_tree cb_build_funcall | ( | const char * | name, |
const int | argc, | ||
const cb_tree | a1, | ||
const cb_tree | a2, | ||
const cb_tree | a3, | ||
const cb_tree | a4, | ||
const cb_tree | a5, | ||
const cb_tree | a6, | ||
const cb_tree | a7, | ||
const cb_tree | a8, | ||
const cb_tree | a9, | ||
const cb_tree | a10 | ||
) |
References CB_CATEGORY_UNKNOWN, CB_TAG_GOTO, CB_TREE, cb_goto::depending, make_tree(), p, and cb_goto::target.
Referenced by cb_emit_exit(), and cb_emit_goto().
cb_tree cb_build_if | ( | const cb_tree | test, |
const cb_tree | stmt1, | ||
const cb_tree | stmt2, | ||
const unsigned int | is_if | ||
) |
References CB_CATEGORY_UNKNOWN, CB_TAG_IF, CB_TREE, cb_if::is_if, make_tree(), p, cb_if::stmt1, cb_if::stmt2, and cb_if::test.
Referenced by build_evaluate(), cb_build_if_check_break(), cb_emit_if(), and cb_emit_search_all().
References cb_build_field(), cb_build_picture(), CB_FIELD, CB_PICTURE, cb_validate_field(), and cb_field::pic.
Referenced by cb_validate_program_data(), and finalize_file().
cb_tree cb_build_initialize | ( | const cb_tree | var, |
const cb_tree | val, | ||
const cb_tree | rep, | ||
const unsigned int | def, | ||
const unsigned int | is_statement, | ||
const unsigned int | no_filler_init | ||
) |
References CB_CATEGORY_UNKNOWN, CB_TAG_INITIALIZE, CB_TREE, cob_u8_t, cb_initialize::flag_default, cb_initialize::flag_init_statement, cb_initialize::flag_no_filler_init, make_tree(), p, cb_initialize::rep, cb_initialize::val, and cb_initialize::var.
Referenced by cb_emit_allocate(), cb_emit_initialize(), and output_initial_values().
References _, cb_intrinsic_table::args, cb_build_length(), CB_CATEGORY_NUMERIC, CB_CATEGORY_NUMERIC_EDITED, cb_error_node, cb_error_x(), cb_get_int(), CB_INTR_ABS, CB_INTR_ACOS, CB_INTR_ANNUITY, CB_INTR_ASIN, CB_INTR_ATAN, CB_INTR_BOOLEAN_OF_INTEGER, CB_INTR_BYTE_LENGTH, CB_INTR_CHAR, CB_INTR_CHAR_NATIONAL, CB_INTR_COMBINED_DATETIME, CB_INTR_CONCATENATE, CB_INTR_COS, CB_INTR_CURRENCY_SYMBOL, CB_INTR_CURRENT_DATE, CB_INTR_DATE_OF_INTEGER, CB_INTR_DATE_TO_YYYYMMDD, CB_INTR_DAY_OF_INTEGER, CB_INTR_DAY_TO_YYYYDDD, CB_INTR_DISPLAY_OF, CB_INTR_E, CB_INTR_EXCEPTION_FILE, CB_INTR_EXCEPTION_FILE_N, CB_INTR_EXCEPTION_LOCATION, CB_INTR_EXCEPTION_LOCATION_N, CB_INTR_EXCEPTION_STATEMENT, CB_INTR_EXCEPTION_STATUS, CB_INTR_EXP, CB_INTR_EXP10, CB_INTR_FACTORIAL, CB_INTR_FORMATTED_CURRENT_DATE, CB_INTR_FORMATTED_DATE, CB_INTR_FORMATTED_DATETIME, CB_INTR_FORMATTED_TIME, CB_INTR_FRACTION_PART, CB_INTR_HIGHEST_ALGEBRAIC, CB_INTR_INTEGER, CB_INTR_INTEGER_OF_BOOLEAN, CB_INTR_INTEGER_OF_DATE, CB_INTR_INTEGER_OF_DAY, CB_INTR_INTEGER_OF_FORMATTED_DATE, CB_INTR_INTEGER_PART, CB_INTR_LENGTH, CB_INTR_LOCALE_COMPARE, CB_INTR_LOCALE_DATE, CB_INTR_LOCALE_TIME, CB_INTR_LOCALE_TIME_FROM_SECS, CB_INTR_LOG, CB_INTR_LOG10, CB_INTR_LOWER_CASE, CB_INTR_LOWEST_ALGEBRAIC, CB_INTR_MAX, CB_INTR_MEAN, CB_INTR_MEDIAN, CB_INTR_MIDRANGE, CB_INTR_MIN, CB_INTR_MOD, CB_INTR_MODULE_CALLER_ID, CB_INTR_MODULE_DATE, CB_INTR_MODULE_FORMATTED_DATE, CB_INTR_MODULE_ID, CB_INTR_MODULE_PATH, CB_INTR_MODULE_SOURCE, CB_INTR_MODULE_TIME, CB_INTR_MON_DECIMAL_POINT, CB_INTR_MON_THOUSANDS_SEP, CB_INTR_NATIONAL_OF, CB_INTR_NUM_DECIMAL_POINT, CB_INTR_NUM_THOUSANDS_SEP, CB_INTR_NUMVAL, CB_INTR_NUMVAL_C, CB_INTR_NUMVAL_F, CB_INTR_ORD, CB_INTR_ORD_MAX, CB_INTR_ORD_MIN, CB_INTR_PI, CB_INTR_PRESENT_VALUE, CB_INTR_RANDOM, CB_INTR_RANGE, CB_INTR_REM, CB_INTR_REVERSE, CB_INTR_SECONDS_FROM_FORMATTED_TIME, CB_INTR_SECONDS_PAST_MIDNIGHT, CB_INTR_SIGN, CB_INTR_SIN, CB_INTR_SQRT, CB_INTR_STANDARD_COMPARE, CB_INTR_STANDARD_DEVIATION, CB_INTR_STORED_CHAR_LENGTH, CB_INTR_SUBSTITUTE, CB_INTR_SUBSTITUTE_CASE, CB_INTR_SUM, CB_INTR_TAN, CB_INTR_TEST_DATE_YYYYMMDD, CB_INTR_TEST_DAY_YYYYDDD, CB_INTR_TEST_FORMATTED_DATETIME, CB_INTR_TEST_NUMVAL, CB_INTR_TEST_NUMVAL_C, CB_INTR_TEST_NUMVAL_F, CB_INTR_TRIM, CB_INTR_UPPER_CASE, CB_INTR_VARIANCE, CB_INTR_WHEN_COMPILED, cb_intr_whencomp, CB_INTR_YEAR_TO_YYYY, CB_LIST_INIT, cb_list_length(), CB_LITERAL_P, CB_NAME, CB_PAIR_X, CB_PAIR_Y, CB_REF_OR_FIELD_P, cb_tree_category(), CB_VALUE, current_program, cb_intrinsic_table::implemented, cb_intrinsic_table::intr_enum, iso_8601_func(), lookup_intrinsic(), make_intrinsic(), cb_program::max_call_param, cb_intrinsic_table::min_args, cb_intrinsic_table::name, NULL, cb_intrinsic_table::refmod, unlikely, and valid_const_date_time_args().
References CB_CATEGORY_UNKNOWN, cb_define(), cb_id, CB_TAG_LABEL, CB_TREE, cobc_parse_malloc(), cb_label::id, make_tree(), cb_label::name, cb_para_label::next, cb_label::orig_name, p, cb_para_label::para, cb_label::para_label, cb_label::section, and cb_label::section_id.
Referenced by emit_entry(), and make_constant_label().
References CB_CATEGORY_UNKNOWN, CB_TAG_LIST, CB_TREE, cb_list::chain, make_tree(), p, cb_list::purpose, value, and cb_list::value.
cb_tree cb_build_numeric_literal | ( | const int | sign, |
const void * | data, | ||
const int | scale | ||
) |
References build_literal(), CB_CATEGORY_NUMERIC, CB_TREE, p, cb_literal::scale, and cb_literal::sign.
Referenced by cb_build_const_length(), cb_build_length(), cb_emit_allocate(), cb_init_constants(), scan_define_options(), scan_floating_numeric(), scan_h(), and scan_numeric().
cb_tree cb_build_numsize_literal | ( | const void * | data, |
const size_t | size, | ||
const int | sign | ||
) |
References build_literal(), CB_CATEGORY_NUMERIC, CB_TREE, p, and cb_literal::sign.
Referenced by cb_check_lit_subs().
cb_tree cb_build_perform | ( | const enum cb_perform_type | type | ) |
References CB_CATEGORY_UNKNOWN, CB_TAG_PERFORM, CB_TREE, make_tree(), p, and cb_perform::perform_type.
Referenced by cb_build_perform_exit(), cb_build_perform_forever(), cb_build_perform_once(), cb_build_perform_times(), and cb_build_perform_until().
References cb_build_add(), cb_build_debug(), cb_build_debug_call(), CB_CATEGORY_UNKNOWN, cb_debug_contents, cb_debug_name, CB_FIELD, CB_FIELD_P, CB_FIELD_PTR, cb_list_add(), CB_LIST_INIT, cb_ref(), CB_TAG_PERFORM_VARYING, CB_TREE, current_program, current_statement, cb_program::flag_debugging, cb_statement::flag_in_debug, cb_perform_varying::from, make_tree(), cb_perform_varying::name, NULL, p, cb_perform_varying::step, and cb_perform_varying::until.
cb_tree cb_build_picture | ( | const char * | str | ) |
References _, cb_picture::category, CB_CATEGORY_ALPHABETIC, CB_CATEGORY_ALPHANUMERIC, CB_CATEGORY_ALPHANUMERIC_EDITED, CB_CATEGORY_NUMERIC, CB_CATEGORY_NUMERIC_EDITED, CB_CATEGORY_UNKNOWN, cb_error(), CB_TAG_PICTURE, CB_TREE, COB_MAX_DIGITS, COB_NATIONAL_SIZE, COB_SMALL_BUFF, cob_u32_t, cobc_check_string(), cobc_main_malloc(), cobc_parse_malloc(), cb_program::currency_symbol, current_program, cb_program::decimal_point, cb_picture::digits, cb_picture::have_sign, cb_picture::lenstr, make_tree(), cb_picture::orig, p, PIC_ALPHABETIC, PIC_ALPHABETIC_EDITED, PIC_ALPHANUMERIC, PIC_ALPHANUMERIC_EDITED, pic_buff, PIC_EDITED, PIC_NATIONAL, PIC_NATIONAL_EDITED, PIC_NUMERIC, PIC_NUMERIC_EDITED, cb_picture::real_digits, cb_picture::scale, cb_picture::size, and cb_picture::str.
Referenced by cb_build_debug_item(), cb_build_implicit_field(), cb_validate_program_data(), check_picture_item(), scan_picture(), setup_parameters(), and validate_field_1().
|
read |
References add_contained_prog(), cb_program::alphabet_name_list, cb_clear_real_field(), CB_FIELD_PTR, cb_flag_functions_all, cb_reset_78(), cb_reset_global_78(), cb_program::cb_return_code, CB_WORD_TABLE_SIZE, cb_program::class_name_list, cb_program::class_spec_list, cb_program::classification, cobc_cs_check, cobc_in_procedure, cobc_in_repository, cobc_parse_malloc(), cb_program::collating_sequence, cb_program::currency_symbol, cb_program::decimal_point, cb_program::flag_console_is_crt, cb_program::flag_trailing_separate, cb_program::function_spec_list, functions_are_all, cb_program::global_file_list, cb_program::interface_spec_list, cb_program::locale_list, cb_program::mnemonic_spec_list, cb_program::nested_level, cb_program::nested_prog_list, cb_program::next_program, cb_program::numeric_separator, p, cb_program::program_spec_list, cb_program::property_spec_list, cb_program::symbolic_char_list, toplev_count, cb_program::toplev_count, cb_program::user_spec_list, and cb_program::word_table.
cb_tree cb_build_reference | ( | const char * | name | ) |
References CB_CATEGORY_UNKNOWN, CB_TAG_REFERENCE, CB_TREE, lookup_word(), make_tree(), and p.
Referenced by build_nested_special(), cb_add_const_var(), cb_build_debug_item(), cb_build_field_reference(), cb_build_filler(), cb_build_registers(), cb_define_system_name(), cb_validate_program_data(), emit_entry(), finalize_file(), make_constant_label(), and while().
cb_tree cb_build_search | ( | const int | flag_all, |
const cb_tree | table, | ||
const cb_tree | var, | ||
const cb_tree | end_stmt, | ||
const cb_tree | whens | ||
) |
References CB_CATEGORY_UNKNOWN, CB_TAG_SEARCH, CB_TREE, cb_search::end_stmt, cb_search::flag_all, make_tree(), p, cb_search::table, cb_search::var, and cb_search::whens.
Referenced by cb_emit_search(), and cb_emit_search_all().
References CB_CATEGORY_UNKNOWN, CB_TAG_SET_ATTR, CB_TREE, cb_set_attr::fld, make_tree(), p, cb_set_attr::val_off, and cb_set_attr::val_on.
Referenced by cb_emit_set_attribute().
|
read |
References CB_CATEGORY_UNKNOWN, CB_TAG_STATEMENT, make_tree(), cb_statement::name, and p.
Referenced by begin_implicit_statement(), and begin_statement().
cb_tree cb_build_string | ( | const void * | data, |
const size_t | size | ||
) |
References CB_CATEGORY_ALPHANUMERIC, CB_TAG_STRING, CB_TREE, cb_string::data, make_tree(), p, and cb_string::size.
Referenced by cb_build_move_literal().
References cb_alphabet_name::alphachr, CB_ALPHABET_NAME, cb_build_alphanumeric_literal(), cb_build_constant(), CB_CHAIN, CB_FIELD, cb_get_int(), CB_LITERAL, CB_PURPOSE, cb_validate_78_item(), CB_VALUE, and NULL.
Referenced by cb_validate_program_environment().
cb_tree cb_build_system_name | ( | const enum cb_system_name_category | category, |
const int | token | ||
) |
References cb_system_name::category, CB_CATEGORY_UNKNOWN, CB_TAG_SYSTEM_NAME, CB_TREE, make_tree(), p, and cb_system_name::token.
Referenced by lookup_system_name().
int cb_category_is_alpha | ( | cb_tree | x | ) |
References category_is_alphanumeric, and CB_TREE_CATEGORY.
Referenced by cb_emit_allocate().
References cb_list_add(), CB_REFERENCE, cb_word::count, cb_word::items, cb_word::name, cb_tree_common::source_file, and cb_tree_common::source_line.
Referenced by build_file(), build_nested_special(), build_report(), cb_build_alphabet_name(), cb_build_class_name(), cb_build_field(), cb_build_label(), cb_build_locale_name(), and cb_define_system_name().
|
static |
References cb_build_reference(), cb_define(), CB_WORD_COUNT, and lookup_system_name().
Referenced by cb_set_system_names().
References cb_field::parent.
Referenced by cb_build_field_tree(), cb_build_identifier(), cb_check_overlapping(), cb_ref(), check_valid_key(), finalize_file(), and global_check().
References p, and cb_field::parent.
Referenced by output_size().
unsigned int cb_field_variable_address | ( | const struct cb_field * | fld | ) |
References cb_field_variable_size(), cb_field::children, cb_field::depending, p, cb_field::parent, and cb_field::sister.
References cb_field_variable_size(), cb_field::children, cb_field::depending, NULL, p, and cb_field::sister.
Referenced by cb_build_const_length(), cb_build_length(), cb_build_length_1(), cb_build_move_field(), cb_build_move_literal(), cb_check_overlapping(), cb_chk_alpha_cond(), cb_field_variable_address(), cb_field_variable_size(), finalize_file(), and validate_field_1().
int cb_fits_int | ( | const cb_tree | x | ) |
References CB_FIELD, cb_fits_int(), CB_LITERAL, CB_REFERENCE, CB_TAG_FIELD, CB_TAG_INTEGER, CB_TAG_LITERAL, CB_TAG_REFERENCE, CB_TREE_TAG, CB_USAGE_BINARY, CB_USAGE_COMP_5, CB_USAGE_COMP_6, CB_USAGE_COMP_X, CB_USAGE_DISPLAY, CB_USAGE_INDEX, CB_USAGE_LENGTH, CB_USAGE_PACKED, cb_field::children, cb_literal::data, cb_picture::digits, p, cb_field::pic, cb_literal::scale, cb_picture::scale, cb_literal::sign, cb_literal::size, cb_field::size, cb_field::usage, and value.
Referenced by cb_build_add(), cb_build_move_literal(), cb_build_sub(), cb_fits_int(), output_bin_field(), output_call(), and output_integer().
int cb_fits_long_long | ( | const cb_tree | x | ) |
References CB_FIELD, cb_fits_long_long(), CB_LITERAL, CB_REFERENCE, CB_TAG_FIELD, CB_TAG_INTEGER, CB_TAG_LITERAL, CB_TAG_REFERENCE, CB_TREE_TAG, CB_USAGE_BINARY, CB_USAGE_COMP_5, CB_USAGE_COMP_6, CB_USAGE_COMP_X, CB_USAGE_DISPLAY, CB_USAGE_INDEX, CB_USAGE_LENGTH, CB_USAGE_PACKED, cb_field::children, cob_s64_t, cb_literal::data, cb_picture::digits, p, cb_field::pic, cb_literal::scale, cb_picture::scale, cb_literal::sign, cb_literal::size, cb_field::size, cb_field::usage, and value.
Referenced by cb_build_cond(), cb_build_optim_cond(), cb_fits_long_long(), and output_long_integer().
int cb_get_int | ( | const cb_tree | x | ) |
References _, CB_LITERAL, CB_LITERAL_P, COBC_ABORT, cobc_abort_pr(), cb_literal::data, cb_literal::sign, and cb_literal::size.
Referenced by cb_build_identifier(), cb_build_intrinsic(), cb_build_move_literal(), cb_build_symbolic_chars(), cb_build_write_advancing_lines(), cb_emit_call(), cb_field_size(), get_value(), literal_value(), output_call(), output_index(), output_integer(), and validate_inspect().
References _, CB_LITERAL, CB_LITERAL_P, cob_s64_t, COBC_ABORT, cobc_abort_pr(), cb_literal::data, cb_literal::sign, and cb_literal::size.
Referenced by cb_emit_call(), output_call(), output_call_by_value_args(), output_long_integer(), and validate_move().
References _, CB_LITERAL, cob_u64_t, COBC_ABORT, cobc_abort_pr(), cb_literal::data, and cb_literal::size.
Referenced by output_call(), and output_call_by_value_args().
void cb_init_constants | ( | void | ) |
References cb_build_numeric_literal(), CB_CATEGORY_ALPHANUMERIC, CB_CATEGORY_BOOLEAN, CB_CATEGORY_DATA_POINTER, CB_CATEGORY_NUMERIC, CB_CATEGORY_UNKNOWN, cb_const_subs, cb_high, cb_int(), CB_LABEL, cb_low, COB_MAX_SUBSCRIPTS, make_constant(), make_constant_label(), and NULL.
Referenced by process_translate().
void cb_insert_common_prog | ( | struct cb_program * | prog, |
struct cb_program * | comprog | ||
) |
References add_contained_prog(), and cb_program::nested_prog_list.
Referenced by process_translate().
cb_tree cb_int | ( | const int | n | ) |
References cb_tree_common::category, CB_CATEGORY_NUMERIC, CB_TAG_INTEGER, CB_TREE, cobc_main_malloc(), cb_integer::common, int_node_table, int_node::n, int_node::next, int_node::node, p, cb_tree_common::tag, and cb_integer::val.
Referenced by build_store_option(), cb_build_cond(), cb_build_identifier(), cb_build_length_1(), cb_build_memset(), cb_build_move_literal(), cb_build_optim_cond(), cb_build_write_advancing_lines(), cb_check_field_debug(), cb_define_switch_name(), cb_emit_accept(), cb_emit_accept_line_or_col(), cb_emit_display(), cb_emit_open(), cb_emit_read(), cb_emit_rewrite(), cb_emit_set_on_off(), cb_emit_sort_init(), cb_emit_unstring(), cb_emit_write(), cb_gen_field_accept(), cb_init_constants(), and cb_int_hex().
cb_tree cb_int_hex | ( | const int | n | ) |
References cb_int(), and CB_INTEGER.
Referenced by cb_build_write_advancing_lines(), cb_build_write_advancing_mnemonic(), cb_build_write_advancing_page(), and cb_emit_write().
References cb_list_append(), and CB_LIST_INIT.
Referenced by begin_implicit_statement(), build_evaluate(), cb_build_assignment_name(), cb_build_converting(), cb_build_identifier(), cb_build_perform_varying(), cb_build_replacing_all(), cb_build_replacing_characters(), cb_build_replacing_first(), cb_build_replacing_leading(), cb_build_replacing_trailing(), cb_build_tallying_characters(), cb_build_tallying_value(), cb_check_field_debug(), cb_check_needs_break(), cb_define(), cb_emit_read(), codegen(), setup_use_file(), and validate_field_1().
References CB_CHAIN, and NULL.
Referenced by build_decimal_assign(), cb_build_alter(), cb_list_add(), cb_pair_add(), and emit_entry().
int cb_list_length | ( | cb_tree | l | ) |
References CB_CHAIN.
Referenced by cb_build_address(), cb_build_identifier(), cb_build_intrinsic(), cb_emit_call(), cb_emit_display(), cb_emit_move(), cb_emit_sort_giving(), cb_emit_sort_init(), cb_emit_unstring(), output_error_handler(), output_internal_function(), output_param(), and valid_const_date_time_args().
References CB_CHAIN, next, and NULL.
Referenced by build_decimal_assign(), cb_build_cond(), cb_build_identifier(), cb_check_field_debug(), cb_emit_search(), cb_name_1(), cb_validate_program_body(), cb_validate_program_data(), and process_translate().
char* cb_name | ( | cb_tree | x | ) |
References cb_name_1(), COB_NORMAL_BUFF, and cobc_parse_malloc().
Referenced by ambiguous_error(), build_nested_special(), cb_build_tallying_value(), cb_check_group_name(), cb_check_integer_value(), cb_check_numeric_edited_name(), cb_check_numeric_name(), cb_check_numeric_value(), cb_emit_accept_mnemonic(), cb_emit_accept_name(), cb_emit_display(), cb_emit_move(), cb_emit_set_to(), cb_validate_collating(), cb_validate_program_body(), cb_validate_program_data(), cb_validate_program_environment(), check_picture_item(), cobc_tree_cast_error(), compute_size(), emit_entry(), group_error(), level_except_error(), level_redundant_error(), level_require_error(), output_param(), validate_field_1(), and warning_destination().
|
static |
References _, cb_funcall::argc, cb_funcall::argv, CB_ALPHABET_NAME, CB_BINARY_OP, CB_CHAIN, CB_CLASS_NAME, CB_CLASS_NUMERIC, CB_FIELD, CB_FILE, CB_FUNCALL, CB_INTRINSIC, CB_LABEL, cb_list_reverse(), CB_LITERAL, CB_LOCALE_NAME, CB_REFERENCE, CB_TAG_ALPHABET_NAME, CB_TAG_BINARY_OP, CB_TAG_CLASS_NAME, CB_TAG_CONST, CB_TAG_FIELD, CB_TAG_FILE, CB_TAG_FUNCALL, CB_TAG_INTRINSIC, CB_TAG_LABEL, CB_TAG_LITERAL, CB_TAG_LOCALE_NAME, CB_TAG_REFERENCE, CB_TREE_CLASS, CB_TREE_TAG, CB_VALUE, cb_reference::chain, cb_field::flag_filler, cb_reference::flag_filler_ref, cb_intrinsic::intr_tab, cb_intrinsic::isuser, cb_reference::length, cb_field::name, cb_word::name, cb_funcall::name, cb_intrinsic_table::name, cb_intrinsic::name, cb_reference::offset, cb_binary_op::op, p, cb_reference::subs, cb_reference::word, cb_binary_op::x, and cb_binary_op::y.
Referenced by cb_name().
References CB_BUILD_PAIR, and cb_list_append().
References ambiguous_error(), CB_CHAIN, cb_error_node, CB_FIELD, cb_field_founder(), CB_FIELD_P, CB_FILE, CB_FILE_P, CB_INVALID_TREE, CB_LABEL, CB_LABEL_P, CB_NAME, cb_ref(), CB_REFERENCE, CB_TAG_FIELD, CB_TAG_LABEL, CB_TREE_TAG, CB_VALUE, CB_WORD_COUNT, cb_reference::chain, current_program, cb_word::error, file, cb_reference::flag_alter_code, cb_program::flag_gen_error, global_check(), cb_reference::hashval, cb_word::items, likely, cb_field::name, cb_label::name, cb_word::name, cb_program::nested_level, cb_word::next, cb_program::next_program, NULL, cb_reference::offset, p, cb_field::parent, undefined_error(), cb_reference::value, cb_reference::word, and cb_program::word_table.
Referenced by cb_build_address(), cb_build_binary_op(), cb_build_cond(), cb_build_const_length(), cb_build_display_mnemonic(), cb_build_expr(), cb_build_identifier(), cb_build_length(), cb_build_length_1(), cb_build_perform_varying(), cb_build_ppointer(), cb_build_write_advancing_mnemonic(), cb_check_field_debug(), cb_check_group_name(), cb_check_integer_value(), cb_check_numeric_edited_name(), cb_check_numeric_name(), cb_emit_accept(), cb_emit_accept_mnemonic(), cb_emit_close(), cb_emit_delete(), cb_emit_delete_file(), cb_emit_display(), cb_emit_open(), cb_emit_read(), cb_emit_release(), cb_emit_return(), cb_emit_rewrite(), cb_emit_set_attribute(), cb_emit_set_on_off(), cb_emit_set_to(), cb_emit_sort_finish(), cb_emit_sort_giving(), cb_emit_sort_init(), cb_emit_sort_using(), cb_emit_start(), cb_emit_unlock(), cb_emit_write(), cb_ref(), cb_validate_collating(), cb_validate_one(), cb_validate_program_body(), cb_validate_program_data(), cb_validate_program_environment(), check_valid_key(), emit_entry(), finalize_file(), global_check(), output(), output_call(), output_goto(), output_goto_1(), output_module_init(), output_perform(), output_perform_once(), output_perform_until(), output_search_whens(), and validate_inspect().
void cb_set_system_names | ( | void | ) |
References cb_define_system_name().
char* cb_to_cname | ( | const char * | s | ) |
References cob_u8_t, cobc_parse_strdup(), copy, and p.
Referenced by build_file(), build_report(), cb_build_alphabet_name(), cb_build_class_name(), and cb_build_locale_name().
enum cb_category cb_tree_category | ( | cb_tree | x | ) |
References _, cb_cast::cast_type, cb_tree_common::category, cb_picture::category, CB_CAST, CB_CAST_ADDR_OF_ADDR, CB_CAST_ADDRESS, CB_CAST_PROGRAM_POINTER, CB_CATEGORY_ALPHANUMERIC, CB_CATEGORY_BOOLEAN, CB_CATEGORY_DATA_POINTER, CB_CATEGORY_PROGRAM_POINTER, CB_CATEGORY_UNKNOWN, CB_FIELD, CB_INTRINSIC, CB_REFERENCE, CB_TAG_ALPHABET_NAME, CB_TAG_BINARY_OP, CB_TAG_CAST, CB_TAG_FIELD, CB_TAG_INTRINSIC, CB_TAG_LOCALE_NAME, CB_TAG_REFERENCE, CB_TREE, cb_tree_category(), CB_TREE_TAG, CB_USAGE_POINTER, CB_USAGE_PROGRAM_POINTER, cb_field::children, COBC_ABORT, cobc_abort_pr(), cb_field::level, cb_reference::offset, p, cb_field::pic, cb_field::redefines, cb_field::rename_thru, cb_field::usage, and cb_reference::value.
Referenced by cb_build_constant(), cb_build_intrinsic(), and cb_tree_category().
References category_to_class_table, and CB_TREE_CATEGORY.
Referenced by cb_emit_set_to().
References _, CB_CATEGORY_ALPHABETIC, CB_CATEGORY_ALPHANUMERIC, CB_CATEGORY_ALPHANUMERIC_EDITED, CB_CATEGORY_DATA_POINTER, CB_CATEGORY_NUMERIC, CB_CATEGORY_NUMERIC_EDITED, CB_CATEGORY_OBJECT_REFERENCE, CB_CATEGORY_PROGRAM_POINTER, CB_TREE_CATEGORY, CB_USAGE_BINARY, CB_USAGE_COMP_5, CB_USAGE_COMP_6, CB_USAGE_COMP_X, CB_USAGE_DISPLAY, CB_USAGE_DOUBLE, CB_USAGE_FLOAT, CB_USAGE_FP_BIN128, CB_USAGE_FP_BIN32, CB_USAGE_FP_BIN64, CB_USAGE_FP_DEC128, CB_USAGE_FP_DEC64, CB_USAGE_INDEX, CB_USAGE_LENGTH, CB_USAGE_LONG_DOUBLE, CB_USAGE_PACKED, cb_field::children, COB_TYPE_ALPHANUMERIC, COB_TYPE_ALPHANUMERIC_EDITED, COB_TYPE_GROUP, COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, COB_TYPE_NUMERIC_DOUBLE, COB_TYPE_NUMERIC_EDITED, COB_TYPE_NUMERIC_FLOAT, COB_TYPE_NUMERIC_FP_BIN128, COB_TYPE_NUMERIC_FP_BIN32, COB_TYPE_NUMERIC_FP_BIN64, COB_TYPE_NUMERIC_FP_DEC128, COB_TYPE_NUMERIC_FP_DEC64, COB_TYPE_NUMERIC_L_DOUBLE, COB_TYPE_NUMERIC_PACKED, COBC_ABORT, cobc_abort_pr(), COBC_DUMB_ABORT, and cb_field::usage.
Referenced by initialize_type(), initialize_uniform_char(), and output_attr().
|
static |
References _, cb_error_x(), CB_FILE_ERR_INVALID, CB_FILE_ERR_INVALID_FT, CB_FILE_ERR_REQUIRED, and CB_NAME.
Referenced by validate_file().
References _, cb_file::alt_key_list, cb_file::assign, cb_build_alphanumeric_literal(), cb_build_field(), cb_build_field_reference(), cb_build_implicit_field(), cb_build_reference(), CB_CHAIN, cb_error(), CB_FIELD, CB_FIELD_ADD, cb_field_founder(), CB_FIELD_PTR, cb_field_variable_size(), CB_FILE, CB_LIST_INIT, cb_ref(), CB_USAGE_UNSIGNED_INT, cb_validate_field(), CB_VALUE, COB_MINI_BUFF, COB_MINI_MAX, COB_ORG_INDEXED, COB_ORG_LINE_SEQUENTIAL, cobc_main_malloc(), cb_field::count, current_program, cb_field::file, cb_program::file_list, cb_field::flag_external, cb_file::flag_external, cb_file::flag_fileid, cb_file::flag_finalized, cb_program::flag_has_external, cb_field::flag_is_global, cb_file::flag_line_adv, cb_alt_key::key, cb_file::key, cb_file::linage, cb_file::linage_ctr, MAX_FD_RECORD, cb_field::name, cb_file::name, cb_alt_key::next, NULL, cb_field::occurs_min, cb_field::offset, cb_file::organization, p, cb_file::record, cb_file::record_max, cb_file::record_min, cb_field::redefines, cb_file::same_clause, scratch_buff, cb_field::sister, cb_field::size, cb_file::special, and cb_program::working_storage.
Referenced by cb_validate_program_data().
|
static |
References CB_CHAIN, CB_FIELD, cb_field_founder(), CB_FIELD_P, CB_FILE, CB_FILE_P, CB_NAME, cb_ref(), CB_REFERENCE, CB_VALUE, CB_WORD_COUNT, cb_reference::chain, file, cb_field::flag_indexed_by, cb_field::flag_is_global, cb_field::name, NULL, p, and cb_field::parent.
Referenced by cb_ref().
|
static |
|
static |
|
static |
References cobc_parse_malloc(), cobc_parse_strdup(), current_program, cb_reference::flag_duped, hash(), cb_reference::hashval, likely, cb_word::name, cb_word::next, cb_reference::word, and cb_program::word_table.
Referenced by cb_build_reference().
|
static |
References CB_TAG_CONST, CB_TREE, make_tree(), p, and cb_const::val.
Referenced by cb_init_constants().
|
static |
References cb_build_label(), cb_build_reference(), CB_LABEL, CB_TREE, cb_label::flag_begin, NULL, and p.
Referenced by cb_init_constants().
|
static |
References _, cb_intrinsic::args, cb_intrinsic_table::category, CB_CHAIN, cb_error(), cb_error_node, CB_PAIR_X, CB_PAIR_Y, CB_TAG_CONST, CB_TAG_DECIMAL, CB_TAG_FIELD, CB_TAG_INTEGER, CB_TAG_INTRINSIC, CB_TAG_LITERAL, CB_TAG_REFERENCE, CB_TREE, CB_TREE_TAG, CB_VALUE, cb_intrinsic::intr_field, cb_intrinsic::intr_tab, cb_intrinsic::isuser, cb_intrinsic::length, make_tree(), cb_intrinsic_table::name, cb_intrinsic::name, and cb_intrinsic::offset.
Referenced by cb_build_any_intrinsic(), and cb_build_intrinsic().
|
static |
References cb_tree_common::category, cobc_parse_malloc(), and cb_tree_common::tag.
Referenced by build_file(), build_literal(), build_report(), cb_build_alphabet_name(), cb_build_alter(), cb_build_assign(), cb_build_binary_op(), cb_build_binary_picture(), cb_build_call(), cb_build_cancel(), cb_build_cast(), cb_build_cast_int(), cb_build_cast_llint(), cb_build_class_name(), cb_build_comment(), cb_build_continue(), cb_build_debug(), cb_build_debug_call(), cb_build_decimal(), cb_build_field(), cb_build_funcall(), cb_build_goto(), cb_build_if(), cb_build_initialize(), cb_build_label(), cb_build_list(), cb_build_locale_name(), cb_build_perform(), cb_build_perform_varying(), cb_build_picture(), cb_build_reference(), cb_build_search(), cb_build_set_attribute(), cb_build_statement(), cb_build_string(), cb_build_system_name(), cb_concat_literals(), make_constant(), and make_intrinsic().
|
static |
References CB_INTR_FORMATTED_DATETIME, and CB_INTR_FORMATTED_TIME.
Referenced by valid_const_date_time_args().
|
static |
References cob_valid_datetime_format(), cob_valid_time_format(), and NULL.
Referenced by valid_const_date_time_args().
|
static |
References CB_CONST, CB_CONST_P, CB_LITERAL, CB_LITERAL_P, and NULL.
Referenced by valid_const_date_time_args().
|
static |
References _, cb_error_x(), cb_list_length(), CB_VALUE, cb_warning_x(), cb_intrinsic_table::intr_enum, cb_intrinsic_table::name, NULL, offset_arg_param_num(), offset_time_format(), try_get_constant_data(), and valid_format().
Referenced by cb_build_intrinsic().
|
static |
References CB_INTR_FORMATTED_CURRENT_DATE, CB_INTR_FORMATTED_DATE, CB_INTR_FORMATTED_DATETIME, CB_INTR_FORMATTED_TIME, CB_INTR_INTEGER_OF_FORMATTED_DATE, CB_INTR_SECONDS_FROM_FORMATTED_TIME, cob_valid_date_format(), cob_valid_datetime_format(), and cob_valid_time_format().
Referenced by valid_const_date_time_args().
References cb_file::access_mode, cb_file::alt_key_list, cb_file::assign, CB_FILE_ERR_INVALID, CB_FILE_ERR_INVALID_FT, CB_FILE_ERR_REQUIRED, COB_ACCESS_DYNAMIC, COB_ACCESS_RANDOM, COB_ACCESS_SEQUENTIAL, COB_ORG_INDEXED, COB_ORG_RELATIVE, COB_ORG_SORT, file_error(), cb_file::flag_fileid, cb_file::key, NULL, and cb_file::organization.
|
static |
Referenced by cb_category_is_alpha().
|
static |
Referenced by cb_tree_class().
cb_tree cb_any |
Referenced by cb_build_cond(), and evaluate_test().
|
static |
Referenced by cb_init_constants().
cb_tree cb_error_node |
Referenced by build_cond_88(), build_evaluate(), cb_build_address(), cb_build_assignment_name(), cb_build_binary_op(), cb_build_cond(), cb_build_const_length(), cb_build_display_mnemonic(), cb_build_display_name(), cb_build_field_tree(), cb_build_identifier(), cb_build_intrinsic(), cb_build_length(), cb_build_locale_name(), cb_build_move(), cb_build_perform_forever(), cb_build_perform_once(), cb_build_perform_times(), cb_build_ppointer(), cb_build_section_name(), cb_build_unstring_delimited(), cb_build_unstring_into(), cb_build_write_advancing_mnemonic(), cb_check_data_incompat(), cb_check_field_debug(), cb_check_group_name(), cb_check_integer_value(), cb_check_lit_subs(), cb_check_numeric_edited_name(), cb_check_numeric_name(), cb_check_numeric_value(), cb_concat_literals(), cb_define_switch_name(), cb_emit_accept_mnemonic(), cb_emit_alter(), cb_emit_arithmetic(), cb_emit_call(), cb_emit_close(), cb_emit_delete(), cb_emit_delete_file(), cb_emit_display(), cb_emit_goto(), cb_emit_open(), cb_emit_perform(), cb_emit_read(), cb_emit_return(), cb_emit_rewrite(), cb_emit_search(), cb_emit_search_all(), cb_emit_set_false(), cb_emit_set_to(), cb_emit_set_true(), cb_emit_sort_init(), cb_emit_start(), cb_emit_unlock(), cb_emit_write(), cb_expr_finish(), cb_ref(), cb_validate_one(), cb_validate_program_body(), cb_validate_program_data(), cb_validate_program_environment(), check_picture_item(), check_valid_key(), emit_entry(), expr_reduce(), make_intrinsic(), output_move(), output_stmt(), scan_h(), scan_x(), search_set_keys(), validate_inspect(), and while().
cb_tree cb_false |
Referenced by cb_build_cond(), evaluate_test(), and output_cond().
cb_tree cb_high |
Referenced by cb_build_add(), cb_build_cond(), cb_build_move(), cb_build_move_high(), cb_init_constants(), cb_validate_88_item(), cb_validate_collating(), cb_validate_program_environment(), check_78_replace(), literal_value(), output_class_name_definition(), output_funcall(), output_initialize_one(), and validate_move().
cb_tree cb_i[COB_MAX_SUBSCRIPTS] |
Referenced by output_initialize(), output_initialize_compound(), and output_initialize_one().
cb_tree cb_int0 |
Referenced by cb_build_add(), cb_build_display_mnemonic(), cb_build_display_name(), cb_build_move_num_zero(), cb_build_optim_add(), cb_build_optim_sub(), cb_build_sub(), cb_build_unstring_into(), cb_build_write_advancing_mnemonic(), cb_emit_close(), cb_emit_display(), cb_emit_divide(), cb_emit_open(), cb_emit_set_up_down(), cb_emit_string(), cb_emit_write(), decimal_expand(), and output_param().
cb_tree cb_int1 |
Referenced by bit_set_attr(), cb_build_display_mnemonic(), cb_build_display_name(), cb_build_identifier(), cb_build_sub(), cb_emit_exit(), cb_emit_read(), cb_emit_rewrite(), cb_emit_write(), cb_validate_program_environment(), output_goto(), output_initialize_compound(), output_internal_function(), and output_param().
cb_tree cb_int2 |
Referenced by cb_emit_read().
cb_tree cb_int3 |
Referenced by cb_emit_read().
cb_tree cb_int4 |
Referenced by cb_emit_read().
cb_tree cb_int5 |
Referenced by cb_build_intrinsic(), and cb_build_registers().
cb_tree cb_low |
Referenced by cb_build_cond(), cb_build_move(), cb_build_move_low(), cb_emit_display(), cb_init_constants(), cb_validate_88_item(), cb_validate_collating(), cb_validate_program_environment(), check_78_replace(), literal_value(), output_class_name_definition(), output_funcall(), output_initialize_one(), and validate_move().
cb_tree cb_norm_high |
Referenced by cb_build_move_high(), cb_validate_program_environment(), get_value(), literal_value(), and output_param().
cb_tree cb_norm_low |
Referenced by cb_build_move_low(), cb_validate_program_environment(), get_value(), literal_value(), and output_param().
cb_tree cb_null |
cb_tree cb_one |
Referenced by cb_build_address(), and cb_build_identifier().
cb_tree cb_quote |
cb_tree cb_space |
Referenced by cb_build_cond(), cb_build_debug_item(), cb_build_move(), cb_build_move_space(), cb_emit_close(), cb_emit_display(), cb_emit_open(), cb_validate_88_item(), check_78_replace(), get_value(), literal_value(), output_class_name_definition(), output_funcall(), output_goto_1(), output_initialize_one(), output_param(), output_stmt(), and validate_move().
Referenced by output_error_handler(), and output_section_info().
cb_tree cb_true |
Referenced by cb_build_cond(), cb_emit_allocate(), cb_emit_initialize(), evaluate_test(), output_cond(), and output_initial_values().
cb_tree cb_zero |
Referenced by cb_build_cond(), cb_build_move(), cb_build_move_num_zero(), cb_build_move_zero(), cb_build_registers(), cb_check_integer_value(), cb_expr_shift(), cb_expr_shift_sign(), cb_validate_program_data(), check_78_replace(), decimal_expand(), get_value(), literal_value(), output_class_name_definition(), output_funcall(), output_initialize_one(), output_integer(), output_long_integer(), output_param(), output_stmt(), and validate_move().
|
static |
Referenced by cb_build_class_name().
|
static |
|
static |
Referenced by cb_build_filler().
unsigned int gen_screen_ptr = 0 |
Referenced by cb_build_funcall(), cb_emit_accept(), and cb_emit_display().
|
static |
Referenced by cb_build_picture().
|
static |
Referenced by cb_build_class_name(), and finalize_file().
|
static |
Referenced by cb_build_program().
|
static |