FrontISTR  5.2.0
Large-scale structural analysis program with finit element method
hecmw_gflex.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "hecmw_gflex.h"
#include "hecmw_util.h"
#include <unistd.h>
Include dependency graph for hecmw_gflex.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
 
struct  yy_trans_info
 
union  YYSTYPE
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   HECMW_gf_create_buffer
 
#define yy_delete_buffer   HECMW_gf_delete_buffer
 
#define yy_flex_debug   HECMW_gf_flex_debug
 
#define yy_init_buffer   HECMW_gf_init_buffer
 
#define yy_flush_buffer   HECMW_gf_flush_buffer
 
#define yy_load_buffer_state   HECMW_gf_load_buffer_state
 
#define yy_switch_to_buffer   HECMW_gf_switch_to_buffer
 
#define yyin   HECMW_gfin
 
#define yyleng   HECMW_gfleng
 
#define yylex   HECMW_gflex
 
#define yylineno   HECMW_gflineno
 
#define yyout   HECMW_gfout
 
#define yyrestart   HECMW_gfrestart
 
#define yytext   HECMW_gftext
 
#define yywrap   HECMW_gfwrap
 
#define yyalloc   HECMW_gfalloc
 
#define yyrealloc   HECMW_gfrealloc
 
#define yyfree   HECMW_gffree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767 - 1)
 
#define INT32_MIN   (-2147483647 - 1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#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   HECMW_gfrestart(HECMW_gfin)
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput(c, (yytext_ptr))
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER    ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL)
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   HECMW_gf_flush_buffer(YY_CURRENT_BUFFER)
 
#define yy_new_buffer   HECMW_gf_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   HECMW_gftext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   9
 
#define YY_END_OF_BUFFER   10
 
#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_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   fwrite(HECMW_gftext, HECMW_gfleng, 1, HECMW_gfout)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error(msg)
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int HECMW_gflex(void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void HECMW_gfrestart (FILE *input_file)
 
void HECMW_gf_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE HECMW_gf_create_buffer (FILE *file, int size)
 
void HECMW_gf_delete_buffer (YY_BUFFER_STATE b)
 
void HECMW_gf_flush_buffer (YY_BUFFER_STATE b)
 
void HECMW_gfpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void HECMW_gfpop_buffer_state (void)
 
YY_BUFFER_STATE HECMW_gf_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE HECMW_gf_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE HECMW_gf_scan_bytes (yyconst char *bytes, yy_size_t len)
 
void * HECMW_gfalloc (yy_size_t)
 
void * HECMW_gfrealloc (void *, yy_size_t)
 
void HECMW_gffree (void *)
 
int HECMW_gflex_destroy (void)
 
int HECMW_gfget_debug (void)
 
void HECMW_gfset_debug (int debug_flag)
 
YY_EXTRA_TYPE HECMW_gfget_extra (void)
 
void HECMW_gfset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * HECMW_gfget_in (void)
 
void HECMW_gfset_in (FILE *in_str)
 
FILE * HECMW_gfget_out (void)
 
void HECMW_gfset_out (FILE *out_str)
 
yy_size_t HECMW_gfget_leng (void)
 
char * HECMW_gfget_text (void)
 
int HECMW_gfget_lineno (void)
 
void HECMW_gfset_lineno (int line_number)
 
int HECMW_gfwrap (void)
 
int HECMW_gflex (void)
 
 if (!(yy_init))
 
 while (1)
 
int isatty (int)
 
int HECMW_gflex_get_lineno (void)
 
double HECMW_gflex_get_number (void)
 
char * HECMW_gflex_get_text (void)
 
int HECMW_gflex_next_token (void)
 
int HECMW_gflex_next_token_skip (int skip_token)
 
long HECMW_gflex_readsize (void)
 
int HECMW_gflex_set_input (FILE *fp)
 
int HECMW_gflex_skip_line (void)
 

Variables

yy_size_t HECMW_gfleng
 
FILE * HECMW_gfin = (FILE *)0
 
FILE * HECMW_gfout = (FILE *)0
 
int HECMW_gflineno = 1
 
char * HECMW_gftext
 
int HECMW_gf_flex_debug = 0
 
 YY_DECL
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file hecmw_gflex.c.

◆ ECHO

#define ECHO   fwrite(HECMW_gftext, HECMW_gfleng, 1, HECMW_gfout)

Definition at line 548 of file hecmw_gflex.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 185 of file hecmw_gflex.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 186 of file hecmw_gflex.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 187 of file hecmw_gflex.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 32 of file hecmw_gflex.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 27 of file hecmw_gflex.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 48 of file hecmw_gflex.c.

◆ INITIAL

#define INITIAL   0

Definition at line 463 of file hecmw_gflex.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 92 of file hecmw_gflex.c.

◆ INT16_MIN

#define INT16_MIN   (-32767 - 1)

Definition at line 83 of file hecmw_gflex.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 95 of file hecmw_gflex.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647 - 1)

Definition at line 86 of file hecmw_gflex.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 89 of file hecmw_gflex.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 80 of file hecmw_gflex.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 441 of file hecmw_gflex.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 101 of file hecmw_gflex.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file hecmw_gflex.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 98 of file hecmw_gflex.c.

◆ unput

#define unput (   c)    yyunput(c, (yytext_ptr))

Definition at line 203 of file hecmw_gflex.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 346 of file hecmw_gflex.c.

◆ YY_BREAK

#define YY_BREAK   break;

Definition at line 622 of file hecmw_gflex.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 163 of file hecmw_gflex.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 264 of file hecmw_gflex.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 252 of file hecmw_gflex.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 253 of file hecmw_gflex.c.

◆ yy_create_buffer

#define yy_create_buffer   HECMW_gf_create_buffer

Definition at line 8 of file hecmw_gflex.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER    ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL)

Definition at line 279 of file hecmw_gflex.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 285 of file hecmw_gflex.c.

◆ YY_DECL

#define YY_DECL   int HECMW_gflex(void)

Definition at line 609 of file hecmw_gflex.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 605 of file hecmw_gflex.c.

◆ yy_delete_buffer

#define yy_delete_buffer   HECMW_gf_delete_buffer

Definition at line 9 of file hecmw_gflex.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
HECMW_gfleng = (yy_size_t)(yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
register char * yy_bp
Definition: hecmw_gflex.c:635
#define yytext_ptr
Definition: hecmw_gflex.c:361
register char * yy_cp
Definition: hecmw_gflex.c:635
size_t yy_size_t
Definition: hecmw_gflex.c:178

Definition at line 371 of file hecmw_gflex.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   10

Definition at line 379 of file hecmw_gflex.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file hecmw_gflex.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 1476 of file hecmw_gflex.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 474 of file hecmw_gflex.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error(msg)

Definition at line 596 of file hecmw_gflex.c.

◆ yy_flex_debug

#define yy_flex_debug   HECMW_gf_flex_debug

Definition at line 10 of file hecmw_gflex.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 28 of file hecmw_gflex.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 29 of file hecmw_gflex.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 30 of file hecmw_gflex.c.

◆ yy_flush_buffer

#define yy_flush_buffer   HECMW_gf_flush_buffer

Definition at line 12 of file hecmw_gflex.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   HECMW_gf_flush_buffer(YY_CURRENT_BUFFER)

Definition at line 314 of file hecmw_gflex.c.

◆ yy_init_buffer

#define yy_init_buffer   HECMW_gf_init_buffer

Definition at line 11 of file hecmw_gflex.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) { \
int c = '*'; \
yy_size_t n; \
for (n = 0; n < max_size && (c = getc(HECMW_gfin)) != EOF && c != '\n'; \
++n) \
buf[n] = (char)c; \
if (c == '\n') buf[n++] = (char)c; \
if (c == EOF && ferror(HECMW_gfin)) \
YY_FATAL_ERROR("input in flex scanner failed"); \
result = n; \
} else { \
errno = 0; \
while ((result = fread(buf, 1, max_size, HECMW_gfin)) == 0 && \
ferror(HECMW_gfin)) { \
if (errno != EINTR) { \
YY_FATAL_ERROR("input in flex scanner failed"); \
break; \
} \
errno = 0; \
clearerr(HECMW_gfin); \
} \
}
#define YY_CURRENT_BUFFER_LVALUE
Definition: hecmw_gflex.c:285
FILE * HECMW_gfin
Definition: hecmw_gflex.c:352
#define YY_FATAL_ERROR(msg)
Definition: hecmw_gflex.c:596
if(!(yy_init))
Definition: hecmw_gflex.c:642

Definition at line 555 of file hecmw_gflex.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 4 of file hecmw_gflex.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 189 of file hecmw_gflex.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state (   void)    HECMW_gf_load_buffer_state

Definition at line 13 of file hecmw_gflex.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 443 of file hecmw_gflex.c.

◆ yy_new_buffer

#define yy_new_buffer   HECMW_gf_create_buffer

Definition at line 324 of file hecmw_gflex.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   HECMW_gfrestart(HECMW_gfin)

Definition at line 157 of file hecmw_gflex.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 131 of file hecmw_gflex.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   9

Definition at line 378 of file hecmw_gflex.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 540 of file hecmw_gflex.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 444 of file hecmw_gflex.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if (HECMW_gfleng > 0) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(HECMW_gftext[HECMW_gfleng - 1] == '\n'); \
YY_USER_ACTION
char * HECMW_gftext
Definition: hecmw_gflex.c:445
yy_size_t HECMW_gfleng
Definition: hecmw_gflex.c:290

Definition at line 625 of file hecmw_gflex.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((unsigned int)(unsigned char)c)

Definition at line 138 of file hecmw_gflex.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
HECMW_gfensure_buffer_stack(); \
YY_CURRENT_BUFFER_LVALUE = \
HECMW_gf_create_buffer(HECMW_gfin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition: hecmw_gflex.c:279
#define YY_BUF_SIZE
Definition: hecmw_gflex.c:163

Definition at line 336 of file hecmw_gflex.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
HECMW_gfensure_buffer_stack(); \
YY_CURRENT_BUFFER_LVALUE = \
HECMW_gf_create_buffer(HECMW_gfin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

Definition at line 326 of file hecmw_gflex.c.

◆ YY_START

#define YY_START   (((yy_start)-1) / 2)

Definition at line 150 of file hecmw_gflex.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 591 of file hecmw_gflex.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 169 of file hecmw_gflex.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 154 of file hecmw_gflex.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 206 of file hecmw_gflex.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   HECMW_gf_switch_to_buffer

Definition at line 14 of file hecmw_gflex.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 172 of file hecmw_gflex.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 177 of file hecmw_gflex.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 617 of file hecmw_gflex.c.

◆ yyalloc

#define yyalloc   HECMW_gfalloc

Definition at line 23 of file hecmw_gflex.c.

◆ yyconst

#define yyconst

Definition at line 127 of file hecmw_gflex.c.

◆ yyfree

#define yyfree   HECMW_gffree

Definition at line 25 of file hecmw_gflex.c.

◆ yyin

#define yyin   HECMW_gfin

Definition at line 15 of file hecmw_gflex.c.

◆ yyleng

#define yyleng   HECMW_gfleng

Definition at line 16 of file hecmw_gflex.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up HECMW_gftext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg); \
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET(yy_c_buf_p) = yy_cp = \
yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up HECMW_gftext again */ \
} while (0)
#define YY_MORE_ADJ
Definition: hecmw_gflex.c:443

Definition at line 1487 of file hecmw_gflex.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up HECMW_gftext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg); \
HECMW_gftext[HECMW_gfleng] = (yy_hold_char); \
(yy_c_buf_p) = HECMW_gftext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
HECMW_gfleng = yyless_macro_arg; \
} while (0)

Definition at line 1487 of file hecmw_gflex.c.

◆ yylex

#define yylex (   void)    HECMW_gflex

Definition at line 17 of file hecmw_gflex.c.

◆ yylineno

#define yylineno   HECMW_gflineno

Definition at line 18 of file hecmw_gflex.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 442 of file hecmw_gflex.c.

◆ yyout

#define yyout   HECMW_gfout

Definition at line 19 of file hecmw_gflex.c.

◆ yyrealloc

#define yyrealloc   HECMW_gfrealloc

Definition at line 24 of file hecmw_gflex.c.

◆ yyrestart

#define yyrestart   HECMW_gfrestart

Definition at line 20 of file hecmw_gflex.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 151 of file hecmw_gflex.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 1633 of file hecmw_gflex.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 586 of file hecmw_gflex.c.

◆ yytext

#define yytext   HECMW_gftext

Definition at line 21 of file hecmw_gflex.c.

◆ yytext_ptr

#define yytext_ptr   HECMW_gftext

Definition at line 361 of file hecmw_gflex.c.

◆ yywrap

#define yywrap (   void)    HECMW_gfwrap

Definition at line 22 of file hecmw_gflex.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 71 of file hecmw_gflex.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 72 of file hecmw_gflex.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 70 of file hecmw_gflex.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 74 of file hecmw_gflex.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 75 of file hecmw_gflex.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 73 of file hecmw_gflex.c.

◆ YY_BUFFER_STATE

Definition at line 173 of file hecmw_gflex.c.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 350 of file hecmw_gflex.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 178 of file hecmw_gflex.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 354 of file hecmw_gflex.c.

Function Documentation

◆ HECMW_gf_create_buffer()

YY_BUFFER_STATE HECMW_gf_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1215 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gf_delete_buffer()

void HECMW_gf_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with HECMW_gf_create_buffer()

Definition at line 1241 of file hecmw_gflex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_gf_flush_buffer()

void HECMW_gf_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1288 of file hecmw_gflex.c.

◆ HECMW_gf_scan_buffer()

YY_BUFFER_STATE HECMW_gf_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1402 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gf_scan_bytes()

YY_BUFFER_STATE HECMW_gf_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to HECMW_gflex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 1449 of file hecmw_gflex.c.

Here is the caller graph for this function:

◆ HECMW_gf_scan_string()

YY_BUFFER_STATE HECMW_gf_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string. The next call to HECMW_gflex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use HECMW_gf_scan_bytes() instead.

Definition at line 1437 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gf_switch_to_buffer()

void HECMW_gf_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1174 of file hecmw_gflex.c.

Here is the caller graph for this function:

◆ HECMW_gfalloc()

void * HECMW_gfalloc ( yy_size_t  size)

Definition at line 1616 of file hecmw_gflex.c.

Here is the caller graph for this function:

◆ HECMW_gffree()

void HECMW_gffree ( void *  ptr)

Definition at line 1629 of file hecmw_gflex.c.

Here is the caller graph for this function:

◆ HECMW_gfget_debug()

int HECMW_gfget_debug ( void  )

Definition at line 1543 of file hecmw_gflex.c.

◆ HECMW_gfget_extra()

YY_EXTRA_TYPE HECMW_gfget_extra ( void  )

◆ HECMW_gfget_in()

FILE * HECMW_gfget_in ( void  )

Get the input stream.

Definition at line 1509 of file hecmw_gflex.c.

◆ HECMW_gfget_leng()

yy_size_t HECMW_gfget_leng ( void  )

Get the length of the current token.

Definition at line 1519 of file hecmw_gflex.c.

◆ HECMW_gfget_lineno()

int HECMW_gfget_lineno ( void  )

Get the current line number.

Definition at line 1504 of file hecmw_gflex.c.

◆ HECMW_gfget_out()

FILE * HECMW_gfget_out ( void  )

Get the output stream.

Definition at line 1514 of file hecmw_gflex.c.

◆ HECMW_gfget_text()

char * HECMW_gfget_text ( void  )

Get the current token.

Definition at line 1525 of file hecmw_gflex.c.

◆ HECMW_gflex()

int HECMW_gflex ( void  )
Here is the caller graph for this function:

◆ HECMW_gflex_destroy()

int HECMW_gflex_destroy ( void  )

Definition at line 1575 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gflex_get_lineno()

int HECMW_gflex_get_lineno ( void  )

Definition at line 1637 of file hecmw_gflex.c.

◆ HECMW_gflex_get_number()

double HECMW_gflex_get_number ( void  )

Definition at line 1639 of file hecmw_gflex.c.

◆ HECMW_gflex_get_text()

char* HECMW_gflex_get_text ( void  )

Definition at line 1641 of file hecmw_gflex.c.

◆ HECMW_gflex_next_token()

int HECMW_gflex_next_token ( void  )

Definition at line 1643 of file hecmw_gflex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_gflex_next_token_skip()

int HECMW_gflex_next_token_skip ( int  skip_token)

Definition at line 1645 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gflex_readsize()

long HECMW_gflex_readsize ( void  )

Definition at line 1653 of file hecmw_gflex.c.

◆ HECMW_gflex_set_input()

int HECMW_gflex_set_input ( FILE *  fp)

Definition at line 1655 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gflex_skip_line()

int HECMW_gflex_skip_line ( void  )

Definition at line 1669 of file hecmw_gflex.c.

Here is the call graph for this function:

◆ HECMW_gfpop_buffer_state()

void HECMW_gfpop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1340 of file hecmw_gflex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_gfpush_buffer_state()

void HECMW_gfpush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1314 of file hecmw_gflex.c.

◆ HECMW_gfrealloc()

void * HECMW_gfrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 1618 of file hecmw_gflex.c.

◆ HECMW_gfrestart()

void HECMW_gfrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1160 of file hecmw_gflex.c.

Here is the caller graph for this function:

◆ HECMW_gfset_debug()

void HECMW_gfset_debug ( int  debug_flag)

Definition at line 1545 of file hecmw_gflex.c.

◆ HECMW_gfset_extra()

void HECMW_gfset_extra ( YY_EXTRA_TYPE  user_defined)

◆ HECMW_gfset_in()

void HECMW_gfset_in ( FILE *  in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
HECMW_gf_switch_to_buffer

Definition at line 1539 of file hecmw_gflex.c.

◆ HECMW_gfset_lineno()

void HECMW_gfset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1531 of file hecmw_gflex.c.

◆ HECMW_gfset_out()

void HECMW_gfset_out ( FILE *  out_str)

Definition at line 1541 of file hecmw_gflex.c.

◆ HECMW_gfwrap()

int HECMW_gfwrap ( void  )

Definition at line 1677 of file hecmw_gflex.c.

◆ if()

if ( yy_init)

Definition at line 642 of file hecmw_gflex.c.

◆ isatty()

int isatty ( int  )

◆ while()

while ( )

Definition at line 664 of file hecmw_gflex.c.

Variable Documentation

◆ HECMW_gf_flex_debug

int HECMW_gf_flex_debug = 0

Definition at line 436 of file hecmw_gflex.c.

◆ HECMW_gfin

FILE * HECMW_gfin = (FILE *)0

Definition at line 352 of file hecmw_gflex.c.

◆ HECMW_gfleng

yy_size_t HECMW_gfleng

Definition at line 290 of file hecmw_gflex.c.

◆ HECMW_gflineno

int HECMW_gflineno = 1

Definition at line 358 of file hecmw_gflex.c.

◆ HECMW_gfout

FILE * HECMW_gfout = (FILE *)0

Definition at line 183 of file hecmw_gflex.c.

◆ HECMW_gftext

char * HECMW_gftext

Definition at line 445 of file hecmw_gflex.c.

◆ yy_act

register int yy_act

Definition at line 636 of file hecmw_gflex.c.

◆ yy_bp

register char * yy_bp

Definition at line 635 of file hecmw_gflex.c.

◆ yy_cp

register char* yy_cp

Definition at line 635 of file hecmw_gflex.c.

◆ YY_DECL

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: hecmw_ablex.c:353

The main scanner function which does all the work.

Definition at line 633 of file hecmw_gflex.c.