cfitsio  4.0.0
About: CFITSIO is a library of C and Fortran subroutines for reading and writing data files in the FITS (Flexible Image Transport System) data format.
  Fossies Dox: cfitsio-4.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

eval_l.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include "eval_defs.h"
#include <unistd.h>
Include dependency graph for eval_l.c:

Go to the source code of this file.

Data Structures

struct  ff_buffer_state
 
struct  ff_trans_info
 

Macros

#define FF_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define FF_FLEX_MAJOR_VERSION   2
 
#define FF_FLEX_MINOR_VERSION   5
 
#define FF_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 ffconst
 
#define FF_NULL   0
 
#define FF_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (ff_start) = 1 + 2 *
 
#define FF_START   (((ff_start) - 1) / 2)
 
#define FFSTATE   FF_START
 
#define FF_STATE_EOF(state)   (FF_END_OF_BUFFER + state + 1)
 
#define FF_NEW_FILE   ffrestart(ffin )
 
#define FF_END_OF_BUFFER_CHAR   0
 
#define FF_BUF_SIZE   16384
 
#define FF_STATE_BUF_SIZE   ((FF_BUF_SIZE + 2) * sizeof(ff_state_type))
 
#define FF_TYPEDEF_FF_BUFFER_STATE
 
#define FF_TYPEDEF_FF_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define FF_LESS_LINENO(n)
 
#define ffless(n)
  More...
 
#define unput(c)   ffunput( c, (fftext_ptr) )
 
#define FF_STRUCT_FF_BUFFER_STATE
 
#define FF_BUFFER_NEW   0
 
#define FF_BUFFER_NORMAL   1
 
#define FF_BUFFER_EOF_PENDING   2
 
#define FF_CURRENT_BUFFER
  More...
 
#define FF_CURRENT_BUFFER_LVALUE   (ff_buffer_stack)[(ff_buffer_stack_top)]
 
#define FF_FLUSH_BUFFER   ff_flush_buffer(FF_CURRENT_BUFFER )
 
#define ff_new_buffer   ff_create_buffer
 
#define ff_set_interactive(is_interactive)
  More...
 
#define ff_set_bol(at_bol)
  More...
 
#define FF_AT_BOL()   (FF_CURRENT_BUFFER_LVALUE->ff_at_bol)
 
#define fftext_ptr   fftext
 
#define FF_DO_BEFORE_ACTION
  More...
 
#define FF_NUM_RULES   30
 
#define FF_END_OF_BUFFER   31
 
#define REJECT   reject_used_but_not_detected
 
#define ffmore()   ffmore_used_but_not_detected
 
#define FF_MORE_ADJ   0
 
#define FF_RESTORE_FF_MORE_OFFSET
 
#define FF_NO_UNPUT   /* Don't include FFUNPUT function */
 
#define FF_NEVER_INTERACTIVE   1
 
#define MAXCHR   256
 
#define MAXBIT   128
 
#define OCT_0   "000"
 
#define OCT_1   "001"
 
#define OCT_2   "010"
 
#define OCT_3   "011"
 
#define OCT_4   "100"
 
#define OCT_5   "101"
 
#define OCT_6   "110"
 
#define OCT_7   "111"
 
#define OCT_X   "xxx"
 
#define HEX_0   "0000"
 
#define HEX_1   "0001"
 
#define HEX_2   "0010"
 
#define HEX_3   "0011"
 
#define HEX_4   "0100"
 
#define HEX_5   "0101"
 
#define HEX_6   "0110"
 
#define HEX_7   "0111"
 
#define HEX_8   "1000"
 
#define HEX_9   "1001"
 
#define HEX_A   "1010"
 
#define HEX_B   "1011"
 
#define HEX_C   "1100"
 
#define HEX_D   "1101"
 
#define HEX_E   "1110"
 
#define HEX_F   "1111"
 
#define HEX_X   "xxxx"
 
#define FF_INPUT(buf, result, max_size)
  More...
 
#define INITIAL   0
 
#define FF_EXTRA_TYPE   void *
 
#define FF_READ_BUF_SIZE   8192
 
#define ECHO   fwrite( fftext, ffleng, 1, ffout )
 
#define ffterminate()   return FF_NULL
 
#define FF_START_STACK_INCR   25
 
#define FF_FATAL_ERROR(msg)   ff_fatal_error( msg )
 
#define FF_DECL_IS_OURS   1
 
#define FF_DECL   int fflex (void)
 
#define FF_USER_ACTION
 
#define FF_BREAK   break;
 
#define FF_RULE_SETUP    FF_USER_ACTION
 
#define FF_EXIT_FAILURE   2
 
#define ffless(n)
  More...
 
#define FFTABLES_NAME   "fftables"
 

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 ff_buffer_stateFF_BUFFER_STATE
 
typedef size_t ff_size_t
 
typedef unsigned char FF_CHAR
 
typedef int ff_state_type
 

Functions

void ffrestart (FILE *input_file)
  More...
 
void ff_switch_to_buffer (FF_BUFFER_STATE new_buffer)
  More...
 
FF_BUFFER_STATE ff_create_buffer (FILE *file, int size)
  More...
 
void ff_delete_buffer (FF_BUFFER_STATE b)
  More...
 
void ff_flush_buffer (FF_BUFFER_STATE b)
  More...
 
void ffpush_buffer_state (FF_BUFFER_STATE new_buffer)
  More...
 
void ffpop_buffer_state (void)
  More...
 
static void ffensure_buffer_stack (void)
  More...
 
static void ff_load_buffer_state (void)
  More...
 
static void ff_init_buffer (FF_BUFFER_STATE b, FILE *file)
  More...
 
FF_BUFFER_STATE ff_scan_buffer (char *base, ff_size_t size)
  More...
 
FF_BUFFER_STATE ff_scan_string (char *ff_str)
  More...
 
FF_BUFFER_STATE ff_scan_bytes (char *bytes, ff_size_t len)
  More...
 
void * ffalloc (ff_size_t)
  More...
 
void * ffrealloc (void *, ff_size_t)
  More...
 
void yyfffree (void *)
  More...
 
static ff_state_type ff_get_previous_state (void)
  More...
 
static ff_state_type ff_try_NUL_trans (ff_state_type current_state)
  More...
 
static int ff_get_next_buffer (void)
  More...
 
static void ff_fatal_error (char msg[])
 
int ffGetVariable (char *varName, FFSTYPE *varVal)
  More...
 
static int find_variable (char *varName)
  More...
 
static int expr_read (char *buf, int nbytes)
  More...
 
static int ff_init_globals (void)
  More...
 
int fflex_destroy (void)
  More...
 
int ffget_debug (void)
  More...
 
void ffset_debug (int debug_flag)
  More...
 
void * ffget_extra (void)
 
void ffset_extra (void *user_defined)
 
FILE * ffget_in (void)
  More...
 
void ffset_in (FILE *in_str)
  More...
 
FILE * ffget_out (void)
  More...
 
void ffset_out (FILE *out_str)
  More...
 
ff_size_t ffget_leng (void)
  More...
 
char * ffget_text (void)
  More...
 
int ffget_lineno (void)
  More...
 
void ffset_lineno (int line_number)
  More...
 
int ffwrap (void)
  More...
 
static void ffunput (int c, char *buf_ptr)
 
static int input (void)
  More...
 
int fflex (void)
  More...
 
static void ffunput (int c, register char *ff_bp)
  More...
 
int isatty (int)
  More...
 
static void ff_fatal_error (char *msg)
  More...
 

Variables

ff_size_t ffleng
  More...
 
FILE * ffin = (FILE *) 0
  More...
 
FILE * ffout = (FILE *) 0
  More...
 
static size_t ff_buffer_stack_top = 0
  More...
 
static size_t ff_buffer_stack_max = 0
  More...
 
static FF_BUFFER_STATEff_buffer_stack = 0
  More...
 
static char ff_hold_char
  More...
 
static ff_size_t ff_n_chars
  More...
 
static char * ff_c_buf_p = (char *) 0
  More...
 
static int ff_init = 0
  More...
 
static int ff_start = 0
  More...
 
static int ff_did_buffer_switch_on_eof
  More...
 
int fflineno = 1
  More...
 
char * fftext
  More...
 
static flex_int16_t ff_accept [174]
  More...
 
static flex_int32_t ff_ec [256]
  More...
 
static flex_int32_t ff_meta [59]
  More...
 
static flex_int16_t ff_base [182]
  More...
 
static flex_int16_t ff_def [182]
  More...
 
static flex_int16_t ff_nxt [472]
  More...
 
static flex_int16_t ff_chk [472]
  More...
 
static ff_state_type ff_last_accepting_state
  More...
 
static char * ff_last_accepting_cpos
  More...
 
int ff_flex_debug = 0
  More...
 
ParseData gParse
  More...
 

Macro Definition Documentation

◆ FF_CURRENT_BUFFER

#define FF_CURRENT_BUFFER
Value:
: NULL)
static size_t ff_buffer_stack_top
Definition: eval_l.c:253
static FF_BUFFER_STATE * ff_buffer_stack
Definition: eval_l.c:255

Definition at line 263 of file eval_l.c.

◆ FF_DO_BEFORE_ACTION

#define FF_DO_BEFORE_ACTION
Value:
(fftext_ptr) = ff_bp; \
ffleng = (ff_size_t) (ff_cp - ff_bp); \
(ff_hold_char) = *ff_cp; \
*ff_cp = '\0'; \
(ff_c_buf_p) = ff_cp;
static char * ff_c_buf_p
Definition: eval_l.c:278
#define fftext_ptr
Definition: eval_l.c:346
size_t ff_size_t
Definition: eval_l.c:158
static char ff_hold_char
Definition: eval_l.c:273

Definition at line 356 of file eval_l.c.

◆ FF_INPUT

#define FF_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( (result = expr_read( (char *) buf, max_size )) < 0 ) \
FF_FATAL_ERROR( "read() in flex scanner failed" );
static int expr_read(char *buf, int nbytes)
Definition: eval_l.c:2446

Definition at line 724 of file eval_l.c.

◆ ff_set_bol

#define ff_set_bol (   at_bol)
Value:
{ \
if ( ! FF_CURRENT_BUFFER ){\
ffensure_buffer_stack (); \
FF_CURRENT_BUFFER_LVALUE = \
ff_create_buffer(ffin,FF_BUF_SIZE ); \
} \
FF_CURRENT_BUFFER_LVALUE->ff_at_bol = at_bol; \
}
#define FF_CURRENT_BUFFER
Definition: eval_l.c:263
FILE * ffin
Definition: eval_l.c:337
#define FF_BUF_SIZE
Definition: eval_l.c:144

Definition at line 321 of file eval_l.c.

◆ ff_set_interactive

#define ff_set_interactive (   is_interactive)
Value:
{ \
if ( ! FF_CURRENT_BUFFER ){ \
ffensure_buffer_stack (); \
FF_CURRENT_BUFFER_LVALUE = \
ff_create_buffer(ffin,FF_BUF_SIZE ); \
} \
FF_CURRENT_BUFFER_LVALUE->ff_is_interactive = is_interactive; \
}

Definition at line 311 of file eval_l.c.

◆ ffless [1/2]

#define ffless (   n)
Value:
do \
{ \
/* Undo effects of setting up fftext. */ \
int ffless_macro_arg = (n); \
FF_LESS_LINENO(ffless_macro_arg);\
*ff_cp = (ff_hold_char); \
FF_RESTORE_FF_MORE_OFFSET \
(ff_c_buf_p) = ff_cp = ff_bp + ffless_macro_arg - FF_MORE_ADJ; \
FF_DO_BEFORE_ACTION; /* set up fftext again */ \
} \
while ( 0 )
#define FF_MORE_ADJ
Definition: eval_l.c:608

Definition at line 2230 of file eval_l.c.

◆ ffless [2/2]

#define ffless (   n)
Value:
do \
{ \
/* Undo effects of setting up fftext. */ \
int ffless_macro_arg = (n); \
FF_LESS_LINENO(ffless_macro_arg);\
fftext[ffleng] = (ff_hold_char); \
(ff_c_buf_p) = fftext + ffless_macro_arg; \
*(ff_c_buf_p) = '\0'; \
ffleng = ffless_macro_arg; \
} \
while ( 0 )
ff_size_t ffleng
Definition: eval_l.c:275
char * fftext
Definition: eval_l.c:610

Definition at line 2230 of file eval_l.c.

Function Documentation

◆ expr_read()

static int expr_read ( char *  buf,
int  nbytes 
)
static

Definition at line 2446 of file eval_l.c.

References ParseData::expr, gParse, ParseData::index, and ParseData::is_eobuf.

◆ ff_create_buffer()

FF_BUFFER_STATE ff_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 FF_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1932 of file eval_l.c.

References ff_buffer_state::ff_buf_size, ff_buffer_state::ff_ch_buf, FF_FATAL_ERROR, ff_init_buffer(), ff_buffer_state::ff_is_our_buffer, and ffalloc().

Referenced by fflex(), and ffrestart().

◆ ff_delete_buffer()

void ff_delete_buffer ( FF_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with ff_create_buffer()

Definition at line 1960 of file eval_l.c.

References ff_buffer_state::ff_ch_buf, FF_CURRENT_BUFFER, FF_CURRENT_BUFFER_LVALUE, ff_buffer_state::ff_is_our_buffer, and yyfffree().

Referenced by fflex_destroy(), and ffpop_buffer_state().

◆ ff_fatal_error()

static void ff_fatal_error ( char *  msg)
static

Definition at line 2221 of file eval_l.c.

References FF_EXIT_FAILURE.

◆ ff_flush_buffer()

void ff_flush_buffer ( FF_BUFFER_STATE  b)

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

Parameters
bthe buffer state to be flushed, usually FF_CURRENT_BUFFER.

Definition at line 2011 of file eval_l.c.

References ff_buffer_state::ff_at_bol, ff_buffer_state::ff_buf_pos, FF_BUFFER_NEW, ff_buffer_state::ff_buffer_status, ff_buffer_state::ff_ch_buf, FF_CURRENT_BUFFER, FF_END_OF_BUFFER_CHAR, ff_load_buffer_state(), and ff_buffer_state::ff_n_chars.

Referenced by ff_init_buffer().

◆ ff_get_next_buffer()

◆ ff_get_previous_state()

static ff_state_type ff_get_previous_state ( void  )
static

◆ ff_init_buffer()

◆ ff_init_globals()

static int ff_init_globals ( void  )
static

Definition at line 2324 of file eval_l.c.

References ff_buffer_stack, ff_buffer_stack_max, ff_buffer_stack_top, ff_c_buf_p, ff_init, ff_start, ffin, and ffout.

Referenced by fflex_destroy().

◆ ff_load_buffer_state()

static void ff_load_buffer_state ( void  )
static

◆ ff_scan_buffer()

FF_BUFFER_STATE ff_scan_buffer ( char *  base,
ff_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 2138 of file eval_l.c.

References ff_buffer_state::ff_at_bol, ff_buffer_state::ff_buf_pos, ff_buffer_state::ff_buf_size, FF_BUFFER_NEW, ff_buffer_state::ff_buffer_status, ff_buffer_state::ff_ch_buf, FF_END_OF_BUFFER_CHAR, FF_FATAL_ERROR, ff_buffer_state::ff_fill_buffer, ff_buffer_state::ff_input_file, ff_buffer_state::ff_is_interactive, ff_buffer_state::ff_is_our_buffer, ff_buffer_state::ff_n_chars, ff_switch_to_buffer(), and ffalloc().

Referenced by ff_scan_bytes().

◆ ff_scan_bytes()

FF_BUFFER_STATE ff_scan_bytes ( char *  ffbytes,
ff_size_t  _ffbytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to fflex() 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 2188 of file eval_l.c.

References FF_END_OF_BUFFER_CHAR, FF_FATAL_ERROR, ff_buffer_state::ff_is_our_buffer, ff_scan_buffer(), and ffalloc().

Referenced by ff_scan_string().

◆ ff_scan_string()

FF_BUFFER_STATE ff_scan_string ( char *  ffstr)

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

Parameters
ffstra 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 ff_scan_bytes() instead.

Definition at line 2175 of file eval_l.c.

References ff_scan_bytes().

◆ ff_switch_to_buffer()

void ff_switch_to_buffer ( FF_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1887 of file eval_l.c.

References ff_c_buf_p, FF_CURRENT_BUFFER, FF_CURRENT_BUFFER_LVALUE, ff_did_buffer_switch_on_eof, ff_hold_char, ff_load_buffer_state(), ff_n_chars, and ffensure_buffer_stack().

Referenced by ff_scan_buffer().

◆ ff_try_NUL_trans()

static ff_state_type ff_try_NUL_trans ( ff_state_type  current_state)
static

Definition at line 1731 of file eval_l.c.

References ff_accept, ff_base, ff_c_buf_p, ff_chk, ff_def, ff_last_accepting_cpos, ff_last_accepting_state, ff_meta, and ff_nxt.

Referenced by fflex().

◆ ffalloc()

void * ffalloc ( ff_size_t  size)

Definition at line 2398 of file eval_l.c.

References malloc().

Referenced by ff_create_buffer(), ff_scan_buffer(), ff_scan_bytes(), and ffensure_buffer_stack().

◆ ffensure_buffer_stack()

static void ffensure_buffer_stack ( void  )
static

◆ ffget_debug()

int ffget_debug ( void  )

Definition at line 2314 of file eval_l.c.

References ff_flex_debug.

◆ ffget_in()

FILE * ffget_in ( void  )

Get the input stream.

Definition at line 2258 of file eval_l.c.

References ffin.

◆ ffget_leng()

ff_size_t ffget_leng ( void  )

Get the length of the current token.

Definition at line 2274 of file eval_l.c.

References ffleng.

◆ ffget_lineno()

int ffget_lineno ( void  )

Get the current line number.

Definition at line 2249 of file eval_l.c.

References fflineno.

◆ ffget_out()

FILE * ffget_out ( void  )

Get the output stream.

Definition at line 2266 of file eval_l.c.

References ffout.

◆ ffget_text()

char * ffget_text ( void  )

Get the current token.

Definition at line 2283 of file eval_l.c.

References fftext.

◆ ffGetVariable()

int ffGetVariable ( char *  varName,
FFSTYPE varVal 
)

◆ fflex()

◆ fflex_destroy()

int fflex_destroy ( void  )

◆ ffpop_buffer_state()

void ffpop_buffer_state ( void  )

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

Definition at line 2070 of file eval_l.c.

References ff_buffer_stack_top, FF_CURRENT_BUFFER, FF_CURRENT_BUFFER_LVALUE, ff_delete_buffer(), ff_did_buffer_switch_on_eof, and ff_load_buffer_state().

Referenced by fflex_destroy().

◆ ffpush_buffer_state()

void ffpush_buffer_state ( FF_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 2040 of file eval_l.c.

References ff_buffer_stack_top, ff_c_buf_p, FF_CURRENT_BUFFER, FF_CURRENT_BUFFER_LVALUE, ff_did_buffer_switch_on_eof, ff_hold_char, ff_load_buffer_state(), ff_n_chars, and ffensure_buffer_stack().

◆ ffrealloc()

void * ffrealloc ( void *  ptr,
ff_size_t  size 
)

Definition at line 2403 of file eval_l.c.

Referenced by ff_get_next_buffer(), and ffensure_buffer_stack().

◆ ffrestart()

void ffrestart ( 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 1870 of file eval_l.c.

References FF_BUF_SIZE, ff_create_buffer(), FF_CURRENT_BUFFER, FF_CURRENT_BUFFER_LVALUE, ff_init_buffer(), ff_load_buffer_state(), ffensure_buffer_stack(), and ffin.

Referenced by ff_get_next_buffer(), ffiprs(), and input().

◆ ffset_debug()

void ffset_debug ( int  debug_flag)

Definition at line 2319 of file eval_l.c.

References ff_flex_debug.

◆ ffset_in()

void ffset_in ( FILE *  in_str)

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

Parameters
in_strA readable stream.
See also
ff_switch_to_buffer

Definition at line 2304 of file eval_l.c.

References ffin.

◆ ffset_lineno()

void ffset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2292 of file eval_l.c.

References fflineno.

◆ ffset_out()

void ffset_out ( FILE *  out_str)

Definition at line 2309 of file eval_l.c.

References ffout.

◆ ffunput()

static void ffunput ( int  c,
register char *  ff_bp 
)
static

◆ ffwrap()

int ffwrap ( void  )

Definition at line 2426 of file eval_l.c.

Referenced by fflex(), and input().

◆ find_variable()

static int find_variable ( char *  varName)
static

Definition at line 2498 of file eval_l.c.

References fits_strncasecmp(), gParse, MAXVARNAME, DataInfo::name, ParseData::nCols, and ParseData::varData.

Referenced by ffGetVariable().

◆ input()

◆ isatty()

int isatty ( int  )

Referenced by ff_init_buffer().

◆ yyfffree()

void yyfffree ( void *  ptr)

Definition at line 2415 of file eval_l.c.

References free().

Referenced by ff_delete_buffer(), and fflex_destroy().

Variable Documentation

◆ ff_accept

flex_int16_t ff_accept[174]
static
Initial value:
=
{ 0,
0, 0, 31, 29, 1, 28, 18, 29, 29, 29,
29, 29, 29, 29, 10, 8, 8, 24, 29, 23,
13, 13, 13, 13, 9, 13, 13, 13, 13, 13,
17, 13, 13, 13, 13, 13, 13, 13, 29, 1,
22, 0, 12, 0, 11, 0, 13, 20, 0, 0,
0, 0, 0, 0, 0, 17, 0, 10, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 10, 8, 0, 0, 0, 0, 26, 21,
25, 13, 13, 13, 2, 13, 13, 13, 4, 13,
13, 13, 13, 3, 13, 27, 13, 13, 13, 13,
13, 13, 13, 13, 13, 19, 0, 11, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 10, 5, 6, 7,
14, 13, 23, 24, 13, 13, 13, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 18,
0, 0, 15, 0, 0, 0, 0, 0, 0, 0,
16, 0, 0
}

Definition at line 372 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_base

flex_int16_t ff_base[182]
static
Initial value:
=
{ 0,
0, 0, 412, 413, 409, 413, 390, 404, 401, 400,
398, 396, 34, 392, 70, 114, 16, 383, 46, 382,
29, 84, 359, 28, 358, 52, 157, 64, 91, 128,
358, 0, 40, 27, 69, 92, 100, 171, 340, 395,
413, 391, 413, 388, 387, 386, 413, 413, 383, 357,
358, 356, 336, 337, 335, 413, 139, 190, 352, 349,
71, 111, 135, 347, 348, 330, 327, 59, 64, 116,
325, 323, 175, 0, 59, 120, 326, 0, 413, 413,
413, 153, 184, 0, 202, 209, 210, 219, 351, 220,
228, 229, 211, 230, 240, 413, 221, 246, 254, 263,
264, 265, 266, 239, 275, 413, 346, 342, 310, 313,
309, 289, 292, 288, 275, 317, 327, 326, 325, 324,
323, 322, 298, 320, 297, 287, 317, 315, 314, 312,
311, 310, 249, 289, 243, 294, 298, 134, 246, 0,
413, 285, 413, 413, 288, 308, 309, 261, 261, 256,
221, 215, 246, 241, 223, 218, 213, 208, 197, 413,
166, 160, 413, 128, 122, 150, 154, 105, 101, 96,
413, 84, 413, 351, 354, 359, 364, 366, 368, 373,
89
}

Definition at line 437 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_buffer_stack

FF_BUFFER_STATE* ff_buffer_stack = 0
static

Stack as an array.

Definition at line 255 of file eval_l.c.

Referenced by ff_init_globals(), ffensure_buffer_stack(), and fflex_destroy().

◆ ff_buffer_stack_max

size_t ff_buffer_stack_max = 0
static

capacity of stack.

Definition at line 254 of file eval_l.c.

Referenced by ff_init_globals(), and ffensure_buffer_stack().

◆ ff_buffer_stack_top

size_t ff_buffer_stack_top = 0
static

index of top of stack.

Definition at line 253 of file eval_l.c.

Referenced by ff_init_globals(), ffensure_buffer_stack(), ffpop_buffer_state(), and ffpush_buffer_state().

◆ ff_c_buf_p

◆ ff_chk

flex_int16_t ff_chk[472]
static

Definition at line 541 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_def

flex_int16_t ff_def[182]
static
Initial value:
=
{ 0,
173, 1, 173, 173, 173, 173, 173, 174, 175, 176,
173, 177, 173, 173, 173, 173, 16, 173, 173, 173,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178,
173, 179, 178, 178, 178, 178, 178, 178, 173, 173,
173, 174, 173, 180, 175, 176, 173, 173, 177, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 173, 17, 173, 173, 173, 181, 173, 173,
173, 178, 178, 179, 178, 178, 178, 178, 27, 178,
178, 178, 178, 178, 178, 173, 178, 178, 178, 178,
178, 178, 178, 178, 178, 173, 180, 180, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 181,
173, 178, 173, 173, 178, 178, 178, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
173, 173, 0, 173, 173, 173, 173, 173, 173, 173,
173
}

Definition at line 461 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_did_buffer_switch_on_eof

int ff_did_buffer_switch_on_eof
static

Definition at line 285 of file eval_l.c.

Referenced by ff_switch_to_buffer(), fflex(), ffpop_buffer_state(), ffpush_buffer_state(), and input().

◆ ff_ec

flex_int32_t ff_ec[256]
static

Definition at line 395 of file eval_l.c.

Referenced by ff_get_previous_state(), and fflex().

◆ ff_flex_debug

int ff_flex_debug = 0

Definition at line 601 of file eval_l.c.

Referenced by ffget_debug(), and ffset_debug().

◆ ff_hold_char

char ff_hold_char
static

◆ ff_init

int ff_init = 0
static

Definition at line 279 of file eval_l.c.

Referenced by ff_init_globals(), and fflex().

◆ ff_last_accepting_cpos

char* ff_last_accepting_cpos
static

Definition at line 598 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_last_accepting_state

ff_state_type ff_last_accepting_state
static

Definition at line 597 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_meta

flex_int32_t ff_meta[59]
static
Initial value:
=
{ 0,
1, 1, 2, 1, 1, 1, 3, 1, 1, 1,
1, 1, 1, 1, 4, 4, 4, 4, 1, 1,
1, 4, 4, 4, 4, 4, 4, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 1,
1, 5, 4, 4, 4, 4, 4, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 1
}

Definition at line 427 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_n_chars

◆ ff_nxt

flex_int16_t ff_nxt[472]
static

Definition at line 485 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_try_NUL_trans(), and fflex().

◆ ff_start

int ff_start = 0
static

Definition at line 280 of file eval_l.c.

Referenced by ff_get_previous_state(), ff_init_globals(), and fflex().

◆ ffin

FILE * ffin = (FILE *) 0

◆ ffleng

ff_size_t ffleng

Definition at line 275 of file eval_l.c.

Referenced by ffget_leng().

◆ fflineno

int fflineno = 1

Definition at line 343 of file eval_l.c.

Referenced by ffget_lineno(), and ffset_lineno().

◆ ffout

FILE * ffout = (FILE *) 0

Definition at line 163 of file eval_l.c.

Referenced by ff_init_globals(), ffget_out(), fflex(), and ffset_out().

◆ fftext

char * fftext

Definition at line 610 of file eval_l.c.

Referenced by ffget_text(), and fflex().

◆ gParse

ParseData gParse

Definition at line 673 of file eval_l.c.

Referenced by expr_read(), ffGetVariable(), fflex(), and find_variable().