![]() |
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 "cobc.h"#include "tree.h"#include "parser.h"
Data Structures | |
| struct | system_struct |
Macros | |
| #define | SYSTEM_TAB_SIZE sizeof(system_table) / sizeof(struct system_struct) |
| #define | EXT_SYSTEM_TAB_SIZE sizeof(ext_system_table) / sizeof(struct system_struct) |
| #define | NUM_RESERVED_WORDS sizeof (reserved_words) / sizeof (struct cobc_reserved) |
| #define | NUM_INTRINSICS sizeof(function_list) / sizeof(struct cb_intrinsic_table) |
Functions | |
| static int | cob_strcasecmp (const void *s1, const void *s2) |
| static int | reserve_comp (const void *p1, const void *p2) |
| static int | intrinsic_comp (const void *p1, const void *p2) |
| static const char * | res_get_feature (const enum cb_system_name_category category) |
| cb_tree | lookup_system_name (const char *name) |
| struct cobc_reserved * | lookup_reserved_word (const char *name) |
| struct cb_intrinsic_table * | lookup_intrinsic (const char *name, const int checkres, const int checkimpl) |
| void | cb_list_reserved (void) |
| void | cb_list_intrinsics (void) |
| void | cb_list_mnemonics (void) |
| void | cobc_init_reserved (void) |
Variables | |
| static struct system_struct | system_table [] |
| static struct system_struct | ext_system_table [] |
| static struct cobc_reserved | reserved_words [] |
| static struct cb_intrinsic_table | function_list [] |
| static unsigned char | cob_lower_tab [256] |
| static const unsigned char | pcob_lower_tab [] = "abcdefghijklmnopqrstuvwxyz" |
| static const unsigned char | pcob_lower_val [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| #define EXT_SYSTEM_TAB_SIZE sizeof(ext_system_table) / sizeof(struct system_struct) |
Referenced by cb_list_mnemonics(), and lookup_system_name().
| #define NUM_INTRINSICS sizeof(function_list) / sizeof(struct cb_intrinsic_table) |
Referenced by cb_list_intrinsics(), and lookup_intrinsic().
| #define NUM_RESERVED_WORDS sizeof (reserved_words) / sizeof (struct cobc_reserved) |
Referenced by cb_list_reserved(), and lookup_reserved_word().
| #define SYSTEM_TAB_SIZE sizeof(system_table) / sizeof(struct system_struct) |
Referenced by cb_list_mnemonics(), and lookup_system_name().
| void cb_list_intrinsics | ( | void | ) |
| void cb_list_mnemonics | ( | void | ) |
References _, EXT_SYSTEM_TAB_SIZE, res_get_feature(), and SYSTEM_TAB_SIZE.
Referenced by process_command_line().
| void cb_list_reserved | ( | void | ) |
|
static |
| void cobc_init_reserved | ( | void | ) |
|
static |
References cob_strcasecmp(), and cb_intrinsic_table::name.
Referenced by lookup_intrinsic().
|
read |
References cobc_nores_base, cb_intrinsic_table::implemented, intrinsic_comp(), noreserve::next, noreserve::noresword, NULL, NUM_INTRINSICS, and unlikely.
Referenced by cb_build_any_intrinsic(), cb_build_intrinsic(), cobc_deciph_funcs(), and while().
|
read |
References _, CB_CS_PROGRAM_ID, cb_error(), cobc_cs_check, cobc_force_literal, cobc_in_procedure, cobc_in_repository, cobc_nores_base, cobc_reserved::context_sens, cobc_reserved::context_set, cobc_reserved::context_test, FUNCTION_ID, INTRINSIC, noreserve::next, noreserve::noresword, NULL, NUM_RESERVED_WORDS, p, PROGRAM_ID, REPOSITORY, reserve_comp(), cobc_reserved::token, and unlikely.
Referenced by while().
| cb_tree lookup_system_name | ( | const char * | name | ) |
References cb_intrinsic_table::category, cb_build_system_name(), cob_strcasecmp(), EXT_SYSTEM_TAB_SIZE, NULL, SYSTEM_TAB_SIZE, and cb_intrinsic_table::token.
Referenced by cb_build_display_name(), cb_define_system_name(), and cb_emit_accept_name().
|
static |
References _, CB_DEVICE_NAME, CB_FEATURE_NAME, and CB_SWITCH_NAME.
Referenced by cb_list_mnemonics().
|
static |
References cob_strcasecmp(), and cb_intrinsic_table::name.
Referenced by lookup_reserved_word().
|
static |
Referenced by cob_strcasecmp(), and cobc_init_reserved().
|
static |
|
static |
|
static |
Referenced by cobc_init_reserved().
|
static |
Referenced by cobc_init_reserved().
|
static |
|
static |