![]() |
GnuCOBOL
2.0
A free COBOL compiler
|
Go to the source code of this file.
Data Structures | |
struct | runtime_env |
Typedefs | |
typedef struct runtime_env | runtime_env |
#define _ | ( | s | ) | s |
Referenced by cob_decimal_set_ieee128dec().
Referenced by cob_decimal_set_ieee128dec().
#define COB_128_IS_EXTEND | ( | x | ) | ((COB_128_MSW(x) & COB_DEC_EXTEND) == COB_DEC_EXTEND) |
Referenced by cob_decimal_set_ieee128dec().
#define COB_128_IS_SPECIAL | ( | x | ) | ((COB_128_MSW(x) & COB_DEC_SPECIAL) == COB_DEC_SPECIAL) |
Referenced by cob_decimal_set_ieee128dec().
#define COB_128_LSW | ( | x | ) | x[0] |
Referenced by cob_decimal_set_ieee128dec().
#define COB_128_MSW | ( | x | ) | x[1] |
Referenced by cob_decimal_get_ieee128dec(), and cob_decimal_set_ieee128dec().
Referenced by cob_decimal_get_ieee128dec(), and cob_decimal_set_ieee128dec().
Referenced by cob_decimal_get_ieee128dec(), and cob_decimal_set_ieee128dec().
Referenced by cob_decimal_get_ieee128dec(), and cob_decimal_set_ieee128dec().
Referenced by cob_decimal_set_ieee64dec().
Referenced by cob_decimal_set_ieee64dec().
#define COB_64_IS_EXTEND | ( | x | ) | ((x & COB_DEC_EXTEND) == COB_DEC_EXTEND) |
Referenced by cob_decimal_set_ieee64dec().
#define COB_64_IS_SPECIAL | ( | x | ) | ((x & COB_DEC_SPECIAL) == COB_DEC_SPECIAL) |
Referenced by cob_decimal_set_ieee64dec().
Referenced by cob_decimal_get_ieee64dec(), and cob_decimal_set_ieee64dec().
Referenced by cob_decimal_get_ieee64dec(), and cob_decimal_set_ieee64dec().
Referenced by cob_decimal_get_ieee64dec(), and cob_decimal_set_ieee64dec().
#define COB_ACCEPT_STATUS cobglobptr->cob_accept_status |
Referenced by cob_accept_escape_key().
#define COB_ATTR_INIT | ( | u, | |
v, | |||
x, | |||
y, | |||
z | |||
) |
Referenced by cob_accept_arg_number(), cob_alloc_field(), cob_alloc_set_field_int(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_move_temp(), cob_display_arg_number(), cob_get_int(), cob_intr_combined_datetime(), cob_intr_date_of_integer(), cob_intr_day_of_integer(), cob_intr_module_date(), cob_intr_module_time(), cob_intr_random(), cob_move_all(), cob_set_int(), display_numeric(), indirect_move(), and pretty_display_numeric().
#define COB_BEEP_VALUE cobglobptr->cob_beep_value |
Referenced by cob_sys_sound_bell().
#define COB_CHK_PARMS | ( | x, | |
z | |||
) |
Referenced by cob_sys_and(), cob_sys_calledby(), cob_sys_change_dir(), cob_sys_chdir(), cob_sys_check_file_exist(), cob_sys_close_file(), cob_sys_copy_file(), cob_sys_copyfile(), cob_sys_create_dir(), cob_sys_create_file(), cob_sys_delete_dir(), cob_sys_delete_file(), cob_sys_eq(), cob_sys_error_proc(), cob_sys_exit_proc(), cob_sys_file_delete(), cob_sys_file_info(), cob_sys_flush_file(), cob_sys_get_csr_pos(), cob_sys_get_current_dir(), cob_sys_get_scr_size(), cob_sys_getopt_long_long(), cob_sys_imp(), cob_sys_justify(), cob_sys_mkdir(), cob_sys_nimp(), cob_sys_nor(), cob_sys_not(), cob_sys_oc_nanosleep(), cob_sys_open_file(), cob_sys_or(), cob_sys_parameter_size(), cob_sys_printable(), cob_sys_read_file(), cob_sys_rename_file(), cob_sys_return_args(), cob_sys_sleep(), cob_sys_system(), cob_sys_tolower(), cob_sys_toupper(), cob_sys_write_file(), cob_sys_xf4(), cob_sys_xf5(), and cob_sys_xor().
#define COB_D2I | ( | x | ) | ((x) & 0x0F) |
Referenced by cob_decimal_get_ieee128dec(), and cob_decimal_get_ieee64dec().
#define COB_DECIMAL_INF -32767 |
Referenced by cob_decimal_print().
#define COB_DECIMAL_NAN -32768 |
#define COB_DEPTH_LEVEL 32U |
Referenced by cob_exit_intrinsic(), cob_init_intrinsic(), and make_field_entry().
#define COB_DISP_TO_STDERR cobglobptr->cob_disp_to_stderr |
Referenced by cob_display().
#define COB_EXTENDED_STATUS cobglobptr->cob_extended_status |
#define COB_FIELD_INIT | ( | x, | |
y, | |||
z | |||
) |
Referenced by cob_alloc_field(), cob_alloc_set_field_int(), cob_alloc_set_field_uint(), cob_decimal_move_temp(), cob_intr_char(), cob_intr_combined_datetime(), cob_intr_concatenate(), cob_intr_currency_symbol(), cob_intr_current_date(), cob_intr_date_of_integer(), cob_intr_day_of_integer(), cob_intr_exception_file(), cob_intr_exception_location(), cob_intr_exception_statement(), cob_intr_exception_status(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_highest_algebraic(), cob_intr_lcl_time_from_secs(), cob_intr_locale_compare(), cob_intr_locale_date(), cob_intr_locale_time(), cob_intr_lowest_algebraic(), cob_intr_module_caller_id(), cob_intr_module_date(), cob_intr_module_formatted_date(), cob_intr_module_id(), cob_intr_module_path(), cob_intr_module_source(), cob_intr_module_time(), cob_intr_mon_decimal_point(), cob_intr_mon_thousands_sep(), cob_intr_num_decimal_point(), cob_intr_num_thousands_sep(), cob_intr_random(), cob_intr_substitute(), and cob_intr_substitute_case().
#define COB_GET_SIGN | ( | f | ) | (COB_FIELD_HAVE_SIGN (f) ? cob_real_get_sign (f) : 0) |
Referenced by cob_cmp_all(), cob_cmp_alnum(), cob_decimal_set_display(), cob_display_get_int(), cob_display_get_long_long(), cob_inspect_init(), cob_move_alphanum_to_edited(), cob_move_display_to_alphanum(), cob_move_display_to_binary(), cob_move_display_to_display(), cob_move_display_to_edited(), and cob_move_display_to_packed().
#define COB_HIDDEN extern |
#define COB_I2D | ( | x | ) | ((x) + '0') |
Referenced by cob_move_binary_to_display(), cob_move_packed_to_display(), and save_status().
#define COB_MAX_X_COORD cobglobptr->cob_max_x |
#define COB_MAX_Y_COORD cobglobptr->cob_max_y |
#define COB_MODULE_PTR cobglobptr->cob_current_module |
Referenced by cob_accept(), cob_check_numdisp(), cob_check_numval(), cob_check_numval_f(), cob_chk_file_mapping(), cob_cmp_all(), cob_cmp_alnum(), cob_cmp_numdisp(), cob_correct_numeric(), cob_file_sort_init(), cob_intr_currency_symbol(), cob_intr_module_caller_id(), cob_intr_module_date(), cob_intr_module_formatted_date(), cob_intr_module_id(), cob_intr_module_path(), cob_intr_module_source(), cob_intr_module_time(), cob_intr_mon_decimal_point(), cob_intr_mon_thousands_sep(), cob_intr_num_decimal_point(), cob_intr_num_thousands_sep(), cob_intr_numval(), cob_intr_numval_c(), cob_intr_numval_f(), cob_is_numeric(), cob_module_enter(), cob_module_leave(), cob_move_alphanum_to_display(), cob_move_display_to_edited(), cob_move_edited_to_display(), cob_real_get_sign(), cob_real_put_sign(), cob_restore_func(), cob_save_func(), cob_set_location(), cob_sys_calledby(), cob_sys_change_dir(), cob_sys_chdir(), cob_sys_check_file_exist(), cob_sys_copy_file(), cob_sys_create_dir(), cob_sys_delete_dir(), cob_sys_delete_file(), cob_sys_file_delete(), cob_sys_file_info(), cob_sys_getopt_long_long(), cob_sys_justify(), cob_sys_oc_nanosleep(), cob_sys_parameter_size(), cob_sys_printable(), cob_sys_rename_file(), cob_sys_return_args(), cob_sys_sleep(), cob_sys_system(), cob_sys_x91(), cob_table_sort_init(), cob_trace_section(), display_common(), open_cbl_file(), and pretty_display_numeric().
#define COB_MPF_CUTOFF 1024UL |
Referenced by cob_mpf_exp(), and cob_mpf_log().
#define COB_MPF_PREC 2048UL |
#define COB_MPZ_DEF 1024UL |
Referenced by cob_decimal_init(), cob_init_intrinsic(), and cob_init_numeric().
#define COB_MPZ_ENDIAN -1 |
Referenced by cob_decimal_get_ieee128dec(), and cob_decimal_get_ieee64dec().
#define COB_PUT_SIGN | ( | f, | |
s | |||
) | do { if (COB_FIELD_HAVE_SIGN (f)) cob_real_put_sign (f, s); } while (0) |
Referenced by cob_cmp_all(), cob_cmp_alnum(), cob_decimal_get_display(), cob_decimal_set_display(), cob_display_get_int(), cob_display_get_long_long(), cob_inspect_finish(), cob_move_alphanum_to_display(), cob_move_alphanum_to_edited(), cob_move_binary_to_display(), cob_move_display_to_alphanum(), cob_move_display_to_binary(), cob_move_display_to_display(), cob_move_display_to_edited(), cob_move_display_to_packed(), cob_move_edited_to_display(), and cob_move_packed_to_display().
#define COB_TERM_BUFF cobglobptr->cob_term_buff |
Referenced by cob_accept(), display_numeric(), and pretty_display_numeric().
#define COB_TIMEOUT_SCALE cobglobptr->cob_timeout_scale |
#define COB_USE_ESC cobglobptr->cob_use_esc |
#define F_OK 0 |
#define N_ | ( | s | ) | s |
#define R_OK 4 |
#define W_OK 2 |
#define X_OK 1 |
typedef struct runtime_env runtime_env |
COB_HIDDEN int cob_check_env_false | ( | char * | ) |
Referenced by cob_rescan_env_vals().
COB_HIDDEN int cob_check_env_true | ( | char * | ) |
Referenced by cob_init(), cob_init_fileio(), cob_init_move(), cob_init_screenio(), and cob_rescan_env_vals().
COB_HIDDEN void cob_decimal_move_temp | ( | cob_field * | , |
cob_field * | |||
) |
References COB_ATTR_INIT, cob_decimal_get_field(), cob_decimal_set_field(), COB_FIELD_INIT, COB_FLAG_HAVE_SIGN, cob_move(), cob_trim_decimal(), COB_TYPE_NUMERIC_DISPLAY, make_field_entry(), NULL, cob_decimal::scale, and cob_decimal::value.
Referenced by cob_move().
COB_HIDDEN void cob_decimal_setget_fld | ( | cob_field * | , |
cob_field * | , | ||
const int | |||
) |
COB_HIDDEN void cob_exit_call | ( | void | ) |
References call_table, cob_free(), struct_handle::handle, HASH_SIZE, call_hash::name, call_hash::next, struct_handle::next, NULL, p, call_hash::path, and struct_handle::path.
Referenced by cob_terminate_routines().
COB_HIDDEN void cob_exit_fileio | ( | void | ) |
References _, cob_file::assign, cob_close(), COB_CLOSE_NORMAL, __cob_global::cob_display_warn, cob_field_to_string(), COB_FILE_MAX, cob_file_path, COB_FILE_SPECIAL, cob_free(), COB_OPEN_CLOSED, COB_OPEN_LOCKED, file_list::file, cob_file::flag_nonexistent, file_list::next, NULL, cob_file::open_mode, p, runtime_buffer, and cob_file::select_name.
Referenced by cob_terminate_routines().
COB_HIDDEN void cob_exit_intrinsic | ( | void | ) |
References calc_base, calc_struct::calc_field, COB_DEPTH_LEVEL, cob_free(), cob_log_half, cob_mexp, cob_mpft, cob_mpft2, cob_mpft_get, cob_mpzt, cob_pi, cob_sqrt_two, cob_u32_t, cob_field::data, and cob_decimal::value.
Referenced by cob_terminate_routines().
COB_HIDDEN void cob_exit_numeric | ( | void | ) |
References cob_decimal_base, cob_free(), COB_MAX_BINARY, COB_MAX_DEC_STRUCT, cob_mexp, cob_mpft, cob_mpft_get, cob_mpz_ten16m1, cob_mpz_ten34m1, cob_mpze10, cob_mpzt, cob_mpzt2, d1, and cob_decimal::value.
Referenced by cob_terminate_routines().
COB_HIDDEN void cob_exit_screen | ( | void | ) |
Referenced by cob_runtime_error(), and cob_terminate_routines().
COB_HIDDEN void cob_exit_strings | ( | void | ) |
References cob_free(), figurative_ptr, figurative_size, inspect_mark, and NULL.
Referenced by cob_terminate_routines().
COB_HIDDEN void cob_field_to_string | ( | const cob_field * | , |
void * | , | ||
const size_t | |||
) |
References cob_field::data, cob_field::size, and unlikely.
Referenced by cob_call_field(), cob_cancel_field(), cob_delete_file(), cob_display_env_value(), cob_display_environment(), cob_exit_fileio(), cob_fatal_error(), cob_get_environment(), cob_intr_lcl_time_from_secs(), cob_intr_locale_compare(), cob_intr_locale_date(), cob_intr_locale_time(), cob_open(), cob_set_locale(), and cob_sys_getopt_long_long().
COB_HIDDEN int cob_get_exception_code | ( | void | ) |
References __cob_global::cob_exception_code.
Referenced by cob_string_append(), and cob_unstring_into().
COB_HIDDEN const char* cob_get_exception_name | ( | void | ) |
References __cob_global::cob_exception_code, cob_exception_tab_code, cob_exception_tab_name, EXCEPTION_TAB_SIZE, and NULL.
Referenced by cob_intr_exception_status().
COB_HIDDEN void cob_init_call | ( | cob_global * | , |
runtime_env * | runtimeptr | ||
) |
References cache_preload(), CALL_BUFF_SIZE, cob_fast_malloc(), cob_free(), COB_LIBRARY_PATH, cob_library_path_env, runtime_env::cob_library_path_env, cob_malloc(), COB_MEDIUM_BUFF, COB_MEDIUM_MAX, COB_MODULE_EXT, COB_NORMAL_BUFF, cob_preload_env, runtime_env::cob_preload_env, runtime_env::cob_preload_resolved, cob_save_env_value(), cob_set_library_path(), COB_SMALL_BUFF, cob_strdup(), HASH_SIZE, name_convert, runtime_env::name_convert, name_convert_env, runtime_env::name_convert_env, NULL, p, PATHSEPS, physical_cancel, runtime_env::physical_cancel, physical_cancel_env, runtime_env::physical_cancel_env, resolve_path, runtime_env::resolve_path, resolve_size, runtime_env::resolve_size, and SLASH_STR.
Referenced by cob_init().
COB_HIDDEN void cob_init_fileio | ( | cob_global * | , |
runtime_env * | runtimeptr | ||
) |
References check_eop_status, cob_check_env_true(), runtime_env::cob_do_sync, cob_do_sync, runtime_env::cob_do_sync_env, cob_do_sync_env, cob_fast_malloc(), COB_FILE_BUFF, runtime_env::cob_file_path, cob_file_path, runtime_env::cob_file_path_env, cob_file_path_env, cob_file_write_opt(), cob_fileio_getenv(), cob_free(), runtime_env::cob_ls_fixed, cob_ls_fixed, runtime_env::cob_ls_fixed_env, cob_ls_fixed_env, runtime_env::cob_ls_nulls, cob_ls_nulls, runtime_env::cob_ls_nulls_env, cob_ls_nulls_env, runtime_env::cob_ls_uses_cr, cob_ls_uses_cr, runtime_env::cob_ls_uses_cr_env, cob_ls_uses_cr_env, cob_malloc(), cob_save_env_value(), cob_sli_t, COB_SMALL_BUFF, runtime_env::cob_sort_chunk, cob_sort_chunk, COB_SORT_CHUNK, runtime_env::cob_sort_chunk_env, cob_sort_chunk_env, runtime_env::cob_sort_memory, cob_sort_memory, COB_SORT_MEMORY, runtime_env::cob_sort_memory_env, cob_sort_memory_env, runtime_env::cob_varseq_type, cob_varseq_type, runtime_env::cob_varseq_type_env, cob_varseq_type_env, cob_vsq_len, eop_status, file_open_buff, file_open_env, file_open_name, NULL, runtime_buffer, and WITH_VARSEQ.
Referenced by cob_init().
COB_HIDDEN void cob_init_intrinsic | ( | cob_global * | ) |
References calc_base, calc_struct::calc_field, calc_struct::calc_size, COB_DEPTH_LEVEL, cob_log_half, COB_LOG_HALF_LEN, cob_log_half_str, cob_malloc(), cob_mexp, COB_MPF_PREC, cob_mpft, cob_mpft2, cob_mpft_get, COB_MPZ_DEF, cob_mpzt, cob_pi, COB_PI_LEN, cob_pi_str, cob_sqrt_two, COB_SQRT_TWO_LEN, cob_sqrt_two_str, cob_u32_t, curr_entry, cob_field::data, NULL, cob_decimal::scale, cob_field::size, and cob_decimal::value.
Referenced by cob_init().
COB_HIDDEN void cob_init_move | ( | cob_global * | , |
runtime_env * | runtimeptr | ||
) |
References cob_check_env_true(), runtime_env::cob_local_edit, COB_UNUSED, and p.
Referenced by cob_init().
COB_HIDDEN void cob_init_numeric | ( | cob_global * | ) |
References cob_decimal_base, cob_decimal_init(), cob_malloc(), COB_MAX_BINARY, COB_MAX_DEC_STRUCT, cob_mexp, COB_MPF_PREC, cob_mpft, cob_mpft_get, COB_MPZ_DEF, cob_mpz_ten16m1, cob_mpz_ten34m1, cob_mpze10, cob_mpzt, cob_mpzt2, cob_u32_t, cob_uli_t, d1, last_packed_val, and packed_value.
Referenced by cob_init().
COB_HIDDEN void cob_init_screenio | ( | cob_global * | , |
runtime_env * | runtimeptr | ||
) |
References cob_check_env_true(), cob_legacy, runtime_env::cob_legacy, cob_legacy_env, runtime_env::cob_legacy_env, cob_save_env_value(), and NULL.
Referenced by cob_init().
COB_HIDDEN void cob_init_strings | ( | void | ) |
References cob_field::attr, cob_malloc(), COB_NORMAL_BUFF, cob_u8_ptr, const_alpha_attr, const_strall_attr, cob_field::data, DLM_DEFAULT_NUM, dlm_list_size, figurative_ptr, figurative_size, inspect_mark, inspect_mark_size, NULL, and cob_field::size.
Referenced by cob_init().
COB_HIDDEN void cob_init_termio | ( | cob_global * | ) |
Referenced by cob_init().
COB_HIDDEN void cob_parameter_check | ( | const char * | , |
const int | |||
) |
References _, __cob_global::cob_call_params, cob_runtime_error(), and cob_stop_run().
COB_HIDDEN void cob_print_ieeedec | ( | const cob_field * | , |
FILE * | |||
) |
COB_HIDDEN void cob_print_realbin | ( | const cob_field * | , |
FILE * | , | ||
const int | |||
) |
References CB_FMT_PLLD, CB_FMT_PLLU, cob_binary_get_sint64(), COB_FIELD_HAVE_SIGN, cob_s64_t, and cob_u64_t.
Referenced by display_common().
COB_HIDDEN int cob_real_get_sign | ( | cob_field * | ) |
COB_HIDDEN void cob_real_put_sign | ( | cob_field * | , |
const int | |||
) |
COB_HIDDEN void cob_runtime_error | ( | const char * | , |
... | |||
) |
References _, cob_exit_screen(), cob_free(), cob_source_file, cob_source_line, hdlrs, handlerlist::next, NULL, p, handlerlist::proc, and runtime_err_str.
Referenced by cob_call(), cob_call_error(), cob_cancel(), cob_check_based(), cob_check_numeric(), cob_check_odo(), cob_check_ref_mod(), cob_check_subscript(), cob_check_version(), cob_command_line(), cob_external_addr(), cob_fatal_error(), cob_get_sort_tempfile(), cob_longjmp(), cob_parameter_check(), cob_resolve_func(), cob_savenv(), cob_sys_check_file_exist(), cob_sys_file_info(), cob_sys_getopt_long_long(), and cob_sys_system().
COB_HIDDEN char* cob_save_env_value | ( | char * | , |
char * | |||
) |
References cob_fast_malloc(), cob_free(), and NULL.
Referenced by cob_init(), cob_init_call(), cob_init_fileio(), cob_init_screenio(), and cob_rescan_env_vals().
COB_HIDDEN void cob_screen_set_mode | ( | const cob_u32_t | ) |
COB_HIDDEN void cob_set_exception | ( | const int | ) |
References cob_current_paragraph, cob_current_program_id, cob_current_section, __cob_global::cob_exception_code, cob_exception_tab_code, __cob_global::cob_got_exception, __cob_global::cob_orig_line, __cob_global::cob_orig_paragraph, __cob_global::cob_orig_program_id, __cob_global::cob_orig_section, __cob_global::cob_orig_statement, cob_source_line, and cob_source_statement.
Referenced by cob_accept(), cob_accept_arg_value(), cob_accept_environment(), cob_alloc_field(), cob_allocate(), cob_call_field(), cob_check_odo(), cob_check_ref_mod(), cob_check_subscript(), cob_decimal_div(), cob_decimal_do_round(), cob_decimal_get_binary(), cob_decimal_get_display(), cob_decimal_get_field(), cob_decimal_get_ieee128dec(), cob_decimal_get_ieee64dec(), cob_decimal_get_packed(), cob_decimal_pow(), cob_display_arg_number(), cob_display_env_value(), cob_free_alloc(), cob_get_environment(), cob_inspect_converting(), cob_inspect_init(), cob_intr_acos(), cob_intr_annuity(), cob_intr_asin(), cob_intr_atan(), cob_intr_binop(), cob_intr_combined_datetime(), cob_intr_cos(), cob_intr_currency_symbol(), cob_intr_date_of_integer(), cob_intr_date_to_yyyymmdd(), cob_intr_day_of_integer(), cob_intr_day_to_yyyyddd(), cob_intr_exp(), cob_intr_exp10(), cob_intr_factorial(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_highest_algebraic(), cob_intr_integer_of_date(), cob_intr_integer_of_day(), cob_intr_lcl_time_from_secs(), cob_intr_locale_compare(), cob_intr_locale_date(), cob_intr_locale_time(), cob_intr_log(), cob_intr_log10(), cob_intr_lowest_algebraic(), cob_intr_mon_decimal_point(), cob_intr_mon_thousands_sep(), cob_intr_num_decimal_point(), cob_intr_num_thousands_sep(), cob_intr_numval(), cob_intr_numval_c(), cob_intr_numval_f(), cob_intr_seconds_from_formatted_time(), cob_intr_sin(), cob_intr_sqrt(), cob_intr_standard_deviation(), cob_intr_tan(), cob_intr_year_to_yyyy(), cob_mod_or_rem(), cob_resolve_cobol(), cob_resolve_internal(), cob_set_locale(), cob_string_append(), cob_string_init(), cob_unstring_finish(), cob_unstring_init(), inspect_common(), save_status(), and set_resolve_error().
COB_HIDDEN char* cob_strdup | ( | const char * | ) |
References cob_malloc().
Referenced by cache_dynload(), cache_preload(), cob_chk_call_path(), cob_chk_file_env(), cob_chk_file_mapping(), cob_fileio_getenv(), cob_getenv(), cob_gettmpdir(), cob_init(), cob_init_call(), cob_putenv(), cob_set_locale(), cob_strcat(), indexed_open(), and insert().