OpenCOBOL 1.1pre-rel
|
#include "config.h"
#include "defaults.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include <signal.h>
#include <locale.h>
#include "common.h"
#include "coblocal.h"
#include "move.h"
#include "numeric.h"
#include "termio.h"
#include "fileio.h"
#include "call.h"
#include "screenio.h"
#include "intrinsic.h"
#include "lib/gettext.h"
#include "exception.def"
Go to the source code of this file.
Data Structures | |
struct | cob_exception |
struct | cob_alloc_cache |
struct | exit_handlerlist |
struct | handlerlist |
Defines | |
#define | COB_ERRBUF_SIZE 256 |
#define | COB_EXCEPTION(code, tag, name, critical) name, |
#define | COB_EXCEPTION(code, tag, name, critical) 0x##code, |
#define | EXCEPTION_TAB_SIZE sizeof(cob_exception_tab_code) / sizeof(int) |
Typedefs | |
typedef void(* | cob_sighandler_t )(int) |
Functions | |
static void COB_NOINLINE | cob_sig_handler (int sig) |
Variables | |
static int | cob_argc = 0 |
static char ** | cob_argv = NULL |
static struct cob_alloc_cache * | cob_alloc_base = NULL |
static char * | cob_local_env = NULL |
static int | current_arg = 1 |
static unsigned char * | commlnptr = NULL |
static size_t | commlncnt = 0 |
static char * | locale_save = NULL |
static size_t | sort_nkeys |
static struct cob_file_key * | sort_keys |
static const unsigned char * | sort_collate |
static const char * | cob_current_program_id = NULL |
static const char * | cob_current_section = NULL |
static const char * | cob_current_paragraph = NULL |
static const char * | cob_source_file = NULL |
static const char * | cob_source_statement = NULL |
static unsigned int | cob_source_line = 0 |
static size_t | cob_line_trace = 0 |
static cob_sighandler_t | hupsig = NULL |
static cob_sighandler_t | intsig = NULL |
static cob_sighandler_t | qutsig = NULL |
static const char *const | cob_exception_tab_name [] |
static const int | cob_exception_tab_code [] |
static int | cob_switch [8] |
static struct exit_handlerlist * | exit_hdlrs |
static struct handlerlist * | hdlrs |
static char * | runtime_err_str |
static cob_field_attr | all_attr = { COB_TYPE_ALPHANUMERIC_ALL, 0, 0, 0, NULL } |
static cob_field_attr | one_attr = { COB_TYPE_NUMERIC, 1, 0, 0, NULL } |
struct cob_module * | cob_current_module = NULL |
int | cob_initialized = 0 |
int | cob_exception_code = 0 |
int | cob_call_params = 0 |
int | cob_save_call_params = 0 |
int | cob_initial_external = 0 |
int | cob_got_exception = 0 |
const char * | cob_orig_statement = NULL |
const char * | cob_orig_program_id = NULL |
const char * | cob_orig_section = NULL |
const char * | cob_orig_paragraph = NULL |
unsigned int | cob_orig_line = 0 |
cob_field | cob_zero = { 1, (ucharptr)"0", &all_attr } |
cob_field | cob_space = { 1, (ucharptr)" ", &all_attr } |
cob_field | cob_high = { 1, (ucharptr)"\xff", &all_attr } |
cob_field | cob_low = { 1, (ucharptr)"\0", &all_attr } |
cob_field | cob_quote = { 1, (ucharptr)"\"", &all_attr } |
cob_field | cob_one = { 1, (ucharptr)"1", &one_attr } |
#define COB_EXCEPTION | ( | code, | |
tag, | |||
name, | |||
critical | |||
) | 0x##code, |
#define EXCEPTION_TAB_SIZE sizeof(cob_exception_tab_code) / sizeof(int) |
typedef void(* cob_sighandler_t)(int) |
static void COB_NOINLINE cob_sig_handler | ( | int | sig | ) | [static] |
cob_field_attr all_attr = { COB_TYPE_ALPHANUMERIC_ALL, 0, 0, 0, NULL } [static] |
struct cob_alloc_cache* cob_alloc_base = NULL [static] |
int cob_call_params = 0 |
struct cob_module* cob_current_module = NULL |
const char* cob_current_paragraph = NULL [static] |
const char* cob_current_program_id = NULL [static] |
const char* cob_current_section = NULL [static] |
int cob_exception_code = 0 |
const int cob_exception_tab_code[] [static] |
const char* const cob_exception_tab_name[] [static] |
int cob_got_exception = 0 |
int cob_initial_external = 0 |
int cob_initialized = 0 |
size_t cob_line_trace = 0 [static] |
char* cob_local_env = NULL [static] |
unsigned int cob_orig_line = 0 |
const char* cob_orig_paragraph = NULL |
const char* cob_orig_program_id = NULL |
const char* cob_orig_section = NULL |
const char* cob_orig_statement = NULL |
int cob_save_call_params = 0 |
const char* cob_source_file = NULL [static] |
unsigned int cob_source_line = 0 [static] |
const char* cob_source_statement = NULL [static] |
int cob_switch[8] [static] |
int current_arg = 1 [static] |
struct exit_handlerlist * exit_hdlrs [static] |
struct handlerlist * hdlrs [static] |
cob_sighandler_t hupsig = NULL [static] |
cob_sighandler_t intsig = NULL [static] |
char* locale_save = NULL [static] |
cob_field_attr one_attr = { COB_TYPE_NUMERIC, 1, 0, 0, NULL } [static] |
cob_sighandler_t qutsig = NULL [static] |
char* runtime_err_str [static] |
const unsigned char* sort_collate [static] |
struct cob_file_key* sort_keys [static] |
size_t sort_nkeys [static] |