OpenCOBOL 1.1pre-rel
Classes | Defines | Typedefs | Variables
common.c File Reference
#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"
Include dependency graph for common.c:

Go to the source code of this file.

Classes

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)

Variables

struct cob_modulecob_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 Documentation

#define COB_ERRBUF_SIZE   256

Definition at line 75 of file common.c.

#define COB_EXCEPTION (   code,
  tag,
  name,
  critical 
)    name,

Definition at line 122 of file common.c.

#define COB_EXCEPTION (   code,
  tag,
  name,
  critical 
)    0x##code,

Definition at line 122 of file common.c.

#define EXCEPTION_TAB_SIZE   sizeof(cob_exception_tab_code) / sizeof(int)

Definition at line 131 of file common.c.


Typedef Documentation

typedef void(* cob_sighandler_t)(int)

Definition at line 103 of file common.c.


Variable Documentation

int cob_call_params = 0

Definition at line 163 of file common.c.

Definition at line 158 of file common.c.

Definition at line 161 of file common.c.

Definition at line 166 of file common.c.

cob_field cob_high = { 1, (ucharptr)"\xff", &all_attr }

Definition at line 176 of file common.c.

Definition at line 165 of file common.c.

int cob_initialized = 0

Definition at line 160 of file common.c.

cob_field cob_low = { 1, (ucharptr)"\0", &all_attr }

Definition at line 177 of file common.c.

cob_field cob_one = { 1, (ucharptr)"1", &one_attr }

Definition at line 179 of file common.c.

unsigned int cob_orig_line = 0

Definition at line 172 of file common.c.

const char* cob_orig_paragraph = NULL

Definition at line 171 of file common.c.

const char* cob_orig_program_id = NULL

Definition at line 169 of file common.c.

const char* cob_orig_section = NULL

Definition at line 170 of file common.c.

const char* cob_orig_statement = NULL

Definition at line 168 of file common.c.

cob_field cob_quote = { 1, (ucharptr)"\"", &all_attr }

Definition at line 178 of file common.c.

Definition at line 164 of file common.c.

cob_field cob_space = { 1, (ucharptr)" ", &all_attr }

Definition at line 175 of file common.c.

cob_field cob_zero = { 1, (ucharptr)"0", &all_attr }

Definition at line 174 of file common.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines