pcb 4.1.1
An interactive printed circuit board layout editor.

res_lex.c File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "global.h"
#include "resource.h"
#include "res_parse.h"
#include "free_atexit.h"
#include <unistd.h>
Include dependency graph for res_lex.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
struct  yy_trans_info

Defines

#define YY_INT_ALIGNED   short int
#define yy_create_buffer   res_create_buffer
#define yy_delete_buffer   res_delete_buffer
#define yy_flex_debug   res_flex_debug
#define yy_init_buffer   res_init_buffer
#define yy_flush_buffer   res_flush_buffer
#define yy_load_buffer_state   res_load_buffer_state
#define yy_switch_to_buffer   res_switch_to_buffer
#define yyin   resin
#define yyleng   resleng
#define yylex   reslex
#define yylineno   reslineno
#define yyout   resout
#define yyrestart   resrestart
#define yytext   restext
#define yywrap   reswrap
#define yyalloc   resalloc
#define yyrealloc   resrealloc
#define yyfree   resfree
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   35
#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   resrestart(resin )
#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 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_TYPEDEF_YY_SIZE_T
#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
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_FLUSH_BUFFER   res_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   res_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 reswrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   restext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   8
#define YY_END_OF_BUFFER   9
#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 YY_NO_INPUT
#define YY_INPUT(buf, result, max_size)   { result = res_parse_getchars(buf, max_size); }
#define INITIAL   0
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   do { if (fwrite( restext, resleng, 1, resout )) {} } while (0)
#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 reslex (void)
#define YY_USER_ACTION
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#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 resrestart (FILE *input_file)
void res_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE res_create_buffer (FILE *file, int size)
void res_delete_buffer (YY_BUFFER_STATE b)
void res_flush_buffer (YY_BUFFER_STATE b)
void respush_buffer_state (YY_BUFFER_STATE new_buffer)
void respop_buffer_state (void)
static void resensure_buffer_stack (void)
static void res_load_buffer_state (void)
static void res_init_buffer (YY_BUFFER_STATE b, FILE *file)
YY_BUFFER_STATE res_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE res_scan_string (yyconst char *yy_str)
YY_BUFFER_STATE res_scan_bytes (yyconst char *bytes, int len)
void * resalloc (yy_size_t)
void * resrealloc (void *, yy_size_t)
void resfree (void *)
static yy_state_type yy_get_previous_state (void)
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
static int yy_get_next_buffer (void)
static void yy_fatal_error (yyconst char msg[])
int res_parse_getchars (char *buf, int max_size)
static int yy_init_globals (void)
int reslex_destroy (void)
int resget_debug (void)
void resset_debug (int debug_flag)
YY_EXTRA_TYPE resget_extra (void)
void resset_extra (YY_EXTRA_TYPE user_defined)
FILE * resget_in (void)
void resset_in (FILE *in_str)
FILE * resget_out (void)
void resset_out (FILE *out_str)
int resget_leng (void)
char * resget_text (void)
int resget_lineno (void)
void resset_lineno (int line_number)
static void yyunput (int c, char *buf_ptr)
static void yy_flex_strncpy (char *, yyconst char *, int)
static int input (void)
int reslex (void)
static void yy_fatal_error (yyconst char *msg)

Variables

int resleng
FILE * resin = (FILE *) 0
FILE * resout = (FILE *) 0
static size_t yy_buffer_stack_top = 0
static size_t yy_buffer_stack_max = 0
static YY_BUFFER_STATEyy_buffer_stack = 0
static char yy_hold_char
static int yy_n_chars
static char * yy_c_buf_p = (char *) 0
static int yy_init = 0
static int yy_start = 0
static int yy_did_buffer_switch_on_eof
int reslineno = 1
char * restext
static yyconst flex_int16_t yy_accept [28]
static yyconst flex_int32_t yy_ec [256]
static yyconst flex_int32_t yy_meta [12]
static yyconst flex_int16_t yy_base [33]
static yyconst flex_int16_t yy_def [33]
static yyconst flex_int16_t yy_nxt [69]
static yyconst flex_int16_t yy_chk [69]
static yyconst flex_int32_t yy_rule_can_match_eol [9]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
int res_flex_debug = 0
int res_lineno

Define Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file res_lex.c.

#define ECHO   do { if (fwrite( restext, resleng, 1, resout )) {} } while (0)

Definition at line 628 of file res_lex.c.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 179 of file res_lex.c.

#define EOB_ACT_END_OF_FILE   1

Definition at line 180 of file res_lex.c.

#define EOB_ACT_LAST_MATCH   2

Definition at line 181 of file res_lex.c.

#define FLEX_SCANNER

Definition at line 28 of file res_lex.c.

#define FLEXINT_H

Definition at line 49 of file res_lex.c.

#define INITIAL   0

Definition at line 541 of file res_lex.c.

#define INT16_MAX   (32767)

Definition at line 92 of file res_lex.c.

#define INT16_MIN   (-32767-1)

Definition at line 83 of file res_lex.c.

#define INT32_MAX   (2147483647)

Definition at line 95 of file res_lex.c.

#define INT32_MIN   (-2147483647-1)

Definition at line 86 of file res_lex.c.

#define INT8_MAX   (127)

Definition at line 89 of file res_lex.c.

#define INT8_MIN   (-128)

Definition at line 80 of file res_lex.c.

#define REJECT   reject_used_but_not_detected

Definition at line 504 of file res_lex.c.

#define reswrap (   n)    1

Definition at line 367 of file res_lex.c.

#define UINT16_MAX   (65535U)

Definition at line 101 of file res_lex.c.

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file res_lex.c.

#define UINT8_MAX   (255U)

Definition at line 98 of file res_lex.c.

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

Definition at line 212 of file res_lex.c.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 363 of file res_lex.c.

#define YY_BREAK   break;

Definition at line 707 of file res_lex.c.

#define YY_BUF_SIZE   16384

Definition at line 163 of file res_lex.c.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 279 of file res_lex.c.

#define YY_BUFFER_NEW   0

Definition at line 267 of file res_lex.c.

Referenced by res_flush_buffer(), and res_scan_buffer().

#define YY_BUFFER_NORMAL   1

Definition at line 268 of file res_lex.c.

#define yy_create_buffer   res_create_buffer

Definition at line 9 of file res_lex.c.

#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 302 of file res_lex.c.

Referenced by reslex_destroy(), respop_buffer_state(), and respush_buffer_state().

#define YY_DECL   int reslex (void)

Definition at line 695 of file res_lex.c.

#define YY_DECL_IS_OURS   1

Definition at line 691 of file res_lex.c.

#define yy_delete_buffer   res_delete_buffer

Definition at line 10 of file res_lex.c.

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
        resleng = (size_t) (yy_cp - yy_bp); \
        (yy_hold_char) = *yy_cp; \
        *yy_cp = '\0'; \
        (yy_c_buf_p) = yy_cp;

Definition at line 391 of file res_lex.c.

#define YY_END_OF_BUFFER   9

Definition at line 399 of file res_lex.c.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file res_lex.c.

Referenced by res_flush_buffer(), res_scan_buffer(), and res_scan_bytes().

#define YY_EXIT_FAILURE   2

Definition at line 1671 of file res_lex.c.

Referenced by yy_fatal_error().

#define YY_EXTRA_TYPE   void *

Definition at line 552 of file res_lex.c.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 682 of file res_lex.c.

Referenced by res_scan_buffer(), res_scan_bytes(), and resensure_buffer_stack().

Definition at line 11 of file res_lex.c.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file res_lex.c.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 30 of file res_lex.c.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 31 of file res_lex.c.

#define yy_flush_buffer   res_flush_buffer

Definition at line 13 of file res_lex.c.

#define YY_FLUSH_BUFFER   res_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 331 of file res_lex.c.

#define yy_init_buffer   res_init_buffer

Definition at line 12 of file res_lex.c.

#define YY_INPUT (   buf,
  result,
  max_size 
)    { result = res_parse_getchars(buf, max_size); }

Definition at line 635 of file res_lex.c.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
                { \
                int c = '*'; \
                unsigned n; \
                for ( n = 0; n < max_size && \
                             (c = getc( resin )) != EOF && c != '\n'; ++n ) \
                        buf[n] = (char) c; \
                if ( c == '\n' ) \
                        buf[n++] = (char) c; \
                if ( c == EOF && ferror( resin ) ) \
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                result = n; \
                } \
        else \
                { \
                errno=0; \
                while ( (result = fread(buf, 1, max_size, resin))==0 && ferror(resin)) \
                        { \
                        if( errno != EINTR) \
                                { \
                                YY_FATAL_ERROR( "input in flex scanner failed" ); \
                                break; \
                                } \
                        errno=0; \
                        clearerr(resin); \
                        } \
                }\
\

Definition at line 635 of file res_lex.c.

#define YY_INT_ALIGNED   short int

Definition at line 5 of file res_lex.c.

#define YY_LESS_LINENO (   n)
Value:
do { \
                int yyl;\
                for ( yyl = n; yyl < resleng; ++yyl )\
                    if ( restext[yyl] == '\n' )\
                        --reslineno;\
            }while(0)

Definition at line 190 of file res_lex.c.

#define yy_load_buffer_state   res_load_buffer_state

Definition at line 14 of file res_lex.c.

#define YY_MORE_ADJ   0

Definition at line 506 of file res_lex.c.

#define yy_new_buffer   res_create_buffer

Definition at line 341 of file res_lex.c.

#define YY_NEW_FILE   resrestart(resin )

Definition at line 157 of file res_lex.c.

#define YY_NO_INPUT

Definition at line 529 of file res_lex.c.

#define YY_NULL   0

Definition at line 131 of file res_lex.c.

#define YY_NUM_RULES   8

Definition at line 398 of file res_lex.c.

#define YY_READ_BUF_SIZE   8192

Definition at line 620 of file res_lex.c.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 507 of file res_lex.c.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 710 of file res_lex.c.

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

Definition at line 138 of file res_lex.c.

#define yy_set_bol (   at_bol)
Value:

Definition at line 353 of file res_lex.c.

#define yy_set_interactive (   is_interactive)
Value:
{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        resensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            res_create_buffer(resin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 343 of file res_lex.c.

#define YY_SKIP_YYWRAP

Definition at line 368 of file res_lex.c.

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

Definition at line 150 of file res_lex.c.

#define YY_START_STACK_INCR   25

Definition at line 677 of file res_lex.c.

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

Definition at line 168 of file res_lex.c.

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

Definition at line 154 of file res_lex.c.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 220 of file res_lex.c.

#define yy_switch_to_buffer   res_switch_to_buffer

Definition at line 15 of file res_lex.c.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file res_lex.c.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 215 of file res_lex.c.

#define YY_USER_ACTION

Definition at line 702 of file res_lex.c.

#define yyalloc   resalloc

Definition at line 24 of file res_lex.c.

#define yyconst

Definition at line 127 of file res_lex.c.

#define yyfree   resfree

Definition at line 26 of file res_lex.c.

FILE * yyin   resin

Definition at line 16 of file res_lex.c.

int yyleng   resleng

Definition at line 17 of file res_lex.c.

#define yyless (   n)
Value:
do \
                { \
                /* Undo effects of setting up restext. */ \
        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 restext again */ \
                } \
        while ( 0 )

Definition at line 1683 of file res_lex.c.

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

Definition at line 1683 of file res_lex.c.

#define yylex   reslex

Definition at line 18 of file res_lex.c.

int yylineno   reslineno

Definition at line 19 of file res_lex.c.

Referenced by yyerror(), and yyget_lineno().

#define yymore ( )    yymore_used_but_not_detected

Definition at line 505 of file res_lex.c.

FILE * yyout   resout

Definition at line 20 of file res_lex.c.

#define yyrealloc   resrealloc

Definition at line 25 of file res_lex.c.

#define yyrestart   resrestart

Definition at line 21 of file res_lex.c.

#define YYSTATE   YY_START

Definition at line 151 of file res_lex.c.

#define YYTABLES_NAME   "yytables"

Definition at line 1876 of file res_lex.c.

#define yyterminate ( )    return YY_NULL

Definition at line 672 of file res_lex.c.

char * yytext   restext

Definition at line 22 of file res_lex.c.

Referenced by yyget_text().

#define yytext_ptr   restext

Definition at line 381 of file res_lex.c.

#define yywrap   reswrap

Definition at line 23 of file res_lex.c.


Typedef Documentation

typedef short int flex_int16_t

Definition at line 71 of file res_lex.c.

typedef int flex_int32_t

Definition at line 72 of file res_lex.c.

typedef signed char flex_int8_t

Definition at line 70 of file res_lex.c.

typedef unsigned short int flex_uint16_t

Definition at line 74 of file res_lex.c.

typedef unsigned int flex_uint32_t

Definition at line 75 of file res_lex.c.

typedef unsigned char flex_uint8_t

Definition at line 73 of file res_lex.c.

Definition at line 172 of file res_lex.c.

typedef unsigned char YY_CHAR

Definition at line 370 of file res_lex.c.

typedef size_t yy_size_t

Definition at line 216 of file res_lex.c.

typedef int yy_state_type

Definition at line 374 of file res_lex.c.


Function Documentation

static int input ( void  ) [static]
YY_BUFFER_STATE res_create_buffer ( FILE *  file,
int  size 
)
void res_delete_buffer ( YY_BUFFER_STATE  b)
void res_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 1463 of file res_lex.c.

References res_load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.

Referenced by res_init_buffer().

Here is the call graph for this function:

static void res_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
) [static]

The main scanner function which does all the work.

Definition at line 1435 of file res_lex.c.

References res_flush_buffer(), yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.

Here is the call graph for this function:

static void res_load_buffer_state ( void  ) [static]
int res_parse_getchars ( char *  buf,
int  max_size 
)

Definition at line 1650 of file res_parse.c.

References res_string_idx.

YY_BUFFER_STATE res_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 1590 of file res_lex.c.

References res_switch_to_buffer(), resalloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, and yy_buffer_state::yy_n_chars.

Referenced by res_scan_bytes().

Here is the call graph for this function:

YY_BUFFER_STATE res_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

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

References n, res_scan_buffer(), resalloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.

Referenced by res_scan_string().

Here is the call graph for this function:

YY_BUFFER_STATE res_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string. The next call to reslex() 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 res_scan_bytes() instead.

Definition at line 1627 of file res_lex.c.

References res_scan_bytes().

Here is the call graph for this function:

void res_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Referenced by res_scan_buffer().

void * resalloc ( yy_size_t  size)

Definition at line 1854 of file res_lex.c.

References malloc().

Referenced by res_scan_buffer(), res_scan_bytes(), and resensure_buffer_stack().

Here is the call graph for this function:

static void resensure_buffer_stack ( void  ) [static]

Definition at line 1541 of file res_lex.c.

References resalloc(), resrealloc(), yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, and YY_FATAL_ERROR.

Referenced by respush_buffer_state().

Here is the call graph for this function:

void resfree ( void *  ptr)

Definition at line 1871 of file res_lex.c.

Referenced by reslex_destroy().

int resget_debug ( void  )

Definition at line 1767 of file res_lex.c.

References res_flex_debug.

YY_EXTRA_TYPE resget_extra ( void  )
FILE * resget_in ( void  )

Get the input stream.

Definition at line 1711 of file res_lex.c.

References resin.

int resget_leng ( void  )

Get the length of the current token.

Definition at line 1727 of file res_lex.c.

References resleng.

int resget_lineno ( void  )

Get the current line number.

Definition at line 1702 of file res_lex.c.

References reslineno.

FILE * resget_out ( void  )

Get the output stream.

Definition at line 1719 of file res_lex.c.

References resout.

char * resget_text ( void  )

Get the current token.

Definition at line 1736 of file res_lex.c.

References restext.

int reslex ( void  )
int reslex_destroy ( void  )

Definition at line 1809 of file res_lex.c.

References res_delete_buffer(), resfree(), respop_buffer_state(), yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_init_globals().

Here is the call graph for this function:

void respop_buffer_state ( void  )

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

Definition at line 1522 of file res_lex.c.

References res_delete_buffer(), res_load_buffer_state(), yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_did_buffer_switch_on_eof.

Referenced by reslex_destroy().

Here is the call graph for this function:

void respush_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 1492 of file res_lex.c.

References res_load_buffer_state(), resensure_buffer_stack(), yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.

Here is the call graph for this function:

void * resrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 1859 of file res_lex.c.

References realloc().

Referenced by resensure_buffer_stack().

Here is the call graph for this function:

void resrestart ( FILE *  input_file)
void resset_debug ( int  debug_flag)

Definition at line 1772 of file res_lex.c.

void resset_extra ( YY_EXTRA_TYPE  user_defined)
void resset_in ( FILE *  in_str)

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

Parameters:
in_strA readable stream.
See also:
res_switch_to_buffer

Definition at line 1757 of file res_lex.c.

References resin.

void resset_lineno ( int  line_number)

Set the current line number.

Parameters:
line_number

Definition at line 1745 of file res_lex.c.

void resset_out ( FILE *  out_str)

Definition at line 1762 of file res_lex.c.

References resout.

static void yy_fatal_error ( yyconst char  msg[]) [static]
static void yy_fatal_error ( yyconst char *  msg) [static]

Definition at line 1674 of file res_lex.c.

References YY_EXIT_FAILURE.

static void yy_flex_strncpy ( char *  s1,
yyconst char *  s2,
int  n 
) [static]

Definition at line 1835 of file res_lex.c.

References n.

static int yy_get_next_buffer ( void  ) [static]
static yy_state_type yy_get_previous_state ( void  ) [static]
static int yy_init_globals ( void  ) [static]
static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state) [static]
static void yyunput ( int  c,
char *  buf_ptr 
) [static]

Variable Documentation

int res_flex_debug = 0

Definition at line 499 of file res_lex.c.

Referenced by resget_debug().

Definition at line 1647 of file res_parse.c.

FILE * resin = (FILE *) 0

Definition at line 372 of file res_lex.c.

Referenced by resget_in(), resset_in(), and yy_init_globals().

int resleng

Definition at line 307 of file res_lex.c.

Referenced by resget_leng().

int reslineno = 1

Definition at line 378 of file res_lex.c.

Referenced by resget_lineno().

FILE * resout = (FILE *) 0

Definition at line 372 of file res_lex.c.

Referenced by resget_out(), resset_out(), and yy_init_globals().

char * restext

Definition at line 508 of file res_lex.c.

Referenced by resget_text().

yyconst flex_int16_t yy_accept[28] [static]
Initial value:
    {   0,
        0,    0,    9,    6,    4,    4,    7,    6,    7,    7,
        7,    6,    6,    0,    0,    1,    6,    0,    3,    0,
        0,    2,    0,    5,    0,    3,    0
    }

Definition at line 407 of file res_lex.c.

yyconst flex_int16_t yy_base[33] [static]
Initial value:
    {   0,
        0,    0,   44,   34,   57,   57,   36,   11,   33,   30,
       57,   16,   28,   25,   27,   57,    0,   25,   57,   34,
       23,   57,   20,    0,   40,   19,   57,   23,   48,   50,
       52,   54
    }

Definition at line 452 of file res_lex.c.

Stack as an array.

Definition at line 287 of file res_lex.c.

Referenced by resensure_buffer_stack(), reslex_destroy(), and yy_init_globals().

size_t yy_buffer_stack_max = 0 [static]

capacity of stack.

Definition at line 286 of file res_lex.c.

Referenced by resensure_buffer_stack(), and yy_init_globals().

size_t yy_buffer_stack_top = 0 [static]

index of top of stack.

Definition at line 285 of file res_lex.c.

Referenced by resensure_buffer_stack(), respop_buffer_state(), respush_buffer_state(), and yy_init_globals().

char* yy_c_buf_p = (char *) 0 [static]

Definition at line 310 of file res_lex.c.

Referenced by respush_buffer_state(), and yy_init_globals().

yyconst flex_int16_t yy_chk[69] [static]
Initial value:
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    8,    8,    8,    8,    8,    8,    8,    8,    8,
        8,    8,   12,   28,   12,   18,   26,   23,   21,   18,
       15,   18,   14,   18,   13,   18,   20,   10,    9,    7,
        4,   20,   25,    3,    0,    0,    0,   25,   29,   29,
       30,   30,   31,   31,   32,   32,   27,   27,   27,   27,
       27,   27,   27,   27,   27,   27,   27,   27
    }

Definition at line 479 of file res_lex.c.

yyconst flex_int16_t yy_def[33] [static]
Initial value:
    {   0,
       27,    1,   27,   28,   27,   27,   29,   27,   30,   31,
       27,   28,   28,   31,   29,   27,    8,    8,   27,   32,
       30,   27,   31,   12,   32,   31,    0,   27,   27,   27,
       27,   27
    }

Definition at line 460 of file res_lex.c.

Definition at line 317 of file res_lex.c.

Referenced by respop_buffer_state(), and respush_buffer_state().

yyconst flex_int32_t yy_ec[256] [static]

Definition at line 414 of file res_lex.c.

char yy_hold_char [static]

Definition at line 305 of file res_lex.c.

Referenced by respush_buffer_state().

int yy_init = 0 [static]

Definition at line 311 of file res_lex.c.

Referenced by yy_init_globals().

char* yy_last_accepting_cpos [static]

Definition at line 496 of file res_lex.c.

Definition at line 495 of file res_lex.c.

yyconst flex_int32_t yy_meta[12] [static]
Initial value:
    {   0,
        1,    2,    2,    2,    1,    2,    1,    2,    1,    2,
        1
    }

Definition at line 446 of file res_lex.c.

int yy_n_chars [static]

Definition at line 306 of file res_lex.c.

Referenced by respush_buffer_state().

yyconst flex_int16_t yy_nxt[69] [static]
Initial value:
    {   0,
        4,    5,    6,    7,    8,    9,   10,   11,    4,   11,
       12,   17,   18,   19,   18,   17,   18,   20,   18,   17,
       18,   17,   14,   13,   24,   18,   13,   13,   22,   18,
       16,   18,   13,   18,   14,   18,   26,   13,   22,   16,
       14,   17,   26,   27,   27,   27,   27,   17,   15,   15,
       21,   21,   23,   23,   25,   25,    3,   27,   27,   27,
       27,   27,   27,   27,   27,   27,   27,   27
    }

Definition at line 468 of file res_lex.c.

yyconst flex_int32_t yy_rule_can_match_eol[9] [static]
Initial value:
    {   0,
1, 1, 1, 1, 0, 1, 0, 0,     }

Definition at line 491 of file res_lex.c.

int yy_start = 0 [static]

Definition at line 312 of file res_lex.c.

Referenced by yy_init_globals().