|  | GnuCOBOL
    2.0
    A free COBOL compiler | 
#include <stdio.h>#include "libcob.h"#include "flag.def"#include "warning.def"#include "codeoptim.def"#include "config.def"#include <unistd.h>#include <strings.h>#include "lib/gettext.h"

Go to the source code of this file.
| Data Structures | |
| struct | cb_text_list | 
| struct | cb_replace_list | 
| struct | cb_define_struct | 
| struct | local_filename | 
| struct | filename | 
| struct | cb_exception | 
| struct | noreserve | 
| struct | cobc_mem_struct | 
| Enumerations | |
| enum | cb_operation_type { CB_OPERATION_READ = 0, CB_OPERATION_WRITE, CB_OPERATION_ASSIGN } | 
| enum | cb_support { CB_OK = 0, CB_WARNING, CB_ARCHAIC, CB_OBSOLETE, CB_SKIP, CB_IGNORE, CB_ERROR, CB_UNCONFORMABLE } | 
| enum | cb_std_def { CB_STD_OC = 0, CB_STD_MF, CB_STD_IBM, CB_STD_MVS, CB_STD_BS2000, CB_STD_85, CB_STD_2002 } | 
| enum | cb_optim { COB_OPTIM_MIN = 0, COB_OPTIM_MAX } | 
| Functions | |
| void * | cobc_malloc (const size_t) | 
| memory allocation for use when compiling  More... | |
| void | cobc_free (void *) | 
| deallocation of compile time memory  More... | |
| void * | cobc_strdup (const char *) | 
| safely duplicate a character array  More... | |
| void * | cobc_realloc (void *, const size_t) | 
| void * | cobc_main_malloc (const size_t) | 
| void * | cobc_main_strdup (const char *) | 
| void * | cobc_main_realloc (void *, const size_t) | 
| void | cobc_main_free (void *) | 
| void * | cobc_parse_malloc (const size_t) | 
| void * | cobc_parse_strdup (const char *) | 
| void * | cobc_parse_realloc (void *, const size_t) | 
| void | cobc_parse_free (void *) | 
| void * | cobc_plex_malloc (const size_t) | 
| void * | cobc_plex_strdup (const char *) | 
| void * | cobc_check_string (const char *) | 
| void | cobc_abort_pr (const char *,...) COB_A_FORMAT12 | 
| DECLNORET void | cobc_abort (const char *, const int) COB_A_NORETURN | 
| DECLNORET void | cobc_too_many_errors (void) COB_A_NORETURN | 
| DECLNORET void | cobc_dumb_abort (const char *, const int) | 
| size_t | cobc_check_valid_name (const char *, const unsigned int) | 
| int | cb_load_std (const char *) | 
| int | cb_config_entry (char *, const char *, const int) | 
| int | cb_load_conf (const char *, const int, const int) | 
| void | cobc_init_scanner (void) | 
| void | cobc_init_typeck (void) | 
| void | cobc_init_reserved (void) | 
| int | pplex (void) | 
| int | ppparse (void) | 
| int | ppopen (const char *, struct cb_replace_list *) | 
| int | ppcopy (const char *, const char *, struct cb_replace_list *) | 
| void | pp_set_replace_list (struct cb_replace_list *, const cob_u32_t) | 
| void | ppparse_error (const char *) | 
| void | ppparse_clear_vars (const struct cb_define_struct *) | 
| void | plex_clear_vars (void) | 
| void | plex_clear_all (void) | 
| void | plex_call_destroy (void) | 
| void | plex_action_directive (const unsigned int, const unsigned int) | 
| int | yylex (void) | 
| int | yyparse (void) | 
| void | ylex_clear_all (void) | 
| void | ylex_call_destroy (void) | 
| void | cob_gen_optim (const enum cb_optim) | 
| void | cb_warning (const char *,...) COB_A_FORMAT12 | 
| void | cb_error (const char *,...) COB_A_FORMAT12 | 
| void | cb_plex_warning (const size_t, const char *,...) COB_A_FORMAT23 | 
| void | cb_plex_error (const size_t, const char *,...) COB_A_FORMAT23 | 
| void | configuration_error (const char *, const int, const char *,...) COB_A_FORMAT34 | 
| unsigned int | cb_verify (const enum cb_support, const char *) | 
| #define _ | ( | s | ) | s | 
| #define CB_ASSIGN_COBOL2002 2U /* COBOL 2002 standard */ | 
| #define CB_ASSIGN_COBOL2002 2U /* COBOL 2002 standard */ | 
| #define CB_ASSIGN_COBOL2002 2U /* COBOL 2002 standard */ | 
| #define CB_ASSIGN_COBOL2002 2U /* COBOL 2002 standard */ | 
| #define CB_ASSIGN_COBOL2002 2U /* COBOL 2002 standard */ | 
| #define CB_ASSIGN_IBM 1U /* IBM compatibility */ | 
| #define CB_ASSIGN_IBM 1U /* IBM compatibility */ | 
Referenced by cb_build_assignment_name(), and cb_config_entry().
| #define CB_ASSIGN_IBM 1U /* IBM compatibility */ | 
| #define CB_ASSIGN_IBM 1U /* IBM compatibility */ | 
| #define CB_ASSIGN_IBM 1U /* IBM compatibility */ | 
| #define CB_ASSIGN_MF 0 /* Micro Focus compatibility */ | 
| #define CB_ASSIGN_MF 0 /* Micro Focus compatibility */ | 
| #define CB_ASSIGN_MF 0 /* Micro Focus compatibility */ | 
| #define CB_ASSIGN_MF 0 /* Micro Focus compatibility */ | 
| #define CB_ASSIGN_MF 0 /* Micro Focus compatibility */ | 
Referenced by cb_build_assignment_name(), cb_config_entry(), and cb_validate_program_data().
| #define CB_BINARY_SIZE_1_2_4_8 0 /* 1,2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_1_2_4_8 0 /* 1,2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_1_2_4_8 0 /* 1,2,4,8 bytes */ | 
Referenced by cb_config_entry(), and compute_binary_size().
| #define CB_BINARY_SIZE_1_2_4_8 0 /* 1,2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_1_2_4_8 0 /* 1,2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_1__8 1U /* 1,2,3,4,5,6,7,8 bytes */ | 
| #define CB_BINARY_SIZE_1__8 1U /* 1,2,3,4,5,6,7,8 bytes */ | 
| #define CB_BINARY_SIZE_1__8 1U /* 1,2,3,4,5,6,7,8 bytes */ | 
Referenced by cb_config_entry(), and compute_binary_size().
| #define CB_BINARY_SIZE_1__8 1U /* 1,2,3,4,5,6,7,8 bytes */ | 
| #define CB_BINARY_SIZE_1__8 1U /* 1,2,3,4,5,6,7,8 bytes */ | 
| #define CB_BINARY_SIZE_2_4_8 2U /* 2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_2_4_8 2U /* 2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_2_4_8 2U /* 2,4,8 bytes */ | 
Referenced by cb_config_entry(), and compute_binary_size().
| #define CB_BINARY_SIZE_2_4_8 2U /* 2,4,8 bytes */ | 
| #define CB_BINARY_SIZE_2_4_8 2U /* 2,4,8 bytes */ | 
| #define CB_BYTEORDER_BIG_ENDIAN 0 | 
| #define CB_BYTEORDER_BIG_ENDIAN 0 | 
Referenced by cb_config_entry(), and setup_parameters().
| #define CB_BYTEORDER_BIG_ENDIAN 0 | 
| #define CB_BYTEORDER_BIG_ENDIAN 0 | 
| #define CB_BYTEORDER_BIG_ENDIAN 0 | 
| #define CB_BYTEORDER_NATIVE 1U | 
| #define CB_BYTEORDER_NATIVE 1U | 
Referenced by cb_config_entry().
| #define CB_BYTEORDER_NATIVE 1U | 
| #define CB_BYTEORDER_NATIVE 1U | 
| #define CB_BYTEORDER_NATIVE 1U | 
| #define CB_CONFIG_ANY | ( | type, | |
| var, | |||
| name | |||
| ) | extern type var; | 
| #define CB_CONFIG_ANY | ( | type, | |
| var, | |||
| name | |||
| ) | extern type var; | 
| #define CB_CONFIG_ANY | ( | type, | |
| var, | |||
| name | |||
| ) | extern type var; | 
| #define CB_CONFIG_ANY | ( | type, | |
| var, | |||
| name | |||
| ) | extern type var; | 
| #define CB_CONFIG_ANY | ( | type, | |
| var, | |||
| name | |||
| ) | extern type var; | 
| #define CB_CONFIG_BOOLEAN | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_BOOLEAN | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_BOOLEAN | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_BOOLEAN | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_BOOLEAN | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_INT | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_INT | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_INT | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_INT | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_INT | ( | var, | |
| name | |||
| ) | extern int var; | 
| #define CB_CONFIG_STRING | ( | var, | |
| name | |||
| ) | extern const char *var; | 
| #define CB_CONFIG_STRING | ( | var, | |
| name | |||
| ) | extern const char *var; | 
| #define CB_CONFIG_STRING | ( | var, | |
| name | |||
| ) | extern const char *var; | 
| #define CB_CONFIG_STRING | ( | var, | |
| name | |||
| ) | extern const char *var; | 
| #define CB_CONFIG_STRING | ( | var, | |
| name | |||
| ) | extern const char *var; | 
| #define CB_CONFIG_SUPPORT | ( | var, | |
| name | |||
| ) | extern enum cb_support var; | 
| #define CB_CONFIG_SUPPORT | ( | var, | |
| name | |||
| ) | extern enum cb_support var; | 
| #define CB_CONFIG_SUPPORT | ( | var, | |
| name | |||
| ) | extern enum cb_support var; | 
| #define CB_CONFIG_SUPPORT | ( | var, | |
| name | |||
| ) | extern enum cb_support var; | 
| #define CB_CONFIG_SUPPORT | ( | var, | |
| name | |||
| ) | extern enum cb_support var; | 
| #define CB_CS_ACCEPT (1U << 0) | 
| #define CB_CS_ACCEPT (1U << 0) | 
| #define CB_CS_ACCEPT (1U << 0) | 
| #define CB_CS_ACCEPT (1U << 0) | 
| #define CB_CS_ACCEPT (1U << 0) | 
| #define CB_CS_ALPHABET (1U << 1) | 
| #define CB_CS_ALPHABET (1U << 1) | 
| #define CB_CS_ALPHABET (1U << 1) | 
| #define CB_CS_ALPHABET (1U << 1) | 
| #define CB_CS_ALPHABET (1U << 1) | 
| #define CB_CS_ASSIGN (1U << 2) | 
| #define CB_CS_ASSIGN (1U << 2) | 
| #define CB_CS_ASSIGN (1U << 2) | 
| #define CB_CS_ASSIGN (1U << 2) | 
| #define CB_CS_ASSIGN (1U << 2) | 
| #define CB_CS_CALL (1U << 3) | 
| #define CB_CS_CALL (1U << 3) | 
| #define CB_CS_CALL (1U << 3) | 
| #define CB_CS_CALL (1U << 3) | 
| #define CB_CS_CALL (1U << 3) | 
| #define CB_CS_CONSTANT (1U << 4) | 
| #define CB_CS_CONSTANT (1U << 4) | 
| #define CB_CS_CONSTANT (1U << 4) | 
| #define CB_CS_CONSTANT (1U << 4) | 
| #define CB_CS_CONSTANT (1U << 4) | 
| #define CB_CS_DATE (1U << 5) | 
| #define CB_CS_DATE (1U << 5) | 
| #define CB_CS_DATE (1U << 5) | 
| #define CB_CS_DATE (1U << 5) | 
| #define CB_CS_DATE (1U << 5) | 
| #define CB_CS_DAY (1U << 6) | 
| #define CB_CS_DAY (1U << 6) | 
| #define CB_CS_DAY (1U << 6) | 
| #define CB_CS_DAY (1U << 6) | 
| #define CB_CS_DAY (1U << 6) | 
| #define CB_CS_DISPLAY (1U << 7) | 
| #define CB_CS_DISPLAY (1U << 7) | 
| #define CB_CS_DISPLAY (1U << 7) | 
| #define CB_CS_DISPLAY (1U << 7) | 
| #define CB_CS_DISPLAY (1U << 7) | 
| #define CB_CS_ERASE (1U << 8) | 
| #define CB_CS_ERASE (1U << 8) | 
| #define CB_CS_ERASE (1U << 8) | 
| #define CB_CS_ERASE (1U << 8) | 
| #define CB_CS_ERASE (1U << 8) | 
| #define CB_CS_EXIT (1U << 9) | 
| #define CB_CS_EXIT (1U << 9) | 
| #define CB_CS_EXIT (1U << 9) | 
| #define CB_CS_EXIT (1U << 9) | 
| #define CB_CS_FROM (1U << 10) | 
| #define CB_CS_FROM (1U << 10) | 
| #define CB_CS_FROM (1U << 10) | 
| #define CB_CS_FROM (1U << 10) | 
| #define CB_CS_FROM (1U << 10) | 
| #define CB_CS_PROGRAM_ID (1U << 11) | 
| #define CB_CS_PROGRAM_ID (1U << 11) | 
| #define CB_CS_PROGRAM_ID (1U << 11) | 
Referenced by lookup_reserved_word().
| #define CB_CS_PROGRAM_ID (1U << 11) | 
| #define CB_CS_PROGRAM_ID (1U << 11) | 
| #define CB_CS_ROUNDED (1U << 12) | 
| #define CB_CS_ROUNDED (1U << 12) | 
| #define CB_CS_ROUNDED (1U << 12) | 
| #define CB_CS_ROUNDED (1U << 12) | 
| #define CB_CS_ROUNDED (1U << 12) | 
| #define CB_CS_SET (1U << 13) | 
| #define CB_CS_SET (1U << 13) | 
| #define CB_CS_SET (1U << 13) | 
| #define CB_CS_SET (1U << 13) | 
| #define CB_CS_SET (1U << 13) | 
| #define CB_CS_STOP (1U << 14) | 
| #define CB_CS_STOP (1U << 14) | 
| #define CB_CS_STOP (1U << 14) | 
| #define CB_CS_STOP (1U << 14) | 
| #define CB_CS_STOP (1U << 14) | 
| #define CB_CS_WITH (1U << 15) | 
| #define CB_CS_WITH (1U << 15) | 
| #define CB_CS_WITH (1U << 15) | 
| #define CB_CS_WITH (1U << 15) | 
| #define CB_CS_WITH (1U << 15) | 
| #define CB_EXCEPTION_CODE | ( | id | ) | cb_exception_table[id].code | 
| #define CB_EXCEPTION_CODE | ( | id | ) | cb_exception_table[id].code | 
| #define CB_EXCEPTION_CODE | ( | id | ) | cb_exception_table[id].code | 
Referenced by output_stmt().
| #define CB_EXCEPTION_CODE | ( | id | ) | cb_exception_table[id].code | 
| #define CB_EXCEPTION_CODE | ( | id | ) | cb_exception_table[id].code | 
| #define CB_EXCEPTION_ENABLE | ( | id | ) | cb_exception_table[id].enable | 
| #define CB_EXCEPTION_ENABLE | ( | id | ) | cb_exception_table[id].enable | 
| #define CB_EXCEPTION_ENABLE | ( | id | ) | cb_exception_table[id].enable | 
| #define CB_EXCEPTION_ENABLE | ( | id | ) | cb_exception_table[id].enable | 
| #define CB_EXCEPTION_ENABLE | ( | id | ) | cb_exception_table[id].enable | 
| #define CB_EXCEPTION_NAME | ( | id | ) | cb_exception_table[id].name | 
| #define CB_EXCEPTION_NAME | ( | id | ) | cb_exception_table[id].name | 
| #define CB_EXCEPTION_NAME | ( | id | ) | cb_exception_table[id].name | 
| #define CB_EXCEPTION_NAME | ( | id | ) | cb_exception_table[id].name | 
| #define CB_EXCEPTION_NAME | ( | id | ) | cb_exception_table[id].name | 
| #define CB_FLAG | ( | var, | |
| pdok, | |||
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG | ( | var, | |
| pdok, | |||
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG | ( | var, | |
| pdok, | |||
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG | ( | var, | |
| pdok, | |||
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG | ( | var, | |
| pdok, | |||
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG_NQ | ( | pdok, | |
| name, | |||
| opt, | |||
| doc | |||
| ) | 
| #define CB_FLAG_NQ | ( | pdok, | |
| name, | |||
| opt, | |||
| doc | |||
| ) | 
| #define CB_FLAG_NQ | ( | pdok, | |
| name, | |||
| opt, | |||
| doc | |||
| ) | 
| #define CB_FLAG_NQ | ( | pdok, | |
| name, | |||
| opt, | |||
| doc | |||
| ) | 
| #define CB_FLAG_NQ | ( | pdok, | |
| name, | |||
| opt, | |||
| doc | |||
| ) | 
| #define CB_FLAG_RQ | ( | var, | |
| pdok, | |||
| name, | |||
| def, | |||
| opt, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG_RQ | ( | var, | |
| pdok, | |||
| name, | |||
| def, | |||
| opt, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG_RQ | ( | var, | |
| pdok, | |||
| name, | |||
| def, | |||
| opt, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG_RQ | ( | var, | |
| pdok, | |||
| name, | |||
| def, | |||
| opt, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FLAG_RQ | ( | var, | |
| pdok, | |||
| name, | |||
| def, | |||
| opt, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_FORMAT_FIXED 0 | 
| #define CB_FORMAT_FIXED 0 | 
Referenced by check_listing(), and ppinput().
| #define CB_FORMAT_FIXED 0 | 
| #define CB_FORMAT_FIXED 0 | 
| #define CB_FORMAT_FIXED 0 | 
| #define CB_FORMAT_FREE 1 | 
| #define CB_FORMAT_FREE 1 | 
| #define CB_FORMAT_FREE 1 | 
| #define CB_FORMAT_FREE 1 | 
| #define CB_MSG_STYLE_GCC 0 | 
| #define CB_MSG_STYLE_GCC 0 | 
| #define CB_MSG_STYLE_GCC 0 | 
| #define CB_MSG_STYLE_GCC 0 | 
| #define CB_MSG_STYLE_MSC 1U | 
| #define CB_MSG_STYLE_MSC 1U | 
| #define CB_MSG_STYLE_MSC 1U | 
| #define CB_MSG_STYLE_MSC 1U | 
| #define CB_MSG_STYLE_MSC 1U | 
Referenced by cobc_print_info(), main(), and print_error().
| #define CB_NOWARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_NOWARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_NOWARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_NOWARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_NOWARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_OPTIM_DEF | ( | x | ) | x, | 
| #define CB_OPTIM_DEF | ( | x | ) | x, | 
| #define CB_OPTIM_DEF | ( | x | ) | x, | 
| #define CB_OPTIM_DEF | ( | x | ) | x, | 
| #define CB_OPTIM_DEF | ( | x | ) | x, | 
| #define CB_REPLACE_LEADING 1U | 
| #define CB_REPLACE_LEADING 1U | 
| #define CB_REPLACE_LEADING 1U | 
| #define CB_REPLACE_LEADING 1U | 
| #define CB_REPLACE_TRAILING 2U | 
| #define CB_REPLACE_TRAILING 2U | 
| #define CB_REPLACE_TRAILING 2U | 
| #define CB_REPLACE_TRAILING 2U | 
| #define CB_STRINGIFY | ( | s | ) | #s | 
| #define CB_STRINGIFY | ( | s | ) | #s | 
| #define CB_STRINGIFY | ( | s | ) | #s | 
| #define CB_STRINGIFY | ( | s | ) | #s | 
| #define CB_STRINGIFY | ( | s | ) | #s | 
| #define CB_WARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_WARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_WARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_WARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_WARNDEF | ( | var, | |
| name, | |||
| doc | |||
| ) | extern int var; | 
| #define CB_XSTRINGIFY | ( | s | ) | CB_STRINGIFY(s) | 
| #define CB_XSTRINGIFY | ( | s | ) | CB_STRINGIFY(s) | 
| #define CB_XSTRINGIFY | ( | s | ) | CB_STRINGIFY(s) | 
| #define CB_XSTRINGIFY | ( | s | ) | CB_STRINGIFY(s) | 
| #define CB_XSTRINGIFY | ( | s | ) | CB_STRINGIFY(s) | 
Referenced by codegen().
| #define COBC_ABORT | ( | ) | cobc_abort(__FILE__, __LINE__) | 
| #define COBC_ABORT | ( | ) | cobc_abort(__FILE__, __LINE__) | 
Referenced by cb_build_binary_op(), cb_get_int(), cb_get_long_long(), cb_get_u_long_long(), cb_tree_category(), cb_tree_type(), cob_gen_optim(), compute_size(), decimal_alloc(), decimal_compute(), decimal_expand(), initialize_type(), output_attr(), output_base(), output_call_by_value_args(), output_cond(), output_data(), output_funcall(), output_initialize_one(), output_integer(), output_internal_function(), output_long_integer(), output_param(), output_size(), output_stmt(), plex_action_directive(), and validate_move().
| #define COBC_ABORT | ( | ) | cobc_abort(__FILE__, __LINE__) | 
| #define COBC_ABORT | ( | ) | cobc_abort(__FILE__, __LINE__) | 
| #define COBC_ABORT | ( | ) | cobc_abort(__FILE__, __LINE__) | 
| #define COBC_DUMB_ABORT | ( | ) | cobc_dumb_abort(__FILE__, __LINE__) | 
| #define COBC_DUMB_ABORT | ( | ) | cobc_dumb_abort(__FILE__, __LINE__) | 
| #define COBC_DUMB_ABORT | ( | ) | cobc_dumb_abort(__FILE__, __LINE__) | 
Referenced by cb_field_size(), and cb_tree_type().
| #define COBC_DUMB_ABORT | ( | ) | cobc_dumb_abort(__FILE__, __LINE__) | 
| #define COBC_DUMB_ABORT | ( | ) | cobc_dumb_abort(__FILE__, __LINE__) | 
| #define F_OK 0 | 
Referenced by cob_fd_file_open(), cob_file_open(), cobc_check_action(), cobc_clean_up(), and indexed_open().
| #define N_ | ( | s | ) | gettext_noop(s) | 
| #define N_ | ( | s | ) | gettext_noop(s) | 
| #define N_ | ( | s | ) | gettext_noop(s) | 
| #define N_ | ( | s | ) | gettext_noop(s) | 
| #define N_ | ( | s | ) | s | 
| #define PLEX_ACT_ELIF 3U | 
| #define PLEX_ACT_ELIF 3U | 
| #define PLEX_ACT_ELIF 3U | 
| #define PLEX_ACT_ELIF 3U | 
Referenced by plex_action_directive().
| #define PLEX_ACT_ELIF 3U | 
| #define PLEX_ACT_ELSE 1U | 
Referenced by plex_action_directive().
| #define PLEX_ACT_ELSE 1U | 
| #define PLEX_ACT_ELSE 1U | 
| #define PLEX_ACT_ELSE 1U | 
| #define PLEX_ACT_ELSE 1U | 
| #define PLEX_ACT_END 2U | 
| #define PLEX_ACT_END 2U | 
Referenced by plex_action_directive().
| #define PLEX_ACT_END 2U | 
| #define PLEX_ACT_END 2U | 
| #define PLEX_ACT_END 2U | 
| #define PLEX_ACT_IF 0 | 
Referenced by plex_action_directive().
| #define PLEX_ACT_IF 0 | 
| #define PLEX_ACT_IF 0 | 
| #define PLEX_ACT_IF 0 | 
| #define PLEX_ACT_IF 0 | 
| #define PLEX_DEF_DEL 3U | 
| #define PLEX_DEF_DEL 3U | 
Referenced by ppp_define_add(), ppp_define_del(), and ppp_search_lists().
| #define PLEX_DEF_DEL 3U | 
| #define PLEX_DEF_DEL 3U | 
| #define PLEX_DEF_DEL 3U | 
| #define PLEX_DEF_LIT 1U | 
| #define PLEX_DEF_LIT 1U | 
Referenced by cobc_set_value(), ppp_compare_vals(), and ppp_set_value().
| #define PLEX_DEF_LIT 1U | 
| #define PLEX_DEF_LIT 1U | 
| #define PLEX_DEF_LIT 1U | 
| #define PLEX_DEF_NONE 0 | 
Referenced by cb_define_list_add(), cobc_set_value(), and ppp_set_value().
| #define PLEX_DEF_NONE 0 | 
| #define PLEX_DEF_NONE 0 | 
| #define PLEX_DEF_NONE 0 | 
| #define PLEX_DEF_NONE 0 | 
| #define PLEX_DEF_NUM 2U | 
| #define PLEX_DEF_NUM 2U | 
| #define PLEX_DEF_NUM 2U | 
Referenced by cobc_set_value(), ppp_compare_vals(), and ppp_set_value().
| #define PLEX_DEF_NUM 2U | 
| #define PLEX_DEF_NUM 2U | 
| #define R_OK 4 | 
Referenced by cache_preload(), cob_init(), cob_resolve_internal(), indexed_open(), ppcopy(), and process_filename().
| #define W_OK 2 | 
Referenced by indexed_open().
| #define X_OK 1 | 
| enum cb_operation_type | 
| enum cb_optim | 
| enum cb_std_def | 
| enum cb_support | 
| int cb_config_entry | ( | char * | , | 
| const char * | , | ||
| const int | |||
| ) | 
References _, CB_ANY, CB_ARCHAIC, CB_ASSIGN_IBM, CB_ASSIGN_MF, CB_BINARY_SIZE_1_2_4_8, CB_BINARY_SIZE_1__8, CB_BINARY_SIZE_2_4_8, CB_BOOLEAN, CB_BYTEORDER_BIG_ENDIAN, CB_BYTEORDER_NATIVE, CB_CONFIG_SIZE, CB_ERROR, CB_IGNORE, CB_INT, CB_OBSOLETE, CB_OK, CB_SKIP, CB_STRING, CB_SUPPORT, CB_UNCONFORMABLE, CB_WARNING, cobc_main_malloc(), cobc_nores_base, config_table, configuration_error(), invalid_value(), config_struct::name, noreserve::next, noreserve::noresword, NULL, read_string(), unsupported_value(), config_struct::val, and config_struct::var.
Referenced by cb_load_conf(), and process_command_line().
| void cb_error | ( | const char * | , | 
| ... | |||
| ) | 
References _, cobc_cs_check, cobc_in_repository, cobc_too_many_errors(), errorcount, NULL, and print_error().
Referenced by build_evaluate(), cb_build_const_length(), cb_build_locale_name(), cb_build_picture(), cb_expr_finish(), cb_validate_program_data(), cb_verify(), check_comp_repeated(), check_pic_repeated(), check_relaxed_syntax(), check_repeated(), check_screen_attr(), cobc_error_name(), finalize_file(), if(), increment_depth(), lookup_reserved_word(), make_intrinsic(), ppcopy(), ppopen(), ppp_define_add(), scan_define_options(), scan_floating_numeric(), scan_h(), scan_numeric(), scan_x(), setup_use_file(), and while().
| int cb_load_conf | ( | const char * | , | 
| const int | , | ||
| const int | |||
| ) | 
References _, cb_config_entry(), CB_CONFIG_SIZE, cb_load_conf(), cob_config_dir, COB_SMALL_BUFF, COB_SMALL_MAX, config_table, configuration_error(), line, NULL, read_string(), SLASH_STR, and config_struct::val.
Referenced by cb_load_conf(), cb_load_std(), and process_command_line().
| int cb_load_std | ( | const char * | ) | 
References cb_load_conf().
Referenced by process_command_line().
| void cb_plex_error | ( | const size_t | , | 
| const char * | , | ||
| ... | |||
| ) | 
References _, cb_source_line, cobc_too_many_errors(), errorcount, NULL, and print_error().
Referenced by plex_action_directive(), ppinput(), and ppparse_error().
| void cb_plex_warning | ( | const size_t | , | 
| const char * | , | ||
| ... | |||
| ) | 
References _, cb_source_line, NULL, print_error(), and warningcount.
Referenced by ppinput(), and while().
| unsigned int cb_verify | ( | const enum | cb_support, | 
| const char * | |||
| ) | 
References _, CB_ARCHAIC, CB_ERROR, cb_error(), CB_IGNORE, CB_OBSOLETE, CB_OK, CB_SKIP, CB_UNCONFORMABLE, CB_WARNING, cb_warning(), and warningopt.
Referenced by cb_emit_goto(), check_comments(), compute_size(), validate_field_1(), and while().
| void cb_warning | ( | const char * | , | 
| ... | |||
| ) | 
References _, NULL, print_error(), and warningcount.
Referenced by begin_statement(), cb_build_assignment_name(), cb_emit_call(), cb_emit_read(), cb_validate_program_data(), cb_verify(), check_comp_repeated(), check_pic_repeated(), check_relaxed_syntax(), check_repeated(), check_screen_attr(), emit_entry(), expr_reduce(), ppp_compare_vals(), read_literal(), and warning_destination().
| void cob_gen_optim | ( | const enum | cb_optim | ) | 
References _, COBC_ABORT, cobc_abort_pr(), and output_storage().
Referenced by codegen().
| DECLNORET void cobc_abort | ( | const char * | , | 
| const int | |||
| ) | 
| void cobc_abort_pr | ( | const char * | , | 
| ... | |||
| ) | 
Referenced by cb_build_binary_op(), cb_define_list_add(), cb_field_size(), cb_get_int(), cb_get_long_long(), cb_get_u_long_long(), cb_tree_category(), cb_tree_type(), cob_gen_optim(), cobc_abort(), cobc_abort_terminate(), cobc_check_action(), cobc_check_string(), cobc_error_name(), cobc_free(), cobc_main_malloc(), cobc_main_realloc(), cobc_main_strdup(), cobc_malloc(), cobc_parse_malloc(), cobc_parse_realloc(), cobc_parse_strdup(), cobc_plex_malloc(), cobc_plex_strdup(), cobc_realloc(), cobc_set_value(), cobc_stradd_dup(), cobc_strdup(), cobc_too_many_errors(), cobc_tree_cast_error(), compute_size(), decimal_alloc(), decimal_compute(), decimal_expand(), initialize_type(), output_attr(), output_base(), output_call_by_value_args(), output_cond(), output_data(), output_funcall(), output_initialize_one(), output_integer(), output_internal_function(), output_long_integer(), output_param(), output_size(), output_stmt(), plex_action_directive(), process_command_line(), process_filename(), and validate_move().
| void* cobc_check_string | ( | const char * | ) | 
References _, base_string, cobc_abort_pr(), cobc_abort_terminate(), cobc_main_malloc(), cobc_main_strdup(), strcache::next, unlikely, and strcache::val.
Referenced by cb_build_binary_picture(), cb_build_picture(), cb_build_program_id(), cb_define_list_add(), and cb_encode_program_id().
| size_t cobc_check_valid_name | ( | const char * | , | 
| const unsigned | int | ||
| ) | 
References cob_csyns, COB_NUM_CSYNS, cobc_bcompare(), cobc_error_name(), and p.
Referenced by cb_build_program_id(), and process_filename().
| DECLNORET void cobc_dumb_abort | ( | const char * | , | 
| const int | |||
| ) | 
References cobc_abort().
| void cobc_free | ( | void * | ) | 
deallocation of compile time memory
References _, cobc_abort_pr(), cobc_abort_terminate(), and unlikely.
Referenced by cb_define_list_add(), cb_reset_78(), cb_reset_global_78(), clear_initial_values(), cobc_cmd_print(), cobc_deciph_funcs(), cobc_free_mem(), cobc_main_free(), cobc_main_realloc(), cobc_parse_free(), cobc_parse_realloc(), cobc_var_print(), main(), plex_clear_all(), ppecho(), preprocess(), process(), process_env_copy_path(), scan_define_options(), while(), and ylex_clear_all().
| void cobc_init_reserved | ( | void | ) | 
| void cobc_init_typeck | ( | void | ) | 
| void cobc_main_free | ( | void * | ) | 
References cobc_free(), cobc_mem_struct::memptr, cobc_mem_struct::next, and NULL.
| void* cobc_main_malloc | ( | const size_t | ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_mainmem_base, cobc_mem_struct::memlen, cobc_mem_struct::memptr, cobc_mem_struct::next, and unlikely.
Referenced by ambiguous_error(), cb_build_class_name(), cb_build_picture(), cb_config_entry(), cb_define_list_add(), cb_expr_init(), cb_int(), cb_text_list_add(), cobc_check_string(), cobc_main_strdup(), cobc_set_value(), cobc_stradd_dup(), codegen(), finalize_file(), main(), output_initialize_one(), process_assemble(), process_command_line(), process_filename(), process_module_direct(), process_translate(), and undefined_error().
| void* cobc_main_realloc | ( | void * | , | 
| const size_t | |||
| ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_free(), cobc_mem_struct::memlen, cobc_mem_struct::memptr, cobc_mem_struct::next, NULL, and unlikely.
Referenced by cb_expr_shift(), cobc_add_str(), cobc_chk_buff_size(), file_basename(), and output_initialize_one().
| void* cobc_main_strdup | ( | const char * | ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_main_malloc(), p, and unlikely.
Referenced by cb_text_list_add(), cobc_check_string(), cobc_getenv(), cobc_set_value(), main(), process_command_line(), process_filename(), process_link(), and read_string().
| void* cobc_malloc | ( | const size_t | ) | 
memory allocation for use when compiling
Allocate size bytes of memory, cleared to zeros. Aborts compile if memory unavailable.
References _, cobc_abort_pr(), cobc_abort_terminate(), and unlikely.
Referenced by cb_add_78(), cb_add_const_var(), cobc_strdup(), ppopen(), and process().
| void cobc_parse_free | ( | void * | ) | 
References cobc_free(), cobc_mem_struct::memptr, cobc_mem_struct::next, and NULL.
Referenced by cb_build_move_literal(), terminator_clear(), terminator_error(), and terminator_warning().
| void* cobc_parse_malloc | ( | const size_t | ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_parsemem_base, cobc_mem_struct::memlen, cobc_mem_struct::memptr, cobc_mem_struct::next, and unlikely.
Referenced by add_contained_prog(), build_literal(), cb_build_label(), cb_build_move(), cb_build_move_literal(), cb_build_picture(), cb_build_program(), cb_concat_literals(), cb_name(), cb_validate_program_body(), check_attribs(), cobc_parse_strdup(), lookup_attr(), lookup_call(), lookup_func_call(), lookup_literal(), lookup_string(), lookup_word(), make_tree(), output_base(), output_internal_function(), output_param(), output_perform_call(), setup_use_file(), and validate_field_1().
| void* cobc_parse_realloc | ( | void * | , | 
| const size_t | |||
| ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_free(), cobc_mem_struct::memlen, cobc_mem_struct::memptr, cobc_mem_struct::next, NULL, and unlikely.
| void* cobc_parse_strdup | ( | const char * | ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_parse_malloc(), p, and unlikely.
Referenced by cb_build_class_name(), cb_build_debug(), cb_emit_evaluate(), cb_to_cname(), lookup_string(), lookup_word(), and while().
| void* cobc_plex_malloc | ( | const size_t | ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_plexmem_base, cobc_mem_struct::memptr, cobc_mem_struct::next, and unlikely.
Referenced by cobc_plex_strdup(), pp_text_list_add(), ppp_define_add(), ppp_list_add(), and ppp_replace_list_add().
| void* cobc_plex_strdup | ( | const char * | ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_plex_malloc(), p, and unlikely.
Referenced by ppp_define_add(), ppp_list_add(), ppp_set_value(), switch_to_buffer(), and while().
| void* cobc_realloc | ( | void * | , | 
| const size_t | |||
| ) | 
References _, cobc_abort_pr(), cobc_abort_terminate(), and unlikely.
Referenced by read_literal(), scan_x(), and scan_z().
| void* cobc_strdup | ( | const char * | ) | 
safely duplicate a character array
References _, cobc_abort_pr(), cobc_abort_terminate(), cobc_malloc(), p, and unlikely.
Referenced by cb_define_list_add(), cobc_cmd_print(), cobc_deciph_funcs(), cobc_var_print(), ppecho(), ppopen(), process_command_line(), process_env_copy_path(), scan_define_options(), and while().
| DECLNORET void cobc_too_many_errors | ( | void | ) | 
References _, cobc_abort_pr(), and cobc_abort_terminate().
Referenced by cb_error(), cb_error_x(), and cb_plex_error().
| void configuration_error | ( | const char * | , | 
| const int | , | ||
| const char * | , | ||
| ... | |||
| ) | 
References _, and conf_error_displayed.
Referenced by cb_config_entry(), cb_load_conf(), invalid_value(), process_command_line(), and unsupported_value().
| void plex_action_directive | ( | const unsigned | int, | 
| const unsigned | int | ||
| ) | 
| void plex_call_destroy | ( | void | ) | 
| void plex_clear_all | ( | void | ) | 
| void plex_clear_vars | ( | void | ) | 
| void pp_set_replace_list | ( | struct cb_replace_list * | , | 
| const cob_u32_t | |||
| ) | 
References base_replace_list, cb_replace_list::last, cb_replace_list::next, NULL, and cb_replace_list::prev.
| int ppcopy | ( | const char * | , | 
| const char * | , | ||
| struct cb_replace_list * | |||
| ) | 
References _, cb_error(), cb_extension_list, cb_include_list, COB_SMALL_MAX, cb_text_list::next, plexbuff1, ppopen(), R_OK, and cb_text_list::text.
| int pplex | ( | void | ) | 
| int ppopen | ( | const char * | , | 
| struct cb_replace_list * | |||
| ) | 
References _, copy_info::buffer, cb_error(), cb_source_file, cb_source_format, cb_source_line, cobc_malloc(), cobc_strdup(), copy_stack, current_replace_list, copy_info::dname, errorcount, copy_info::file, cb_replace_list::last, copy_info::line, cb_replace_list::next, copy_info::next, p, pp_create_buffer(), ppin, copy_info::quotation_mark, quotation_mark, copy_info::replacing, replacing_list, copy_info::source_format, switch_to_buffer(), YY_BUF_SIZE, and YY_CURRENT_BUFFER.
Referenced by ppcopy(), and preprocess().
| int ppparse | ( | void | ) | 
Referenced by preprocess().
| void ppparse_clear_vars | ( | const struct cb_define_struct * | ) | 
References cb_define_struct::name, cb_define_struct::next, NULL, ppp_define_add(), and cb_define_struct::value.
Referenced by preprocess().
| void ppparse_error | ( | const char * | ) | 
References cb_plex_error().
| void ylex_call_destroy | ( | void | ) | 
References NULL, and yylex_destroy().
Referenced by process_translate().
| void ylex_clear_all | ( | void | ) | 
| int yylex | ( | void | ) | 
| int yyparse | ( | void | ) | 
| int cb_attr_id | 
Referenced by lookup_attr(), and main().
| struct cb_text_list* cb_early_exit_list | 
Referenced by output_call().
| struct cb_exception cb_exception_table[] | 
| struct cb_text_list* cb_extension_list | 
Referenced by ppcopy().
| int cb_field_id | 
Referenced by cb_build_field(), and main().
| int cb_flag_functions_all | 
Referenced by cb_build_program(), and cobc_deciph_funcs().
| int cb_flag_main | 
Referenced by process_command_line().
| int cb_id | 
Referenced by cb_build_label(), cb_emit_evaluate(), main(), output_perform_call(), and output_stmt().
| struct cb_text_list* cb_include_list | 
Referenced by ppcopy().
| struct cb_text_list* cb_intrinsic_list | 
Referenced by while().
| FILE* cb_listing_file | 
Referenced by check_listing(), cobc_clean_up(), main(), ppecho(), and preprocess().
| int cb_literal_id | 
Referenced by lookup_literal(), and main().
| size_t cb_msg_style | 
Referenced by cobc_print_info(), main(), and print_error().
| char* cb_oc_build_stamp | 
Referenced by cobc_print_version(), main(), and output_header().
| int cb_saveargc | 
Referenced by main(), and output_header().
| char** cb_saveargv | 
Referenced by main(), and output_header().
| const char* cb_source_file | 
| int cb_source_format | 
Referenced by check_listing(), ppinput(), ppopen(), preprocess(), and while().
| int cb_source_line | 
Referenced by begin_statement(), cb_build_comment(), cb_build_debug(), cb_build_debug_call(), cb_build_filler(), cb_plex_error(), cb_plex_warning(), cobc_abort_terminate(), count_lines(), emit_entry(), plex_action_directive(), ppopen(), print_error(), process_translate(), switch_to_buffer(), and while().
| struct cb_text_list* cb_static_call_list | 
Referenced by output_call().
| FILE* cb_storage_file | 
Referenced by cobc_clean_up(), codegen(), output_storage(), and process_translate().
| const char* cb_storage_file_name | 
Referenced by codegen(), and process_translate().
| const char* cob_config_dir | 
Referenced by cb_load_conf(), and main().
| int cobc_flag_main | 
Referenced by codegen(), main(), output_internal_function(), output_module_init(), and process_command_line().
| unsigned int cobc_gen_listing | 
Referenced by check_listing(), preprocess(), process_command_line(), and process_filename().
| char * cobc_glob_line | 
Referenced by begin_statement(), and clear_initial_values().
| struct noreserve* cobc_nores_base | 
Referenced by cb_config_entry(), lookup_intrinsic(), and lookup_reserved_word().
| int cobc_wants_debug | 
Referenced by main(), and process_command_line().
| struct cb_label * current_paragraph | 
Referenced by cb_validate_program_body(), and print_error().
| struct cb_program * current_program | 
Referenced by build_file(), build_report(), cb_add_78(), cb_build_alter(), cb_build_assignment_name(), cb_build_cond(), cb_build_debug_item(), cb_build_field_tree(), cb_build_index(), cb_build_intrinsic(), cb_build_perform_varying(), cb_build_picture(), cb_build_program_id(), cb_build_registers(), cb_check_field_debug(), cb_check_lit_subs(), cb_chk_alpha_cond(), cb_emit_accept(), cb_emit_call(), cb_emit_close(), cb_emit_delete(), cb_emit_delete_file(), cb_emit_open(), cb_emit_perform(), cb_emit_read(), cb_emit_rewrite(), cb_emit_sort_init(), cb_emit_sort_input(), cb_emit_sort_output(), cb_emit_start(), cb_emit_write(), cb_ref(), cb_validate_program_body(), cb_validate_program_data(), cb_validate_program_environment(), decimal_alloc(), decimal_free(), finalize_file(), if(), lookup_word(), process_translate(), scan_numeric(), setup_use_file(), validate_field_1(), and while().
| struct cb_label * current_section | 
Referenced by cb_validate_program_body(), print_error(), and setup_use_file().
| struct cb_statement * current_statement | 
Referenced by begin_statement(), build_store_option(), cb_build_cond(), cb_build_expr(), cb_build_identifier(), cb_build_perform_varying(), cb_build_replacing_characters(), cb_build_tallying_all(), cb_build_tallying_characters(), cb_build_tallying_leading(), cb_build_tallying_trailing(), cb_check_field_debug(), cb_emit_allocate(), cb_emit_call(), cb_emit_close(), cb_emit_delete(), cb_emit_delete_file(), cb_emit_free(), cb_emit_goto(), cb_emit_inspect(), cb_emit_move(), cb_emit_open(), cb_emit_perform(), cb_emit_read(), cb_emit_release(), cb_emit_return(), cb_emit_rewrite(), cb_emit_set_attribute(), cb_emit_set_to(), cb_emit_sort_giving(), cb_emit_sort_input(), cb_emit_sort_output(), cb_emit_sort_using(), cb_emit_start(), cb_emit_unlock(), cb_emit_write(), check_valid_key(), decimal_alloc(), evaluate_test(), search_set_keys(), and validate_inspect().
| const char* demangle_name | 
Referenced by main().
| int errorcount | 
Referenced by cb_error(), cb_error_x(), cb_plex_error(), ppopen(), preprocess(), and process_translate().
| int functions_are_all | 
Referenced by cb_build_program(), and while().
| int no_physical_cancel | 
Referenced by output_module_init(), and process_command_line().
| cob_u32_t optimize_defs[] | 
| FILE * ppin = (FILE *) 0 | 
Referenced by cobc_clean_up(), if(), input(), main(), pp_load_buffer_state(), ppinput(), ppopen(), pprestart(), preprocess(), while(), yy_get_next_buffer(), and yy_init_globals().
| FILE * ppout = (FILE *) 0 | 
Referenced by cobc_clean_up(), if(), main(), ppecho(), preprocess(), switch_to_buffer(), and yy_init_globals().
| size_t suppress_warn | 
Referenced by cb_check_overlapping(), move_warning(), output_move(), and validate_move().
| int warningcount | 
Referenced by cb_plex_warning(), cb_warning(), and cb_warning_x().
| int warningopt | 
Referenced by cb_build_assignment_name(), cb_emit_call(), cb_verify(), check_picture_item(), compute_size(), process_command_line(), validate_move(), and while().
| FILE* yyin | 
| FILE* yyout |