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 <limits.h>
#include "cobc.h"
#include "tree.h"
Go to the source code of this file.
Data Structures | |
struct | int_node |
Macros | |
#define | PIC_ALPHABETIC 0x01 |
#define | PIC_NUMERIC 0x02 |
#define | PIC_NATIONAL 0x04 |
#define | PIC_EDITED 0x08 |
#define | PIC_ALPHANUMERIC (PIC_ALPHABETIC | PIC_NUMERIC) |
#define | PIC_ALPHABETIC_EDITED (PIC_ALPHABETIC | PIC_EDITED) |
#define | PIC_ALPHANUMERIC_EDITED (PIC_ALPHANUMERIC | PIC_EDITED) |
#define | PIC_NUMERIC_EDITED (PIC_NUMERIC | PIC_EDITED) |
#define | PIC_NATIONAL_EDITED (PIC_NATIONAL | PIC_EDITED) |
#define | CB_FILE_ERR_REQUIRED 1 |
#define | CB_FILE_ERR_INVALID_FT 2 |
#define | CB_FILE_ERR_INVALID 3 |
#define | ERR_MSG _("Cannot find the UTC offset on this system") |
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 | valid_const_date_time_args (const cb_tree tree, const struct cb_intrinsic_table *intr, cb_tree args) |
static cb_tree | get_last_elt (cb_tree l) |
static void | warn_cannot_get_utc (const cb_tree tree, const enum cb_intr_enum intr, cb_tree args) |
static int | get_data_from_const (cb_tree const_val, unsigned char **data) |
static int | get_data_and_size_from_lit (cb_tree x, unsigned char **data, size_t *size) |
static struct cb_literal * | concat_literals (const cb_tree left, const cb_tree right) |
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) |
static void | error_numeric_literal (const char *literal) |
static void | check_lit_length (const int size, const char *lit) |
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, const cb_tree a11) |
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) |
static void | check_prototype_seen (const struct cb_func_prototype *fp) |
cb_tree | cb_build_func_prototype (const cb_tree prototype_name, const cb_tree ext_name) |
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 = ((void*)0) |
static char * | scratch_buff = ((void*)0) |
static char * | pic_buff = ((void*)0) |
static int | filler_id = 1 |
static int | class_id = 0 |
static int | toplev_count |
static char | err_msg [COB_MINI_BUFF] |
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 [16] |
cb_tree | cb_error_node |
cb_tree | cb_intr_whencomp = ((void*)0) |
cb_tree | cb_standard_error_handler = ((void*)0) |
unsigned int | gen_screen_ptr = 0 |
#define CB_FILE_ERR_INVALID 3 |
Definition at line 203 of file tree.c.
Referenced by file_error(), and validate_file().
#define CB_FILE_ERR_INVALID_FT 2 |
Definition at line 202 of file tree.c.
Referenced by file_error(), and validate_file().
#define CB_FILE_ERR_REQUIRED 1 |
Definition at line 201 of file tree.c.
Referenced by file_error(), and validate_file().
Referenced by warn_cannot_get_utc().
#define PIC_ALPHABETIC 0x01 |
Definition at line 34 of file tree.c.
Referenced by cb_build_picture().
#define PIC_ALPHABETIC_EDITED (PIC_ALPHABETIC | PIC_EDITED) |
Definition at line 39 of file tree.c.
Referenced by cb_build_picture().
#define PIC_ALPHANUMERIC (PIC_ALPHABETIC | PIC_NUMERIC) |
Definition at line 38 of file tree.c.
Referenced by cb_build_picture().
#define PIC_ALPHANUMERIC_EDITED (PIC_ALPHANUMERIC | PIC_EDITED) |
Definition at line 40 of file tree.c.
Referenced by cb_build_picture().
#define PIC_EDITED 0x08 |
Definition at line 37 of file tree.c.
Referenced by cb_build_picture().
#define PIC_NATIONAL 0x04 |
Definition at line 36 of file tree.c.
Referenced by cb_build_picture().
#define PIC_NATIONAL_EDITED (PIC_NATIONAL | PIC_EDITED) |
Definition at line 42 of file tree.c.
Referenced by cb_build_picture().
#define PIC_NUMERIC 0x02 |
Definition at line 35 of file tree.c.
Referenced by cb_build_picture().
#define PIC_NUMERIC_EDITED (PIC_NUMERIC | PIC_EDITED) |
Definition at line 41 of file tree.c.
Referenced by cb_build_picture().
|
static |
Definition at line 1383 of file tree.c.
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().
Definition at line 2344 of file tree.c.
References cb_file::access_mode, CB_CATEGORY_UNKNOWN, cb_define(), CB_LABEL, CB_TAG_FILE, cb_to_cname(), CB_TREE, cb_file::cname, COB_ACCESS_SEQUENTIAL, COB_ORG_SEQUENTIAL, current_program, cb_file::handler, cb_file::handler_prog, make_tree(), cb_file::name, and cb_file::organization.
Referenced by yyparse().
struct cb_literal* build_literal | ( | const enum cb_category | category, |
const void * | data, | ||
const size_t | size | ||
) |
Definition at line 722 of file tree.c.
References CB_TAG_LITERAL, cobc_parse_malloc(), cb_literal::data, make_tree(), and cb_literal::size.
Referenced by cb_build_alphanumeric_literal(), cb_build_numeric_literal(), cb_build_numsize_literal(), and cb_validate_program_data().
Definition at line 2324 of file tree.c.
References CB_CATEGORY_UNKNOWN, cb_define(), CB_LABEL, CB_TAG_REPORT, cb_to_cname(), CB_TREE, cb_report::cname, COB_ACCESS_SEQUENTIAL, COB_ORG_SEQUENTIAL, current_program, make_tree(), and cb_report::name.
Referenced by yyparse().
void cb_add_common_prog | ( | struct cb_program * | prog | ) |
Definition at line 1469 of file tree.c.
References add_contained_prog(), cb_program::common_prog_list, and cb_program::nested_level.
Referenced by yyparse().
Definition at line 1605 of file tree.c.
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, and NULL.
Referenced by yyparse().
cb_tree cb_build_alphanumeric_literal | ( | const void * | data, |
const size_t | size | ||
) |
Definition at line 1716 of file tree.c.
References build_literal(), CB_CATEGORY_ALPHANUMERIC, cb_source_file, cb_source_line, CB_TREE, cb_tree_common::source_file, and cb_tree_common::source_line.
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(), yylex(), and yyparse().
Definition at line 3101 of file tree.c.
References cb_program::alter_list, CB_BUILD_PAIR, CB_CATEGORY_UNKNOWN, cb_list_append(), CB_TAG_ALTER, CB_TREE, current_program, make_tree(), cb_alter::source, and cb_alter::target.
Referenced by cb_emit_alter().
Definition at line 3295 of file tree.c.
References lookup_intrinsic(), make_intrinsic(), and NULL.
Referenced by cb_build_length().
Definition at line 3014 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_ASSIGN, CB_TREE, make_tree(), 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().
Definition at line 2902 of file tree.c.
References cb_build_binary_op(), CB_CHAIN, and CB_VALUE.
Referenced by yyparse().
Definition at line 2827 of file tree.c.
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, 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(), expr_reduce(), and yyparse().
struct cb_picture* cb_build_binary_picture | ( | const char * | str, |
const cob_u32_t | size, | ||
const cob_u32_t | sign | ||
) |
Definition at line 1783 of file tree.c.
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 | ||
) |
Definition at line 3067 of file tree.c.
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, cb_call::stmt1, and cb_call::stmt2.
Referenced by cb_emit_call().
Definition at line 3088 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_CANCEL, CB_TREE, make_tree(), and cb_cancel::target.
Referenced by cb_emit_cancel().
cb_tree cb_build_cast | ( | const enum cb_cast_type | type, |
const cb_tree | val | ||
) |
Definition at line 2947 of file tree.c.
References cb_cast::cast_type, CB_CAST_INTEGER, CB_CATEGORY_NUMERIC, CB_CATEGORY_UNKNOWN, CB_TAG_CAST, CB_TREE, make_tree(), and cb_cast::val.
Definition at line 2964 of file tree.c.
References cb_cast::cast_type, CB_CAST_INTEGER, CB_CATEGORY_NUMERIC, CB_TAG_CAST, CB_TREE, make_tree(), 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().
Definition at line 2975 of file tree.c.
References cb_cast::cast_type, CB_CAST_LONG_INT, CB_CATEGORY_NUMERIC, CB_TAG_CAST, CB_TREE, make_tree(), and cb_cast::val.
Referenced by cb_build_move_literal(), cb_build_optim_cond(), decimal_expand(), and output_perform().
Definition at line 1622 of file tree.c.
References CB_CATEGORY_BOOLEAN, cb_define(), CB_TAG_CLASS_NAME, cb_to_cname(), CB_TREE, class_id, cb_class_name::cname, COB_MINI_BUFF, COB_MINI_MAX, cobc_main_malloc(), cobc_parse_strdup(), cb_class_name::list, make_tree(), cb_class_name::name, NULL, and scratch_buff.
Referenced by yyparse().
cb_tree cb_build_comment | ( | const char * | str | ) |
Definition at line 1540 of file tree.c.
References CB_CATEGORY_ALPHANUMERIC, cb_source_file, cb_source_line, CB_TAG_DIRECT, CB_TREE, cb_direct::line, and make_tree().
Referenced by build_evaluate(), cb_build_direct(), cb_emit_evaluate(), yylex(), and yyparse().
Definition at line 2189 of file tree.c.
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(), cb_define_switch_name(), and yyparse().
cb_tree cb_build_continue | ( | void | ) |
Definition at line 3214 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_CONTINUE, CB_TREE, and make_tree().
Referenced by cb_emit_continue().
Definition at line 1566 of file tree.c.
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, 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(), output_stmt(), and yyparse().
Definition at line 1590 of file tree.c.
References CB_CATEGORY_ALPHANUMERIC, cb_source_file, cb_source_line, CB_TAG_DEBUG_CALL, CB_TREE, make_tree(), 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 | ) |
Definition at line 1770 of file tree.c.
References CB_CATEGORY_NUMERIC, CB_TAG_DECIMAL, CB_TREE, cb_decimal::id, and make_tree().
Referenced by decimal_alloc().
cb_tree cb_build_direct | ( | const char * | str, |
const unsigned int | flagnl | ||
) |
Definition at line 1553 of file tree.c.
References cb_build_comment(), and CB_DIRECT.
Referenced by cb_check_needs_break(), and cb_emit_evaluate().
Definition at line 2159 of file tree.c.
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, cb_field::storage, and cb_field::usage.
Referenced by cb_build_constant(), cb_build_field_tree(), cb_build_implicit_field(), cb_build_index(), cb_build_registers(), cb_validate_program_data(), and finalize_file().
Definition at line 2604 of file tree.c.
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 | ) |
Definition at line 2591 of file tree.c.
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(), cb_build_length(), and yyparse().
Definition at line 3265 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_LITERAL, CB_LITERAL_P, CB_NAME, CB_TAG_FUNC_PROTOTYPE, CB_TREE, check_prototype_seen(), cb_func_prototype::ext_name, make_tree(), and cb_func_prototype::name.
Referenced by set_up_func_prototype().
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, | ||
const cb_tree | a11 | ||
) |
Definition at line 2916 of file tree.c.
References cb_funcall::argc, cb_funcall::argv, CB_CATEGORY_BOOLEAN, CB_TAG_FUNCALL, CB_TREE, gen_screen_ptr, make_tree(), cb_funcall::name, cb_funcall::screenptr, and cb_funcall::varcnt.
Definition at line 3118 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_GOTO, CB_TREE, cb_goto::depending, make_tree(), and cb_goto::target.
Referenced by cb_emit_exit(), cb_emit_goto(), and yyparse().
cb_tree cb_build_if | ( | const cb_tree | test, |
const cb_tree | stmt1, | ||
const cb_tree | stmt2, | ||
const unsigned int | is_if | ||
) |
Definition at line 3132 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_IF, CB_TREE, cb_if::is_if, make_tree(), 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().
Definition at line 2175 of file tree.c.
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 | ||
) |
Definition at line 3028 of file tree.c.
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(), cb_initialize::rep, cb_initialize::val, and cb_initialize::var.
Referenced by cb_emit_allocate(), cb_emit_initialize(), and output_initial_values().
Definition at line 3304 of file tree.c.
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, valid_const_date_time_args(), and warn_cannot_get_utc().
Referenced by yyparse().
Definition at line 2988 of file tree.c.
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, cb_para_label::para, cb_label::para_label, cb_label::section, and cb_label::section_id.
Referenced by emit_entry(), make_constant_label(), and yyparse().
Definition at line 1293 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_LIST, CB_TREE, cb_list::chain, make_tree(), cb_list::purpose, value, and cb_list::value.
Referenced by yyparse().
Definition at line 1645 of file tree.c.
References _, CB_CATEGORY_UNKNOWN, cb_define(), cb_error(), cb_error_node, CB_LITERAL_P, CB_NUMERIC_LITERAL_P, CB_TAG_LOCALE_NAME, cb_to_cname(), CB_TREE, cb_class_name::cname, cb_class_name::list, make_tree(), cb_class_name::name, and NULL.
Referenced by yyparse().
cb_tree cb_build_numeric_literal | ( | const int | sign, |
const void * | data, | ||
const int | scale | ||
) |
Definition at line 1681 of file tree.c.
References build_literal(), CB_CATEGORY_NUMERIC, cb_source_file, cb_source_line, CB_TREE, cb_literal::scale, cb_literal::sign, cb_tree_common::source_file, and cb_tree_common::source_line.
Referenced by cb_build_const_length(), cb_build_length(), cb_emit_allocate(), cb_init_constants(), scan_b(), scan_define_options(), scan_floating_numeric(), scan_h(), scan_numeric(), scan_o(), yylex(), and yyparse().
cb_tree cb_build_numsize_literal | ( | const void * | data, |
const size_t | size, | ||
const int | sign | ||
) |
Definition at line 1699 of file tree.c.
References build_literal(), CB_CATEGORY_NUMERIC, cb_source_file, cb_source_line, CB_TREE, cb_literal::sign, cb_tree_common::source_file, and cb_tree_common::source_line.
Referenced by cb_check_lit_subs().
cb_tree cb_build_perform | ( | const enum cb_perform_type | type | ) |
Definition at line 3149 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_PERFORM, CB_TREE, make_tree(), 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().
Definition at line 3160 of file tree.c.
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, cb_perform_varying::step, and cb_perform_varying::until.
Referenced by yyparse().
cb_tree cb_build_picture | ( | const char * | str | ) |
Definition at line 1800 of file tree.c.
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, 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_build_registers(), cb_validate_program_data(), check_picture_item(), scan_picture(), setup_parameters(), and validate_field_1().
struct cb_program* cb_build_program | ( | struct cb_program * | last_program, |
const int | nest_level | ||
) |
Definition at line 1400 of file tree.c.
References add_contained_prog(), cb_program::alphabet_name_list, cb_tree_common::category, CB_CATEGORY_UNKNOWN, cb_clear_real_field(), CB_FIELD_PTR, cb_flag_functions_all, cb_reset_78(), cb_reset_global_78(), cb_program::cb_return_code, CB_TAG_PROGRAM, 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::common, 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, cb_program::program_spec_list, cb_program::property_spec_list, cb_program::symbolic_char_list, cb_tree_common::tag, toplev_count, cb_program::toplev_count, cb_program::user_spec_list, and cb_program::word_table.
Referenced by set_up_program(), and yyparse().
cb_tree cb_build_reference | ( | const char * | name | ) |
Definition at line 2572 of file tree.c.
References CB_CATEGORY_UNKNOWN, cb_source_file, cb_source_line, CB_TAG_REFERENCE, CB_TREE, lookup_word(), make_tree(), cb_tree_common::source_file, and cb_tree_common::source_line.
Referenced by build_nested_special(), cb_add_const_var(), cb_build_debug_item(), cb_build_field_reference(), cb_build_filler(), cb_build_identifier(), cb_build_registers(), cb_define_system_name(), cb_validate_program_data(), emit_entry(), finalize_file(), make_constant_label(), set_up_func_prototype(), yylex(), and yyparse().
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 | ||
) |
Definition at line 3049 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_SEARCH, CB_TREE, cb_search::end_stmt, cb_search::flag_all, make_tree(), cb_search::table, cb_search::var, and cb_search::whens.
Referenced by cb_emit_search(), and cb_emit_search_all().
Definition at line 3226 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_SET_ATTR, CB_TREE, cb_set_attr::fld, make_tree(), cb_set_attr::val_off, and cb_set_attr::val_on.
Referenced by cb_emit_set_attribute().
struct cb_statement* cb_build_statement | ( | const char * | name | ) |
Definition at line 3201 of file tree.c.
References CB_CATEGORY_UNKNOWN, CB_TAG_STATEMENT, make_tree(), and cb_statement::name.
Referenced by begin_implicit_statement(), and begin_statement().
cb_tree cb_build_string | ( | const void * | data, |
const size_t | size | ||
) |
Definition at line 1526 of file tree.c.
References CB_CATEGORY_ALPHANUMERIC, CB_TAG_STRING, CB_TREE, cb_string::data, make_tree(), and cb_string::size.
Referenced by cb_build_move_literal().
Definition at line 2289 of file tree.c.
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 | ||
) |
Definition at line 1667 of file tree.c.
References cb_system_name::category, CB_CATEGORY_UNKNOWN, CB_TAG_SYSTEM_NAME, CB_TREE, make_tree(), and cb_system_name::token.
Referenced by lookup_system_name().
int cb_category_is_alpha | ( | cb_tree | x | ) |
Definition at line 843 of file tree.c.
References category_is_alphanumeric, and CB_TREE_CATEGORY.
Referenced by cb_emit_allocate(), and yyparse().
Definition at line 1729 of file tree.c.
References _, cb_tree_common::category, CB_CATEGORY_ALPHANUMERIC, cb_error_node, cb_error_x(), CB_TREE, concat_literals(), cb_literal::data, NULL, cb_literal::size, cb_tree_common::source_file, and cb_tree_common::source_line.
Referenced by yyparse().
Definition at line 1367 of file tree.c.
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(), cb_define_system_name(), set_up_func_prototype(), set_up_program(), and yyparse().
|
static |
Definition at line 2621 of file tree.c.
References cb_build_reference(), cb_define(), CB_WORD_COUNT, and lookup_system_name().
Referenced by cb_set_system_names().
Definition at line 2212 of file tree.c.
References NULL, and cb_field::sister.
Definition at line 2227 of file tree.c.
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().
Definition at line 2274 of file tree.c.
References cb_field::parent.
Referenced by output_size().
unsigned int cb_field_variable_address | ( | const struct cb_field * | fld | ) |
Definition at line 2255 of file tree.c.
References cb_field_variable_size(), cb_field::children, cb_field::depending, cb_field::parent, and cb_field::sister.
Definition at line 2239 of file tree.c.
References cb_field_variable_size(), cb_field::children, cb_field::depending, NULL, 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 | ) |
Definition at line 914 of file tree.c.
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, 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 | ) |
Definition at line 991 of file tree.c.
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, 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 | ) |
Definition at line 1101 of file tree.c.
References _, cb_error(), CB_LITERAL, CB_LITERAL_P, check_lit_length(), COBC_ABORT, cobc_abort_pr(), cb_literal::data, cb_literal::sign, cb_literal::size, and unlikely.
Referenced by cb_build_identifier(), cb_build_intrinsic(), cb_build_move_literal(), cb_build_symbolic_chars(), cb_build_write_advancing_lines(), cb_check_overlapping(), cb_emit_call(), cb_field_size(), get_value(), literal_value(), output_call(), output_index(), output_integer(), validate_inspect(), and yyparse().
Definition at line 1175 of file tree.c.
References _, cb_error(), CB_LITERAL, CB_LITERAL_P, check_lit_length(), cob_s64_t, COBC_ABORT, cobc_abort_pr(), cb_literal::data, cb_literal::sign, cb_literal::size, and unlikely.
Referenced by cb_emit_call(), output_call(), output_call_by_value_args(), output_long_integer(), and validate_move().
Definition at line 1223 of file tree.c.
References _, cb_error(), CB_LITERAL, check_lit_length(), cob_u64_t, cb_literal::data, cb_literal::size, and unlikely.
Referenced by output_call(), and output_call_by_value_args().
void cb_init_constants | ( | void | ) |
Definition at line 1259 of file tree.c.
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 | ||
) |
Definition at line 1479 of file tree.c.
References add_contained_prog(), and cb_program::nested_prog_list.
Referenced by process_translate().
cb_tree cb_int | ( | const int | n | ) |
Definition at line 1488 of file tree.c.
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, 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_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(), cb_int_hex(), emit_field_display(), and yyparse().
cb_tree cb_int_hex | ( | const int | n | ) |
Definition at line 1514 of file tree.c.
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().
Definition at line 1315 of file tree.c.
References cb_list_append(), and CB_LIST_INIT.
Referenced by begin_implicit_statement(), begin_scope_of_program_name(), 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(), emit_default_displays_for_x_list(), set_up_func_prototype(), set_up_use_file(), validate_field_1(), and yyparse().
Definition at line 1305 of file tree.c.
References CB_CHAIN, get_last_elt(), and NULL.
Referenced by build_decimal_assign(), cb_build_alter(), cb_list_add(), cb_pair_add(), emit_entry(), and yyparse().
int cb_list_length | ( | cb_tree | l | ) |
Definition at line 1342 of file tree.c.
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(), contains_only_screen_field(), output_error_handler(), output_internal_function(), output_param(), and yyparse().
Definition at line 1357 of file tree.c.
References CB_CHAIN, and CB_VALUE.
Referenced by cb_emit_arithmetic().
Definition at line 1327 of file tree.c.
References CB_CHAIN, 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(), process_translate(), and yyparse().
char* cb_name | ( | cb_tree | x | ) |
Definition at line 735 of file tree.c.
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(), validate_field_1(), warning_destination(), and yyparse().
|
static |
Definition at line 259 of file tree.c.
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, cb_reference::subs, cb_reference::word, cb_binary_op::x, and cb_binary_op::y.
Referenced by cb_name().
Definition at line 1321 of file tree.c.
References CB_BUILD_PAIR, and cb_list_append().
Definition at line 2653 of file tree.c.
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, 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_for_duplicate_prototype(), check_not_88_level(), check_valid_key(), emit_default_displays_for_x_list(), emit_entry(), finalize_file(), global_check(), is_screen_field(), output(), output_call(), output_goto(), output_goto_1(), output_module_init(), output_param(), output_perform(), output_perform_once(), output_perform_until(), output_search_whens(), validate_inspect(), and yyparse().
void cb_set_system_names | ( | void | ) |
Definition at line 2637 of file tree.c.
References cb_define_system_name().
Referenced by yyparse().
char* cb_to_cname | ( | const char * | s | ) |
Definition at line 705 of file tree.c.
References cob_u8_t, cobc_parse_strdup(), and copy.
Referenced by build_file(), build_report(), cb_build_alphabet_name(), cb_build_class_name(), cb_build_locale_name(), and yyparse().
enum cb_category cb_tree_category | ( | cb_tree | x | ) |
Definition at line 745 of file tree.c.
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, 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(), cb_tree_category(), and yyparse().
Definition at line 836 of file tree.c.
References category_to_class_table, and CB_TREE_CATEGORY.
Referenced by cb_emit_set_to().
Definition at line 849 of file tree.c.
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 |
Definition at line 1084 of file tree.c.
References _, COB_MAX_DIGITS, COB_MINI_MAX, err_msg, error_numeric_literal(), and unlikely.
Referenced by cb_get_int(), cb_get_long_long(), and cb_get_u_long_long().
|
static |
Definition at line 3242 of file tree.c.
References _, cb_find_defined_program_by_id(), CB_TREE, cb_warning_x(), cb_func_prototype::ext_name, and cb_func_prototype::name.
Referenced by cb_build_func_prototype().
|
static |
Definition at line 677 of file tree.c.
References cb_tree_common::category, CB_TAG_LITERAL, cobc_parse_malloc(), cb_literal::data, get_data_and_size_from_lit(), make_tree(), NULL, and cb_literal::size.
Referenced by cb_concat_literals().
|
static |
Definition at line 1067 of file tree.c.
References _, cb_error(), and err_msg.
Referenced by check_lit_length().
|
static |
Definition at line 206 of file tree.c.
References _, cb_error_x(), CB_FILE_ERR_INVALID, CB_FILE_ERR_INVALID_FT, CB_FILE_ERR_REQUIRED, and CB_NAME.
Referenced by validate_file().
Definition at line 2409 of file tree.c.
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, 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(), and yyparse().
|
static |
Definition at line 659 of file tree.c.
References CB_CONST_P, CB_LITERAL, CB_LITERAL_P, and get_data_from_const().
Referenced by concat_literals().
|
static |
Definition at line 633 of file tree.c.
Referenced by get_data_and_size_from_lit().
Definition at line 591 of file tree.c.
References CB_CHAIN.
Referenced by cb_list_append(), and warn_cannot_get_utc().
|
static |
Definition at line 453 of file tree.c.
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, and cb_field::parent.
Referenced by cb_ref().
|
static |
Definition at line 151 of file tree.c.
References CB_WORD_HASH_MASK, and CB_WORD_HASH_SIZE.
Referenced by lookup_word().
|
static |
Definition at line 507 of file tree.c.
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, and CB_INTR_TEST_FORMATTED_DATETIME.
Referenced by cb_build_intrinsic().
|
static |
Definition at line 170 of file tree.c.
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 |
Definition at line 239 of file tree.c.
References CB_TAG_CONST, CB_TREE, make_tree(), and cb_const::val.
Referenced by cb_init_constants().
|
static |
Definition at line 249 of file tree.c.
References cb_build_label(), cb_build_reference(), CB_LABEL, CB_TREE, cb_label::flag_begin, and NULL.
Referenced by cb_init_constants().
|
static |
Definition at line 413 of file tree.c.
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 |
Definition at line 227 of file tree.c.
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_func_prototype(), 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(), concat_literals(), make_constant(), and make_intrinsic().
|
static |
Definition at line 552 of file tree.c.
References CB_CONST, CB_CONST_P, CB_LITERAL, CB_LITERAL_P, and NULL.
Referenced by valid_const_date_time_args(), and warn_cannot_get_utc().
|
static |
Definition at line 566 of file tree.c.
References _, cb_error_x(), CB_VALUE, cb_warning_x(), cb_intrinsic_table::intr_enum, cb_intrinsic_table::name, NULL, try_get_constant_data(), and valid_format().
Referenced by cb_build_intrinsic().
|
static |
Definition at line 519 of file tree.c.
References _, cb_error(), 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, CB_INTR_TEST_FORMATTED_DATETIME, cob_valid_date_format(), cob_valid_datetime_format(), cob_valid_time_format(), current_program, and cb_program::decimal_point.
Referenced by valid_const_date_time_args().
Definition at line 2360 of file tree.c.
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.
Referenced by yyparse().
|
static |
Definition at line 601 of file tree.c.
References cb_error_x(), CB_INTR_FORMATTED_CURRENT_DATE, CB_INTR_FORMATTED_DATETIME, CB_INTR_FORMATTED_TIME, CB_TAG_INTEGER, CB_VALUE, cb_warning_x(), ERR_MSG, get_last_elt(), NULL, cb_tree_common::tag, and try_get_constant_data().
Referenced by cb_build_intrinsic().
|
static |
Definition at line 62 of file tree.c.
Referenced by cb_category_is_alpha().
|
static |
Definition at line 46 of file tree.c.
Referenced by cb_tree_class().
cb_tree cb_any |
Definition at line 121 of file tree.c.
Referenced by cb_build_cond(), evaluate_test(), and yyparse().
|
static |
Definition at line 92 of file tree.c.
Referenced by cb_init_constants().
cb_tree cb_error_node |
Definition at line 140 of file tree.c.
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_not_88_level(), check_picture_item(), check_valid_key(), emit_entry(), expr_reduce(), make_intrinsic(), output_move(), output_stmt(), scan_b(), scan_floating_numeric(), scan_h(), scan_numeric(), scan_o(), scan_x(), scan_z(), search_set_keys(), validate_inspect(), yylex(), and yyparse().
cb_tree cb_false |
Definition at line 123 of file tree.c.
Referenced by cb_build_cond(), evaluate_test(), output_cond(), and yyparse().
cb_tree cb_high |
Definition at line 129 of file tree.c.
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(), validate_move(), and yyparse().
cb_tree cb_i[16] |
Definition at line 139 of file tree.c.
Referenced by output_initialize(), output_initialize_compound(), and output_initialize_one().
cb_tree cb_int0 |
Definition at line 133 of file tree.c.
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_divide(), cb_emit_open(), cb_emit_set_last_exception_to_off(), cb_emit_set_up_down(), cb_emit_string(), cb_emit_write(), decimal_expand(), get_default_display_device(), get_line_and_column_from_pos(), output_param(), and yyparse().
cb_tree cb_int1 |
Definition at line 134 of file tree.c.
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(), emit_default_device_display(), emit_default_screen_display(), error_if_no_advancing_in_screen_display(), output_goto(), output_initialize_compound(), output_internal_function(), output_param(), and yyparse().
cb_tree cb_int2 |
Definition at line 135 of file tree.c.
Referenced by cb_emit_read(), and yyparse().
cb_tree cb_int3 |
Definition at line 136 of file tree.c.
Referenced by cb_emit_read(), and yyparse().
cb_tree cb_int4 |
Definition at line 137 of file tree.c.
Referenced by cb_emit_read(), and yyparse().
cb_tree cb_intr_whencomp = ((void*)0) |
Definition at line 142 of file tree.c.
Referenced by cb_build_intrinsic(), and cb_build_registers().
cb_tree cb_low |
Definition at line 128 of file tree.c.
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(), validate_move(), and yyparse().
cb_tree cb_norm_high |
Definition at line 131 of file tree.c.
Referenced by cb_build_move_high(), cb_validate_program_environment(), get_value(), literal_value(), output_param(), and yyparse().
cb_tree cb_norm_low |
Definition at line 130 of file tree.c.
Referenced by cb_build_move_low(), cb_validate_program_environment(), get_value(), literal_value(), output_param(), and yyparse().
cb_tree cb_null |
Definition at line 124 of file tree.c.
Referenced by cb_build_move(), cb_emit_accept(), cb_emit_call(), cb_emit_display(), check_78_replace(), contains_only_screen_field(), emit_default_screen_display(), expr_chk_cond(), get_default_display_device(), get_value(), literal_value(), output_call(), output_class_name_definition(), output_data(), output_initialize_one(), output_integer(), output_long_integer(), output_stmt(), and yyparse().
cb_tree cb_one |
Definition at line 126 of file tree.c.
Referenced by cb_build_address(), cb_build_identifier(), and yyparse().
cb_tree cb_quote |
Definition at line 132 of file tree.c.
Referenced by cb_build_move(), cb_build_move_quote(), cb_validate_88_item(), check_78_replace(), get_value(), literal_value(), output_class_name_definition(), output_initialize_one(), output_param(), validate_move(), and yyparse().
cb_tree cb_space |
Definition at line 127 of file tree.c.
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(), validate_move(), and yyparse().
cb_tree cb_standard_error_handler = ((void*)0) |
Definition at line 144 of file tree.c.
Referenced by output_error_handler(), and output_section_info().
cb_tree cb_true |
Definition at line 122 of file tree.c.
Referenced by cb_build_cond(), cb_emit_allocate(), cb_emit_initialize(), evaluate_test(), output_cond(), output_initial_values(), and yyparse().
cb_tree cb_zero |
Definition at line 125 of file tree.c.
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(), validate_move(), and yyparse().
|
static |
Definition at line 88 of file tree.c.
Referenced by cb_build_class_name().
|
static |
|
static |
Definition at line 90 of file tree.c.
Referenced by check_lit_length(), and error_numeric_literal().
|
static |
Definition at line 87 of file tree.c.
Referenced by cb_build_filler().
unsigned int gen_screen_ptr = 0 |
Definition at line 146 of file tree.c.
Referenced by cb_build_funcall(), cb_emit_accept(), and cb_emit_display().
|
static |
|
static |
Definition at line 86 of file tree.c.
Referenced by cb_build_picture().
|
static |
Definition at line 85 of file tree.c.
Referenced by cb_build_class_name(), and finalize_file().
|
static |
Definition at line 89 of file tree.c.
Referenced by cb_build_program().
|
static |