OpenCOBOL 1.1pre-rel
|
#include <stdio.h>
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "cobc.h"
#include "ppparse.h"
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
struct | copy_info |
Defines | |
#define | yy_create_buffer pp_create_buffer |
#define | yy_delete_buffer pp_delete_buffer |
#define | yy_scan_buffer pp_scan_buffer |
#define | yy_scan_string pp_scan_string |
#define | yy_scan_bytes pp_scan_bytes |
#define | yy_flex_debug pp_flex_debug |
#define | yy_init_buffer pp_init_buffer |
#define | yy_flush_buffer pp_flush_buffer |
#define | yy_load_buffer_state pp_load_buffer_state |
#define | yy_switch_to_buffer pp_switch_to_buffer |
#define | yyin ppin |
#define | yyleng ppleng |
#define | yylex pplex |
#define | yyout ppout |
#define | yyrestart pprestart |
#define | yytext pptext |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | yyconst |
#define | YY_PROTO(proto) () |
#define | YY_NULL 0 |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | BEGIN yy_start = 1 + 2 * |
#define | YY_START ((yy_start - 1) / 2) |
#define | YYSTATE YY_START |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_NEW_FILE yyrestart( yyin ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | yyless(n) |
#define | unput(c) yyunput( c, yytext_ptr ) |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_CURRENT_BUFFER yy_current_buffer |
#define | YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
#define | yy_new_buffer yy_create_buffer |
#define | yy_set_interactive(is_interactive) |
#define | yy_set_bol(at_bol) |
#define | YY_AT_BOL() (yy_current_buffer->yy_at_bol) |
#define | yywrap() 1 |
#define | YY_SKIP_YYWRAP |
#define | yytext_ptr yytext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 54 |
#define | YY_END_OF_BUFFER 55 |
#define | REJECT reject_used_but_not_detected |
#define | yymore() yymore_used_but_not_detected |
#define | YY_MORE_ADJ 0 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | INITIAL 0 |
#define | YY_NEVER_INTERACTIVE 1 |
#define | YY_INPUT(buf, result, max_size) result = ppinput (buf, max_size); |
#define | PROCESS_STATE 1 |
#define | COPY_STATE 2 |
#define | PSEUDO_STATE 3 |
#define | YY_NO_PUSH_STATE 1 |
#define | YY_NO_POP_STATE 1 |
#define | YY_NO_TOP_STATE 1 |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO (void) fwrite( yytext, yyleng, 1, yyout ) |
#define | yyterminate() return YY_NULL |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
#define | YY_DECL int yylex YY_PROTO(( void )) |
#define | YY_USER_ACTION |
#define | YY_BREAK break; |
#define | YY_RULE_SETUP |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
Typedefs | |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void yyrestart | YY_PROTO ((FILE *input_file)) |
void yy_switch_to_buffer | YY_PROTO ((YY_BUFFER_STATE new_buffer)) |
void yy_load_buffer_state | YY_PROTO ((void)) |
YY_BUFFER_STATE yy_create_buffer | YY_PROTO ((FILE *file, int size)) |
void yy_delete_buffer | YY_PROTO ((YY_BUFFER_STATE b)) |
void yy_init_buffer | YY_PROTO ((YY_BUFFER_STATE b, FILE *file)) |
YY_BUFFER_STATE yy_scan_buffer | YY_PROTO ((char *base, yy_size_t size)) |
YY_BUFFER_STATE yy_scan_string | YY_PROTO ((yyconst char *yy_str)) |
YY_BUFFER_STATE yy_scan_bytes | YY_PROTO ((yyconst char *bytes, int len)) |
static void *yy_flex_alloc | YY_PROTO ((yy_size_t)) |
static void *yy_flex_realloc | YY_PROTO ((void *, yy_size_t)) |
static void yy_flex_free | YY_PROTO ((void *)) |
static yy_state_type yy_try_NUL_trans | YY_PROTO ((yy_state_type current_state)) |
static void yy_fatal_error | YY_PROTO ((yyconst char msg[])) |
static int | ppinput (char *buf, int max_size) |
static void | ppecho (const char *text) |
static void | switch_to_buffer (const int lineno, const char *filename, YY_BUFFER_STATE buffer) |
static void yyunput | YY_PROTO ((int c, char *buf_ptr)) |
Variables | |
int | yyleng |
FILE * | yyin = (FILE *) 0 |
FILE * | yyout = (FILE *) 0 |
static YY_BUFFER_STATE | yy_current_buffer = 0 |
static char | yy_hold_char |
static int | yy_n_chars |
static char * | yy_c_buf_p = (char *) 0 |
static int | yy_init = 1 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
char * | yytext |
static yyconst short int | yy_accept [240] |
static yyconst int | yy_ec [256] |
static yyconst int | yy_meta [44] |
static yyconst short int | yy_base [259] |
static yyconst short int | yy_def [259] |
static yyconst short int | yy_nxt [800] |
static yyconst short int | yy_chk [800] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
static char * | plexbuff1 = NULL |
static char * | plexbuff2 = NULL |
static size_t | newline_count = 0 |
static size_t | within_comment = 0 |
static size_t | inside_bracket = 0 |
static size_t | consecutive_quotation = 0 |
static int | quotation_mark = 0 |
static int | last_line_1 = -1 |
static int | last_line_2 = -1 |
static struct cb_replace_list * | current_replace_list = NULL |
static struct cb_text_list * | text_queue = NULL |
static struct copy_info * | copy_stack |
register char * | yy_bp |
int | size |
FILE * | file |
int | len |
#define YY_AT_BOL | ( | ) | (yy_current_buffer->yy_at_bol) |
#define YY_CURRENT_BUFFER yy_current_buffer |
#define YY_DO_BEFORE_ACTION |
yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp;
#define YY_EXIT_FAILURE 2 |
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) | result = ppinput (buf, max_size); |
#define YY_RULE_SETUP |
if ( yyleng > 0 ) \ yy_current_buffer->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION
#define yy_set_bol | ( | at_bol | ) |
{ \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ }
#define yy_set_interactive | ( | is_interactive | ) |
{ \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ }
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
#define yyless | ( | n | ) |
do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 )
#define yyless | ( | n | ) |
do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 )
typedef struct yy_buffer_state* YY_BUFFER_STATE |
typedef int yy_state_type |
static void ppecho | ( | const char * | text | ) | [static] |
static int ppinput | ( | char * | buf, |
int | max_size | ||
) | [static] |
static void switch_to_buffer | ( | const int | lineno, |
const char * | filename, | ||
YY_BUFFER_STATE | buffer | ||
) | [static] |
YY_BUFFER_STATE yy_scan_string YY_PROTO | ( | (yyconst char *yy_str) | ) |
YY_BUFFER_STATE yy_scan_buffer YY_PROTO | ( | (char *base, yy_size_t size) | ) |
static void yy_fatal_error YY_PROTO | ( | (yyconst char msg[]) | ) | [static] |
static yy_state_type yy_try_NUL_trans YY_PROTO | ( | (yy_state_type current_state) | ) | [static] |
static void yy_flex_free YY_PROTO | ( | (void *) | ) | [static] |
static void* yy_flex_realloc YY_PROTO | ( | (void *, yy_size_t) | ) | [static] |
static void* yy_flex_alloc YY_PROTO | ( | (yy_size_t) | ) | [static] |
YY_BUFFER_STATE yy_scan_bytes YY_PROTO | ( | (yyconst char *bytes, int len) | ) |
void yy_switch_to_buffer YY_PROTO | ( | (YY_BUFFER_STATE new_buffer) | ) |
static int input YY_PROTO | ( | (void) | ) |
void yy_init_buffer YY_PROTO | ( | (YY_BUFFER_STATE b, FILE *file) | ) |
void yy_flush_buffer YY_PROTO | ( | (YY_BUFFER_STATE b) | ) |
static void yyunput YY_PROTO | ( | (int c, char *buf_ptr) | ) | [static] |
void yyrestart YY_PROTO | ( | (FILE *input_file) | ) |
YY_BUFFER_STATE yy_create_buffer YY_PROTO | ( | (FILE *file, int size) | ) |
size_t consecutive_quotation = 0 [static] |
struct copy_info * copy_stack [static] |
struct cb_replace_list* current_replace_list = NULL [static] |
size_t inside_bracket = 0 [static] |
int last_line_1 = -1 [static] |
int last_line_2 = -1 [static] |
size_t newline_count = 0 [static] |
int quotation_mark = 0 [static] |
struct cb_text_list* text_queue = NULL [static] |
size_t within_comment = 0 [static] |
yyconst short int yy_accept[240] [static] |
{ 0, 0, 0, 6, 6, 0, 0, 0, 0, 55, 53, 45, 46, 53, 53, 48, 49, 53, 53, 53, 50, 53, 50, 53, 50, 50, 50, 50, 50, 50, 50, 50, 50, 2, 3, 6, 5, 6, 2, 3, 26, 10, 11, 26, 26, 14, 15, 26, 26, 26, 23, 12, 23, 26, 26, 23, 23, 23, 23, 23, 23, 23, 2, 3, 33, 27, 28, 33, 33, 33, 33, 33, 30, 33, 30, 33, 33, 30, 2, 3, 46, 0, 52, 0, 1, 0, 51, 45, 47, 50, 50, 46, 50, 50, 50, 50, 50, 50, 50, 50, 50, 2, 1, 3, 6, 1, 2, 1, 3, 11, 0, 25, 0, 0, 24, 10, 23, 23, 13, 16, 17, 18, 23, 23, 23, 28, 0, 32, 0, 0, 31, 27, 30, 30, 29, 1, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 1, 1, 1, 19, 23, 23, 23, 50, 7, 50, 50, 50, 50, 50, 50, 50, 50, 50, 23, 23, 23, 50, 50, 41, 50, 50, 50, 50, 50, 50, 42, 43, 44, 23, 23, 23, 34, 50, 50, 50, 41, 50, 50, 50, 50, 50, 50, 42, 43, 44, 23, 23, 23, 50, 50, 50, 8, 50, 4, 39, 9, 50, 23, 23, 23, 50, 50, 50, 50, 40, 21, 23, 20, 50, 50, 50, 50, 22, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 35, 38, 37, 36, 0 }
char* yy_c_buf_p = (char *) 0 [static] |
YY_BUFFER_STATE yy_current_buffer = 0 [static] |
int yy_did_buffer_switch_on_eof [static] |
char yy_hold_char [static] |
char* yy_last_accepting_cpos [static] |
yy_state_type yy_last_accepting_state [static] |
yyconst int yy_meta[44] [static] |
int yy_n_chars [static] |