Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/binutils/rclex.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
     1
     2#line 3 "lex.yy.c"
     3
     4#define  YY_INT_ALIGNED short int
     5
    16/* A lexical scanner generated by flex */
    2 
    3 /* Scanner skeleton version:
    4  * $Header: /cvs/src/src/binutils/Attic/rclex.c,v 1.1.4.2 2001/06/10 15:37:28 pb Exp $
    5  */
    67
    78#define FLEX_SCANNER
    89#define YY_FLEX_MAJOR_VERSION 2
    910#define YY_FLEX_MINOR_VERSION 5
    10 
     11#define YY_FLEX_SUBMINOR_VERSION 31
     12#if YY_FLEX_SUBMINOR_VERSION > 0
     13#define FLEX_BETA
     14#endif
     15
     16/* First, we deal with  platform-specific or compiler-specific issues. */
     17
     18/* begin standard C headers. */
    1119#include <stdio.h>
    12 
    13 
    14 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
    15 #ifdef c_plusplus
    16 #ifndef __cplusplus
    17 #define __cplusplus
    18 #endif
    19 #endif
    20 
     20#include <string.h>
     21#include <errno.h>
     22#include <stdlib.h>
     23
     24/* end standard C headers. */
     25
     26/* flex integer type definitions */
     27
     28#ifndef FLEXINT_H
     29#define FLEXINT_H
     30
     31/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
     32
     33#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
     34#include <inttypes.h>
     35typedef int8_t flex_int8_t;
     36typedef uint8_t flex_uint8_t;
     37typedef int16_t flex_int16_t;
     38typedef uint16_t flex_uint16_t;
     39typedef int32_t flex_int32_t;
     40typedef uint32_t flex_uint32_t;
     41#else
     42typedef signed char flex_int8_t;
     43typedef short int flex_int16_t;
     44typedef int flex_int32_t;
     45typedef unsigned char flex_uint8_t;
     46typedef unsigned short int flex_uint16_t;
     47typedef unsigned int flex_uint32_t;
     48#endif /* ! C99 */
     49
     50/* Limits of integral types. */
     51#ifndef INT8_MIN
     52#define INT8_MIN               (-128)
     53#endif
     54#ifndef INT16_MIN
     55#define INT16_MIN              (-32767-1)
     56#endif
     57#ifndef INT32_MIN
     58#define INT32_MIN              (-2147483647-1)
     59#endif
     60#ifndef INT8_MAX
     61#define INT8_MAX               (127)
     62#endif
     63#ifndef INT16_MAX
     64#define INT16_MAX              (32767)
     65#endif
     66#ifndef INT32_MAX
     67#define INT32_MAX              (2147483647)
     68#endif
     69#ifndef UINT8_MAX
     70#define UINT8_MAX              (255U)
     71#endif
     72#ifndef UINT16_MAX
     73#define UINT16_MAX             (65535U)
     74#endif
     75#ifndef UINT32_MAX
     76#define UINT32_MAX             (4294967295U)
     77#endif
     78
     79#endif /* ! FLEXINT_H */
    2180
    2281#ifdef __cplusplus
    23 
    24 #include <stdlib.h>
    25 #include <unistd.h>
    26 
    27 /* Use prototypes in function declarations. */
    28 #define YY_USE_PROTOS
    2982
    3083/* The "const" storage-class-modifier is valid. */
     
    3588#if __STDC__
    3689
    37 #define YY_USE_PROTOS
    3890#define YY_USE_CONST
    3991
    4092#endif  /* __STDC__ */
    4193#endif  /* ! __cplusplus */
    42 
    43 #ifdef __TURBOC__
    44  #pragma warn -rch
    45  #pragma warn -use
    46 #include <io.h>
    47 #include <stdlib.h>
    48 #define YY_USE_CONST
    49 #define YY_USE_PROTOS
    50 #endif
    5194
    5295#ifdef YY_USE_CONST
     
    5699#endif
    57100
    58 
    59 #ifdef YY_USE_PROTOS
    60 #define YY_PROTO(proto) proto
    61 #else
    62 #define YY_PROTO(proto) ()
    63 #endif
    64 
    65101/* Returned upon end-of-file. */
    66102#define YY_NULL 0
     
    77113 * definition of BEGIN.
    78114 */
    79 #define BEGIN yy_start = 1 + 2 *
     115#define BEGIN (yy_start) = 1 + 2 *
    80116
    81117/* Translate the current start state into a value that can be later handed
     
    83119 * compatibility.
    84120 */
    85 #define YY_START ((yy_start - 1) / 2)
     121#define YY_START (((yy_start) - 1) / 2)
    86122#define YYSTATE YY_START
    87123
     
    90126
    91127/* Special action meaning "start processing a new file". */
    92 #define YY_NEW_FILE yyrestart( yyin )
     128#define YY_NEW_FILE yyrestart(yyin )
    93129
    94130#define YY_END_OF_BUFFER_CHAR 0
    95131
    96132/* Size of default input buffer. */
     133#ifndef YY_BUF_SIZE
    97134#define YY_BUF_SIZE 16384
    98 
     135#endif
     136
     137#ifndef YY_TYPEDEF_YY_BUFFER_STATE
     138#define YY_TYPEDEF_YY_BUFFER_STATE
    99139typedef struct yy_buffer_state *YY_BUFFER_STATE;
     140#endif
    100141
    101142extern int yyleng;
     143
    102144extern FILE *yyin, *yyout;
    103145
     
    106148#define EOB_ACT_LAST_MATCH 2
    107149
    108 /* The funky do-while in the following #define is used to turn the definition
    109  * int a single C statement (which needs a semi-colon terminator).  This
    110  * avoids problems with code like:
    111  *
    112  *      if ( condition_holds )
    113  *              yyless( 5 );
    114  *      else
    115  *              do_something_else();
    116  *
    117  * Prior to using the do-while the compiler would get upset at the
    118  * "else" because it interpreted the "if" statement as being all
    119  * done when it reached the ';' after the yyless() call.
    120  */
    121 
    122 /* Return all but the first 'n' matched characters back to the input stream. */
    123 
     150    #define YY_LESS_LINENO(n)
     151   
     152/* Return all but the first "n" matched characters back to the input stream. */
    124153#define yyless(n) \
    125154        do \
    126155                { \
    127156                /* Undo effects of setting up yytext. */ \
    128                 *yy_cp = yy_hold_char; \
     157        int yyless_macro_arg = (n); \
     158        YY_LESS_LINENO(yyless_macro_arg);\
     159                *yy_cp = (yy_hold_char); \
    129160                YY_RESTORE_YY_MORE_OFFSET \
    130                 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
     161                (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
    131162                YY_DO_BEFORE_ACTION; /* set up yytext again */ \
    132163                } \
    133164        while ( 0 )
    134165
    135 #define unput(c) yyunput( c, yytext_ptr )
     166#define unput(c) yyunput( c, (yytext_ptr) )
    136167
    137168/* The following is because we cannot portably get our hands on size_t
     
    139170 * flex-generated scanners to compile on their own).
    140171 */
     172
     173#ifndef YY_TYPEDEF_YY_SIZE_T
     174#define YY_TYPEDEF_YY_SIZE_T
    141175typedef unsigned int yy_size_t;
    142 
    143 
     176#endif
     177
     178#ifndef YY_STRUCT_YY_BUFFER_STATE
     179#define YY_STRUCT_YY_BUFFER_STATE
    144180struct yy_buffer_state
    145181        {
     
    178214        int yy_at_bol;
    179215
     216    int yy_bs_lineno; /**< The line count. */
     217    int yy_bs_column; /**< The column count. */
     218   
    180219        /* Whether to try to fill the input buffer when we reach the
    181220         * end of it.
     
    184223
    185224        int yy_buffer_status;
     225
    186226#define YY_BUFFER_NEW 0
    187227#define YY_BUFFER_NORMAL 1
     
    197237         */
    198238#define YY_BUFFER_EOF_PENDING 2
     239
    199240        };
    200 
    201 static YY_BUFFER_STATE yy_current_buffer = 0;
     241#endif /* !YY_STRUCT_YY_BUFFER_STATE */
     242
     243/* Stack of input buffers. */
     244static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
     245static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
     246static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
    202247
    203248/* We provide macros for accessing buffer states in case in the
    204249 * future we want to put the buffer states in a more general
    205250 * "scanner state".
    206  */
    207 #define YY_CURRENT_BUFFER yy_current_buffer
    208 
     251 *
     252 * Returns the top of the stack, or NULL.
     253 */
     254#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
     255                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
     256                          : NULL)
     257
     258/* Same as previous macro, but useful when we know that the buffer stack is not
     259 * NULL or when we need an lvalue. For internal use only.
     260 */
     261#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
    209262
    210263/* yy_hold_char holds the character lost when yytext is formed. */
    211264static char yy_hold_char;
    212 
    213265static int yy_n_chars;          /* number of characters read into yy_ch_buf */
    214 
    215 
    216266int yyleng;
    217267
     
    226276static int yy_did_buffer_switch_on_eof;
    227277
    228 void yyrestart YY_PROTO(( FILE *input_file ));
    229 
    230 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
    231 void yy_load_buffer_state YY_PROTO(( void ));
    232 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
    233 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
    234 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
    235 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
    236 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
    237 
    238 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
    239 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
    240 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
    241 
    242 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
    243 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
    244 static void yy_flex_free YY_PROTO(( void * ));
     278void yyrestart (FILE *input_file  );
     279void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
     280YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
     281void yy_delete_buffer (YY_BUFFER_STATE b  );
     282void yy_flush_buffer (YY_BUFFER_STATE b  );
     283void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
     284void yypop_buffer_state (void );
     285
     286static void yyensure_buffer_stack (void );
     287static void yy_load_buffer_state (void );
     288static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file  );
     289
     290#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
     291
     292YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size  );
     293YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
     294YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len  );
     295
     296void *yyalloc (yy_size_t  );
     297void *yyrealloc (void *,yy_size_t  );
     298void yyfree (void *  );
    245299
    246300#define yy_new_buffer yy_create_buffer
     
    248302#define yy_set_interactive(is_interactive) \
    249303        { \
    250         if ( ! yy_current_buffer ) \
    251                 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
    252         yy_current_buffer->yy_is_interactive = is_interactive; \
     304        if ( ! YY_CURRENT_BUFFER ){ \
     305        yyensure_buffer_stack (); \
     306                YY_CURRENT_BUFFER_LVALUE =    \
     307            yy_create_buffer(yyin,YY_BUF_SIZE ); \
     308        } \
     309        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
    253310        }
    254311
    255312#define yy_set_bol(at_bol) \
    256313        { \
    257         if ( ! yy_current_buffer ) \
    258                 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
    259         yy_current_buffer->yy_at_bol = at_bol; \
     314        if ( ! YY_CURRENT_BUFFER ){\
     315        yyensure_buffer_stack (); \
     316                YY_CURRENT_BUFFER_LVALUE =    \
     317            yy_create_buffer(yyin,YY_BUF_SIZE ); \
     318        } \
     319        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
    260320        }
    261321
    262 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
     322#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
     323
     324/* Begin user sect3 */
    263325
    264326typedef unsigned char YY_CHAR;
     327
    265328FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
     329
    266330typedef int yy_state_type;
     331
     332extern int yylineno;
     333
     334int yylineno = 1;
     335
    267336extern char *yytext;
    268337#define yytext_ptr yytext
    269338
    270 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
    271 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
    272 static int yy_get_next_buffer YY_PROTO(( void ));
    273 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
     339static yy_state_type yy_get_previous_state (void );
     340static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
     341static int yy_get_next_buffer (void );
     342static void yy_fatal_error (yyconst char msg[]  );
    274343
    275344/* Done after the current pattern has been matched and before the
     
    277346 */
    278347#define YY_DO_BEFORE_ACTION \
    279         yytext_ptr = yy_bp; \
    280         yyleng = (int) (yy_cp - yy_bp); \
    281         yy_hold_char = *yy_cp; \
     348        (yytext_ptr) = yy_bp; \
     349        yyleng = (size_t) (yy_cp - yy_bp); \
     350        (yy_hold_char) = *yy_cp; \
    282351        *yy_cp = '\0'; \
    283         yy_c_buf_p = yy_cp;
     352        (yy_c_buf_p) = yy_cp;
    284353
    285354#define YY_NUM_RULES 86
    286355#define YY_END_OF_BUFFER 87
    287 static yyconst short int yy_accept[470] =
     356/* This struct is not used in this scanner,
     357   but its presence is necessary. */
     358struct yy_trans_info
     359        {
     360        flex_int32_t yy_verify;
     361        flex_int32_t yy_nxt;
     362        };
     363static yyconst flex_int16_t yy_accept[470] =
    288364    {   0,
    289365        0,    0,   87,   85,   84,   83,   85,   78,   80,   82,
     
    340416    } ;
    341417
    342 static yyconst int yy_ec[256] =
     418static yyconst flex_int32_t yy_ec[256] =
    343419    {   0,
    344420        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
     
    372448    } ;
    373449
    374 static yyconst int yy_meta[36] =
     450static yyconst flex_int32_t yy_meta[36] =
    375451    {   0,
    376452        1,    2,    3,    2,    1,    4,    2,    5,    5,    5,
     
    380456    } ;
    381457
    382 static yyconst short int yy_base[476] =
     458static yyconst flex_int16_t yy_base[476] =
    383459    {   0,
    384         0,    0,  515,  516,   34,  516,  509,    0,  492,   25,
    385        26,   45,   25,   28,   24,  486,  497,   49,    0,   40,
    386        43,  486,   51,   66,   67,  482,   35,  516,  516,   81,
    387       503,   84,    0,  486,  516,    0,  494,  477,  492,  475,
    388        74,  474,  477,  475,   46,  489,   69,  484,  471,  481,
    389        55,  477,  481,  466,   67,  469,   83,   83,  467,  477,
    390       464,  478,  464,  459,  475,  470,   74,  453,   81,  457,
    391        86,   76,  468,  467,  465,  452,  452,  458,   95,  461,
    392       453,  447,  446,  106,  466,  456,    0,  451,  444,  449,
    393       448,  443,  452,  435,  436,  449,  433,  448,  430,  426,
    394 
    395       429,  430,  433,  441,  424,    0,  423,  436,  435,  420,
    396       415,  417,  427,  419,  420,  424,  412,  428,  423,  410,
    397       424,  405,  406,  407,  419,  409,    0,  402,  409,  416,
    398       414,  410,  408,  415,  393,  399,  412,  406,  392,  401,
    399       397,  391,  387,  388,  386,  392,  394,  103,  383,  387,
    400       399,  388,  389,  396,  385,  377,  379,  376,  373,  376,
    401       370,  374,  387,  368,  363,   98,  381,    0,  379,  367,
    402       363,    0,    0,  362,  363,  360,  358,  375,  361,  356,
    403       105,  373,  372,  351,  355,  355,  349,    0,  366,  352,
    404       347,  346,  352,  346,  343,  356,  346,  354,  356,  352,
    405 
    406       347,  344,  349,    0,  335,  344,  350,    0,    0,  334,
    407       115,  334,  345,  119,    0,  345,  331,    0,  328,  326,
    408       336,  325,  336,  328,  327,  320,  317,  313,  330,    0,
    409       330,  331,    0,    0,  327,  322,  329,  314,  314,    0,
    410       114,  305,  307,  318,  322,  318,    0,  321,  318,  107,
    411       318,  318,    0,  306,  316,    0,  316,  308,    0,  294,
    412         0,  298,  307,  294,  291,  304,  304,    0,  132,  137,
    413       293,  287,  290,  300,  288,  290,    0,  293,  295,  295,
    414       276,  292,  295,    0,  293,  278,  276,    0,  277,    0,
    415       270,  283,  267,  285,  270,  281,    0,  280,  279,  271,
    416 
    417       265,  277,  261,  257,  259,  257,    0,  274,  256,    0,
    418       255,  254,  258,  248,  269,  268,  265,  258,  270,  143,
    419       269,  149,    0,  259,  241,    0,  240,    0,  259,  238,
    420       258,  239,    0,  250,  237,  250,  236,  231,  247,  246,
    421         0,  249,  247,  247,  234,  227,  240,  225,    0,  222,
    422         0,  223,  222,  239,  224,  237,  218,  227,    0,  216,
    423       215,  222,  217,  235,  213,    0,    0,  209,    0,  226,
    424         0,  209,  203,    0,  216,    0,    0,    0,  212,  206,
    425       211,    0,  220,    0,    0,  215,  204,  199,  200,  199,
    426       213,  199,  199,  197,  206,  208,  207,  199,  188,  194,
    427 
    428       192,  188,  188,  190,  196,    0,  198,  182,  184,  182,
    429         0,    0,  184,  181,  188,  176,    0,  177,  171,  172,
    430       170,  183,  186,  181,  171,    0,  183,  171,  164,    0,
    431       167,  175,    0,  164,  160,  155,  157,  156,  159,    0,
    432       155,    0,    0,  160,  165,  156,    0,    0,    0,    0,
    433         0,  141,  150,  141,  139,    0,    0,  128,  122,  126,
    434         0,    0,  109,   91,   79,    0,    0,    0,  516,  156,
    435       161,   65,  166,  171,  176
     460        0,    0,  517,  518,   34,  518,  511,    0,  494,   25,
     461       26,   45,   25,   28,   24,  488,  499,   49,    0,   40,
     462       43,  488,   51,   66,   67,  484,   35,  518,  518,   81,
     463      505,   84,    0,  488,  518,    0,  496,  479,  494,  477,
     464       75,  476,  479,  477,   46,  491,   70,  486,  473,  483,
     465       55,  479,  483,  468,   69,  471,   86,   84,  469,  479,
     466      466,  480,  466,  461,  477,  472,   75,  455,   81,  459,
     467       87,   77,  470,  469,  467,  454,  454,  460,   96,  463,
     468      455,  449,  448,  110,  468,  458,    0,  453,  446,  451,
     469      450,  445,  454,  437,  438,  451,  435,  450,  432,  428,
     470
     471      431,  432,  435,  443,  426,    0,  425,  438,  437,  422,
     472      417,  419,  429,  421,  422,  426,  414,  430,  425,  412,
     473      426,  407,  408,  409,  421,  411,    0,  404,  411,  418,
     474      416,  412,  410,  417,  395,  401,  414,  408,  394,  403,
     475      399,  393,  389,  390,  388,  394,  396,  105,  385,  389,
     476      401,  390,  391,  398,  387,  379,  381,  378,  375,  378,
     477      372,  376,  389,  370,  365,  105,  383,    0,  381,  369,
     478      365,    0,    0,  364,  365,  362,  360,  377,  363,  358,
     479      105,  375,  374,  353,  357,  357,  351,    0,  368,  354,
     480      349,  348,  354,  348,  345,  358,  348,  356,  358,  354,
     481
     482      349,  346,  351,    0,  337,  346,  352,    0,    0,  336,
     483      122,  336,  347,  107,    0,  347,  333,    0,  330,  328,
     484      338,  327,  338,  330,  329,  322,  319,  315,  332,    0,
     485      332,  333,    0,    0,  329,  324,  331,  316,  316,    0,
     486      116,  307,  309,  320,  324,  320,    0,  323,  320,  110,
     487      320,  320,    0,  308,  318,    0,  318,  310,    0,  296,
     488        0,  300,  309,  296,  293,  306,  306,    0,  135,  139,
     489      295,  289,  292,  302,  290,  292,    0,  295,  297,  297,
     490      278,  294,  297,    0,  295,  280,  278,    0,  279,    0,
     491      272,  285,  269,  287,  272,  283,    0,  282,  281,  273,
     492
     493      267,  279,  263,  259,  261,  259,    0,  276,  258,    0,
     494      257,  256,  260,  250,  271,  270,  267,  260,  272,  145,
     495      271,  151,    0,  261,  243,    0,  242,    0,  261,  240,
     496      260,  241,    0,  252,  239,  252,  238,  233,  249,  248,
     497        0,  251,  249,  249,  236,  229,  242,  227,    0,  224,
     498        0,  225,  224,  241,  226,  239,  220,  229,    0,  218,
     499      217,  224,  219,  237,  215,    0,    0,  211,    0,  228,
     500        0,  211,  205,    0,  218,    0,    0,    0,  214,  208,
     501      213,    0,  222,    0,    0,  217,  206,  201,  202,  201,
     502      215,  201,  201,  199,  208,  210,  209,  201,  190,  196,
     503
     504      194,  190,  190,  192,  198,    0,  200,  184,  186,  184,
     505        0,    0,  186,  183,  190,  178,    0,  179,  173,  174,
     506      172,  185,  188,  183,  173,    0,  185,  173,  166,    0,
     507      169,  177,    0,  166,  162,  157,  159,  158,  161,    0,
     508      157,    0,    0,  162,  167,  158,    0,    0,    0,    0,
     509        0,  143,  152,  143,  141,    0,    0,  130,  124,  124,
     510        0,    0,  107,   85,   80,    0,    0,    0,  518,  158,
     511      163,   65,  168,  173,  178
    436512    } ;
    437513
    438 static yyconst short int yy_def[476] =
     514static yyconst flex_int16_t yy_def[476] =
    439515    {   0,
    440516      469,    1,  469,  469,  469,  469,  470,  471,  472,  473,
     
    492568    } ;
    493569
    494 static yyconst short int yy_nxt[552] =
     570static yyconst flex_int16_t yy_nxt[554] =
    495571    {   0,
    496572        4,    5,    6,    5,    7,    8,    4,    9,    9,   10,
     
    502578       59,   45,   60,   65,  103,   46,   68,   66,   47,   34,
    503579       61,   62,   48,   49,   70,   73,   71,   74,   76,   72,
    504        77,  104,   30,   78,   30,   84,   90,  108,   85,   91,
    505        98,   99,  111,   75,   79,  113,  123,  109,  126,  129,
    506 
    507       124,  131,  132,  114,  139,  468,  112,   84,  127,  130,
    508        85,  205,  225,  467,  206,  241,  269,  269,  242,  270,
    509       140,  226,  243,  295,  227,  228,  141,  229,  207,  273,
    510       304,  466,  274,  269,  269,  305,  319,  465,  321,  296,
    511       321,  322,   36,  321,  321,  464,  321,  322,   36,  321,
    512       321,  463,  321,  322,   36,  321,   31,   31,  462,   31,
    513        31,   33,   33,  461,   33,   33,   36,  460,  459,   36,
    514        36,  320,  320,  458,  320,  320,  321,  321,  457,  456,
    515       321,  455,  454,  453,  452,  451,  450,  449,  448,  447,
    516       446,  445,  444,  443,  442,  441,  440,  439,  438,  437,
    517 
    518       436,  435,  434,  433,  432,  431,  430,  429,  428,  427,
    519       426,  425,  424,  423,  422,  421,  420,  419,  418,  417,
    520       416,  415,  414,  413,  412,  411,  410,  409,  408,  407,
    521       406,  405,  404,  403,  402,  401,  400,  399,  398,  364,
    522       397,  396,  395,  394,  393,  392,  391,  390,  389,  388,
    523       387,  386,  385,  384,  383,  382,  381,  380,  379,  378,
    524       377,  376,  375,  374,  373,  372,  371,  370,  369,  368,
    525       367,  366,  365,  364,  364,  363,  362,  361,  360,  359,
    526       358,  357,  356,  355,  354,  353,  352,  351,  350,  349,
    527       348,  347,  346,  345,  344,  343,  342,  341,  340,  339,
    528 
    529       338,  337,  336,  335,  334,  333,  332,  331,  330,  329,
    530       328,  327,  326,  325,  324,  323,  318,  317,  316,  315,
    531       314,  313,  312,  311,  310,  309,  308,  307,  306,  303,
    532       302,  301,  300,  299,  298,  297,  294,  293,  292,  291,
    533       290,  289,  288,  287,  286,  285,  284,  283,  282,  281,
    534       280,  279,  278,  277,  276,  275,  272,  271,  268,  267,
    535       266,  265,  264,  263,  262,  261,  260,  259,  258,  257,
    536       256,  255,  254,  253,  252,  251,  250,  249,  248,  247,
    537       246,  245,  244,  240,  239,  238,  237,  236,  235,  234,
    538       233,  232,  231,  230,  224,  223,  222,  221,  220,  219,
    539 
    540       218,  217,  216,  215,  214,  213,  212,  211,  210,  209,
    541       208,  204,  203,  202,  201,  200,  199,  198,  197,  196,
    542       195,  194,  193,  192,  191,  190,  189,  188,  187,  186,
    543       185,  184,  183,  182,  181,  180,  179,  178,  177,  176,
    544       175,  174,  173,  172,  171,  170,  169,  168,  167,  166,
    545       165,  164,  163,  162,  161,  160,  159,  158,  157,  156,
    546       155,  154,  153,  152,  151,  150,  149,  148,  147,  146,
    547        32,  145,  144,  143,  142,  138,  137,  136,  135,  134,
    548       133,  128,  125,  122,  121,  120,  119,  118,  117,  116,
    549       115,  110,  107,  106,  105,  102,  101,  100,   97,   94,
    550 
    551        93,   92,   89,   88,   87,   86,   35,   32,   80,   69,
    552        58,   57,   35,   32,  469,    3,  469,  469,  469,  469,
     580       77,  104,   30,   78,   30,   84,   84,   90,   85,  108,
     581       91,   98,   99,   75,   79,  111,  113,  123,  126,  109,
     582
     583      129,  124,  131,  132,  114,  139,  468,  467,  127,  112,
     584      130,   84,   84,  205,   85,  241,  206,  273,  242,  225,
     585      274,  140,  243,  269,  269,  295,  270,  141,  226,  466,
     586      207,  227,  228,  304,  229,  465,  269,  269,  305,  319,
     587      321,  296,  321,  322,   36,  321,  321,  464,  321,  322,
     588       36,  321,  321,  463,  321,  322,   36,  321,   31,   31,
     589      462,   31,   31,   33,   33,  461,   33,   33,   36,  460,
     590      459,   36,   36,  320,  320,  458,  320,  320,  321,  321,
     591      457,  456,  321,  455,  454,  453,  452,  451,  450,  449,
     592      448,  447,  446,  445,  444,  443,  442,  441,  440,  439,
     593
     594      438,  437,  436,  435,  434,  433,  432,  431,  430,  429,
     595      428,  427,  426,  425,  424,  423,  422,  421,  420,  419,
     596      418,  417,  416,  415,  414,  413,  412,  411,  410,  409,
     597      408,  407,  406,  405,  404,  403,  402,  401,  400,  399,
     598      398,  364,  397,  396,  395,  394,  393,  392,  391,  390,
     599      389,  388,  387,  386,  385,  384,  383,  382,  381,  380,
     600      379,  378,  377,  376,  375,  374,  373,  372,  371,  370,
     601      369,  368,  367,  366,  365,  364,  364,  363,  362,  361,
     602      360,  359,  358,  357,  356,  355,  354,  353,  352,  351,
     603      350,  349,  348,  347,  346,  345,  344,  343,  342,  341,
     604
     605      340,  339,  338,  337,  336,  335,  334,  333,  332,  331,
     606      330,  329,  328,  327,  326,  325,  324,  323,  318,  317,
     607      316,  315,  314,  313,  312,  311,  310,  309,  308,  307,
     608      306,  303,  302,  301,  300,  299,  298,  297,  294,  293,
     609      292,  291,  290,  289,  288,  287,  286,  285,  284,  283,
     610      282,  281,  280,  279,  278,  277,  276,  275,  272,  271,
     611      268,  267,  266,  265,  264,  263,  262,  261,  260,  259,
     612      258,  257,  256,  255,  254,  253,  252,  251,  250,  249,
     613      248,  247,  246,  245,  244,  240,  239,  238,  237,  236,
     614      235,  234,  233,  232,  231,  230,  224,  223,  222,  221,
     615
     616      220,  219,  218,  217,  216,  215,  214,  213,  212,  211,
     617      210,  209,  208,  204,  203,  202,  201,  200,  199,  198,
     618      197,  196,  195,  194,  193,  192,  191,  190,  189,  188,
     619      187,  186,  185,  184,  183,  182,  181,  180,  179,  178,
     620      177,  176,  175,  174,  173,  172,  171,  170,  169,  168,
     621      167,  166,  165,  164,  163,  162,  161,  160,  159,  158,
     622      157,  156,  155,  154,  153,  152,  151,  150,  149,  148,
     623      147,  146,   32,  145,  144,  143,  142,  138,  137,  136,
     624      135,  134,  133,  128,  125,  122,  121,  120,  119,  118,
     625      117,  116,  115,  110,  107,  106,  105,  102,  101,  100,
     626
     627       97,   94,   93,   92,   89,   88,   87,   86,   35,   32,
     628       80,   69,   58,   57,   35,   32,  469,    3,  469,  469,
    553629      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
    554630      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
    555631      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
    556       469
     632      469,  469,  469
    557633    } ;
    558634
    559 static yyconst short int yy_chk[552] =
     635static yyconst flex_int16_t yy_chk[554] =
    560636    {   0,
    561637        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
     
    567643       18,   12,   18,   20,   51,   12,   21,   20,   12,  472,
    568644       18,   18,   12,   12,   23,   24,   23,   24,   25,   23,
    569        25,   51,   30,   25,   30,   32,   41,   55,   32,   41,
    570        47,   47,   57,   24,   25,   58,   67,   55,   69,   71,
    571 
    572        67,   72,   72,   58,   79,  465,   57,   84,   69,   71,
    573        84,  148,  166,  464,  148,  181,  211,  211,  181,  211,
    574        79,  166,  181,  241,  166,  166,   79,  166,  148,  214,
    575       250,  463,  214,  269,  269,  250,  269,  460,  270,  241,
    576       270,  270,  270,  270,  320,  459,  320,  320,  320,  320,
    577       322,  458,  322,  322,  322,  322,  470,  470,  455,  470,
    578       470,  471,  471,  454,  471,  471,  473,  453,  452,  473,
    579       473,  474,  474,  446,  474,  474,  475,  475,  445,  444,
    580       475,  441,  439,  438,  437,  436,  435,  434,  432,  431,
    581       429,  428,  427,  425,  424,  423,  422,  421,  420,  419,
    582 
    583       418,  416,  415,  414,  413,  410,  409,  408,  407,  405,
    584       404,  403,  402,  401,  400,  399,  398,  397,  396,  395,
    585       394,  393,  392,  391,  390,  389,  388,  387,  386,  383,
    586       381,  380,  379,  375,  373,  372,  370,  368,  365,  364,
    587       363,  362,  361,  360,  358,  357,  356,  355,  354,  353,
    588       352,  350,  348,  347,  346,  345,  344,  343,  342,  340,
    589       339,  338,  337,  336,  335,  334,  332,  331,  330,  329,
    590       327,  325,  324,  321,  319,  318,  317,  316,  315,  314,
    591       313,  312,  311,  309,  308,  306,  305,  304,  303,  302,
    592       301,  300,  299,  298,  296,  295,  294,  293,  292,  291,
    593 
    594       289,  287,  286,  285,  283,  282,  281,  280,  279,  278,
    595       276,  275,  274,  273,  272,  271,  267,  266,  265,  264,
    596       263,  262,  260,  258,  257,  255,  254,  252,  251,  249,
    597       248,  246,  245,  244,  243,  242,  239,  238,  237,  236,
    598       235,  232,  231,  229,  228,  227,  226,  225,  224,  223,
    599       222,  221,  220,  219,  217,  216,  213,  212,  210,  207,
    600       206,  205,  203,  202,  201,  200,  199,  198,  197,  196,
    601       195,  194,  193,  192,  191,  190,  189,  187,  186,  185,
    602       184,  183,  182,  180,  179,  178,  177,  176,  175,  174,
    603       171,  170,  169,  167,  165,  164,  163,  162,  161,  160,
    604 
    605       159,  158,  157,  156,  155,  154,  153,  152,  151,  150,
    606       149,  147,  146,  145,  144,  143,  142,  141,  140,  139,
    607       138,  137,  136,  135,  134,  133,  132,  131,  130,  129,
    608       128,  126,  125,  124,  123,  122,  121,  120,  119,  118,
    609       117,  116,  115,  114,  113,  112,  111,  110,  109,  108,
    610       107,  105,  104,  103,  102,  101,  100,   99,   98,   97,
    611        96,   95,   94,   93,   92,   91,   90,   89,   88,   86,
    612        85,   83,   82,   81,   80,   78,   77,   76,   75,   74,
    613        73,   70,   68,   66,   65,   64,   63,   62,   61,   60,
    614        59,   56,   54,   53,   52,   50,   49,   48,   46,   44,
    615 
    616        43,   42,   40,   39,   38,   37,   34,   31,   26,   22,
    617        17,   16,    9,    7,    3,  469,  469,  469,  469,  469,
     645       25,   51,   30,   25,   30,   32,   32,   41,   32,   55,
     646       41,   47,   47,   24,   25,   57,   58,   67,   69,   55,
     647
     648       71,   67,   72,   72,   58,   79,  465,  464,   69,   57,
     649       71,   84,   84,  148,   84,  181,  148,  214,  181,  166,
     650      214,   79,  181,  211,  211,  241,  211,   79,  166,  463,
     651      148,  166,  166,  250,  166,  460,  269,  269,  250,  269,
     652      270,  241,  270,  270,  270,  270,  320,  459,  320,  320,
     653      320,  320,  322,  458,  322,  322,  322,  322,  470,  470,
     654      455,  470,  470,  471,  471,  454,  471,  471,  473,  453,
     655      452,  473,  473,  474,  474,  446,  474,  474,  475,  475,
     656      445,  444,  475,  441,  439,  438,  437,  436,  435,  434,
     657      432,  431,  429,  428,  427,  425,  424,  423,  422,  421,
     658
     659      420,  419,  418,  416,  415,  414,  413,  410,  409,  408,
     660      407,  405,  404,  403,  402,  401,  400,  399,  398,  397,
     661      396,  395,  394,  393,  392,  391,  390,  389,  388,  387,
     662      386,  383,  381,  380,  379,  375,  373,  372,  370,  368,
     663      365,  364,  363,  362,  361,  360,  358,  357,  356,  355,
     664      354,  353,  352,  350,  348,  347,  346,  345,  344,  343,
     665      342,  340,  339,  338,  337,  336,  335,  334,  332,  331,
     666      330,  329,  327,  325,  324,  321,  319,  318,  317,  316,
     667      315,  314,  313,  312,  311,  309,  308,  306,  305,  304,
     668      303,  302,  301,  300,  299,  298,  296,  295,  294,  293,
     669
     670      292,  291,  289,  287,  286,  285,  283,  282,  281,  280,
     671      279,  278,  276,  275,  274,  273,  272,  271,  267,  266,
     672      265,  264,  263,  262,  260,  258,  257,  255,  254,  252,
     673      251,  249,  248,  246,  245,  244,  243,  242,  239,  238,
     674      237,  236,  235,  232,  231,  229,  228,  227,  226,  225,
     675      224,  223,  222,  221,  220,  219,  217,  216,  213,  212,
     676      210,  207,  206,  205,  203,  202,  201,  200,  199,  198,
     677      197,  196,  195,  194,  193,  192,  191,  190,  189,  187,
     678      186,  185,  184,  183,  182,  180,  179,  178,  177,  176,
     679      175,  174,  171,  170,  169,  167,  165,  164,  163,  162,
     680
     681      161,  160,  159,  158,  157,  156,  155,  154,  153,  152,
     682      151,  150,  149,  147,  146,  145,  144,  143,  142,  141,
     683      140,  139,  138,  137,  136,  135,  134,  133,  132,  131,
     684      130,  129,  128,  126,  125,  124,  123,  122,  121,  120,
     685      119,  118,  117,  116,  115,  114,  113,  112,  111,  110,
     686      109,  108,  107,  105,  104,  103,  102,  101,  100,   99,
     687       98,   97,   96,   95,   94,   93,   92,   91,   90,   89,
     688       88,   86,   85,   83,   82,   81,   80,   78,   77,   76,
     689       75,   74,   73,   70,   68,   66,   65,   64,   63,   62,
     690       61,   60,   59,   56,   54,   53,   52,   50,   49,   48,
     691
     692       46,   44,   43,   42,   40,   39,   38,   37,   34,   31,
     693       26,   22,   17,   16,    9,    7,    3,  469,  469,  469,
    618694      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
    619695      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
    620696      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
    621       469
     697      469,  469,  469
    622698    } ;
    623699
    624700static yy_state_type yy_last_accepting_state;
    625701static char *yy_last_accepting_cpos;
     702
     703extern int yy_flex_debug;
     704int yy_flex_debug = 0;
    626705
    627706/* The intent behind this definition is that it'll catch
     
    634713char *yytext;
    635714#line 1 "rclex.l"
    636 #define INITIAL 0
    637715#line 2 "rclex.l"
    638 /* Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
     716/* Copyright 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
    639717   Written by Ian Lance Taylor, Cygnus Support.
    640718
     
    663741#include "bucomm.h"
    664742#include "libiberty.h"
     743#include "safe-ctype.h"
    665744#include "windres.h"
    666745#include "rcparse.h"
    667746
    668 #include <ctype.h>
    669747#include <assert.h>
    670748
     
    707785static char *get_string PARAMS ((int));
    708786
    709 #line 710 "lex.yy.c"
     787#line 788 "lex.yy.c"
     788
     789#define INITIAL 0
     790
     791/* Special case for "unistd.h", since it is non-ANSI. We include it way
     792 * down here because we want the user's section 1 to have been scanned first.
     793 * The user has a chance to override it with an option.
     794 */
     795#include <unistd.h>
     796
     797#ifndef YY_EXTRA_TYPE
     798#define YY_EXTRA_TYPE void *
     799#endif
    710800
    711801/* Macros after this point can all be overridden by user definitions in
     
    715805#ifndef YY_SKIP_YYWRAP
    716806#ifdef __cplusplus
    717 extern "C" int yywrap YY_PROTO(( void ));
     807extern "C" int yywrap (void );
    718808#else
    719 extern int yywrap YY_PROTO(( void ));
    720 #endif
    721 #endif
    722 
    723 #ifndef YY_NO_UNPUT
    724 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
    725 #endif
    726 
     809extern int yywrap (void );
     810#endif
     811#endif
     812
     813    static void yyunput (int c,char *buf_ptr  );
     814   
    727815#ifndef yytext_ptr
    728 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
     816static void yy_flex_strncpy (char *,yyconst char *,int );
    729817#endif
    730818
    731819#ifdef YY_NEED_STRLEN
    732 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
     820static int yy_flex_strlen (yyconst char * );
    733821#endif
    734822
    735823#ifndef YY_NO_INPUT
     824
    736825#ifdef __cplusplus
    737 static int yyinput YY_PROTO(( void ));
     826static int yyinput (void );
    738827#else
    739 static int input YY_PROTO(( void ));
    740 #endif
    741 #endif
    742 
    743 #if YY_STACK_USED
    744 static int yy_start_stack_ptr = 0;
    745 static int yy_start_stack_depth = 0;
    746 static int *yy_start_stack = 0;
    747 #ifndef YY_NO_PUSH_STATE
    748 static void yy_push_state YY_PROTO(( int new_state ));
    749 #endif
    750 #ifndef YY_NO_POP_STATE
    751 static void yy_pop_state YY_PROTO(( void ));
    752 #endif
    753 #ifndef YY_NO_TOP_STATE
    754 static int yy_top_state YY_PROTO(( void ));
    755 #endif
    756 
    757 #else
    758 #define YY_NO_PUSH_STATE 1
    759 #define YY_NO_POP_STATE 1
    760 #define YY_NO_TOP_STATE 1
    761 #endif
    762 
    763 #ifdef YY_MALLOC_DECL
    764 YY_MALLOC_DECL
    765 #else
    766 #if __STDC__
    767 #ifndef __cplusplus
    768 #include <stdlib.h>
    769 #endif
    770 #else
    771 /* Just try to get by without declaring the routines.  This will fail
    772  * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
    773  * or sizeof(void*) != sizeof(int).
    774  */
    775 #endif
     828static int input (void );
     829#endif
     830
    776831#endif
    777832
     
    782837
    783838/* Copy whatever the last rule matched to the standard output. */
    784 
    785839#ifndef ECHO
    786840/* This used to be an fputs(), but since the string might contain NUL's,
     
    795849#ifndef YY_INPUT
    796850#define YY_INPUT(buf,result,max_size) \
    797         if ( yy_current_buffer->yy_is_interactive ) \
     851        if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
    798852                { \
    799                 int c = '*', n; \
     853                int c = '*'; \
     854                size_t n; \
    800855                for ( n = 0; n < max_size && \
    801856                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
     
    807862                result = n; \
    808863                } \
    809         else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
    810                   && ferror( yyin ) ) \
    811                 YY_FATAL_ERROR( "input in flex scanner failed" );
     864        else \
     865                { \
     866                errno=0; \
     867                while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
     868                        { \
     869                        if( errno != EINTR) \
     870                                { \
     871                                YY_FATAL_ERROR( "input in flex scanner failed" ); \
     872                                break; \
     873                                } \
     874                        errno=0; \
     875                        clearerr(yyin); \
     876                        } \
     877                }\
     878\
     879
    812880#endif
    813881
     
    830898#endif
    831899
     900/* end tables serialization structures and prototypes */
     901
    832902/* Default declaration of generated scanner - a define so the user can
    833903 * easily add parameters.
    834904 */
    835905#ifndef YY_DECL
    836 #define YY_DECL int yylex YY_PROTO(( void ))
    837 #endif
     906#define YY_DECL_IS_OURS 1
     907
     908extern int yylex (void);
     909
     910#define YY_DECL int yylex (void)
     911#endif /* !YY_DECL */
    838912
    839913/* Code executed at the beginning of each rule, after yytext and yyleng
     
    852926        YY_USER_ACTION
    853927
     928/** The main scanner function which does all the work.
     929 */
    854930YY_DECL
    855         {
     931{
    856932        register yy_state_type yy_current_state;
    857933        register char *yy_cp, *yy_bp;
    858934        register int yy_act;
    859 
     935   
    860936#line 75 "rclex.l"
    861937
    862938
    863 #line 864 "lex.yy.c"
    864 
    865         if ( yy_init )
     939#line 940 "lex.yy.c"
     940
     941        if ( (yy_init) )
    866942                {
    867                 yy_init = 0;
     943                (yy_init) = 0;
    868944
    869945#ifdef YY_USER_INIT
     
    871947#endif
    872948
    873                 if ( ! yy_start )
    874                         yy_start = 1;   /* first start state */
     949                if ( ! (yy_start) )
     950                        (yy_start) = 1; /* first start state */
    875951
    876952                if ( ! yyin )
     
    880956                        yyout = stdout;
    881957
    882                 if ( ! yy_current_buffer )
    883                         yy_current_buffer =
    884                                 yy_create_buffer( yyin, YY_BUF_SIZE );
    885 
    886                 yy_load_buffer_state();
     958                if ( ! YY_CURRENT_BUFFER ) {
     959                        yyensure_buffer_stack ();
     960                        YY_CURRENT_BUFFER_LVALUE =
     961                                yy_create_buffer(yyin,YY_BUF_SIZE );
     962                }
     963
     964                yy_load_buffer_state( );
    887965                }
    888966
    889967        while ( 1 )             /* loops until end-of-file is reached */
    890968                {
    891                 yy_cp = yy_c_buf_p;
     969                yy_cp = (yy_c_buf_p);
    892970
    893971                /* Support of yytext. */
    894                 *yy_cp = yy_hold_char;
     972                *yy_cp = (yy_hold_char);
    895973
    896974                /* yy_bp points to the position in yy_ch_buf of the start of
     
    899977                yy_bp = yy_cp;
    900978
    901                 yy_current_state = yy_start;
     979                yy_current_state = (yy_start);
    902980yy_match:
    903981                do
     
    906984                        if ( yy_accept[yy_current_state] )
    907985                                {
    908                                 yy_last_accepting_state = yy_current_state;
    909                                 yy_last_accepting_cpos = yy_cp;
     986                                (yy_last_accepting_state) = yy_current_state;
     987                                (yy_last_accepting_cpos) = yy_cp;
    910988                                }
    911989                        while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
     
    918996                        ++yy_cp;
    919997                        }
    920                 while ( yy_base[yy_current_state] != 516 );
     998                while ( yy_base[yy_current_state] != 518 );
    921999
    9221000yy_find_action:
     
    9241002                if ( yy_act == 0 )
    9251003                        { /* have to back up */
    926                         yy_cp = yy_last_accepting_cpos;
    927                         yy_current_state = yy_last_accepting_state;
     1004                        yy_cp = (yy_last_accepting_cpos);
     1005                        yy_current_state = (yy_last_accepting_state);
    9281006                        yy_act = yy_accept[yy_current_state];
    9291007                        }
     
    9311009                YY_DO_BEFORE_ACTION;
    9321010
    933 
    9341011do_action:      /* This label is used only to access EOF actions. */
    935 
    9361012
    9371013                switch ( yy_act )
     
    9391015                        case 0: /* must back up */
    9401016                        /* undo the effects of YY_DO_BEFORE_ACTION */
    941                         *yy_cp = yy_hold_char;
    942                         yy_cp = yy_last_accepting_cpos;
    943                         yy_current_state = yy_last_accepting_state;
     1017                        *yy_cp = (yy_hold_char);
     1018                        yy_cp = (yy_last_accepting_cpos);
     1019                        yy_current_state = (yy_last_accepting_state);
    9441020                        goto yy_find_action;
    9451021
     
    13251401        YY_BREAK
    13261402case 77:
     1403/* rule 77 can match eol */
    13271404YY_RULE_SETUP
    13281405#line 154 "rclex.l"
     
    13821459        YY_BREAK
    13831460case 81:
     1461/* rule 81 can match eol */
    13841462YY_RULE_SETUP
    13851463#line 199 "rclex.l"
     
    14211499        YY_BREAK
    14221500case 83:
     1501/* rule 83 can match eol */
    14231502YY_RULE_SETUP
    14241503#line 232 "rclex.l"
     
    14401519ECHO;
    14411520        YY_BREAK
    1442 #line 1443 "lex.yy.c"
     1521#line 1522 "lex.yy.c"
    14431522case YY_STATE_EOF(INITIAL):
    14441523        yyterminate();
     
    14471526                {
    14481527                /* Amount of text matched not including the EOB char. */
    1449                 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
     1528                int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
    14501529
    14511530                /* Undo the effects of YY_DO_BEFORE_ACTION. */
    1452                 *yy_cp = yy_hold_char;
     1531                *yy_cp = (yy_hold_char);
    14531532                YY_RESTORE_YY_MORE_OFFSET
    14541533
    1455                 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
     1534                if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
    14561535                        {
    14571536                        /* We're scanning a new file or input source.  It's
     
    14591538                         * just pointed yyin at a new source and called
    14601539                         * yylex().  If so, then we have to assure
    1461                          * consistency between yy_current_buffer and our
     1540                         * consistency between YY_CURRENT_BUFFER and our
    14621541                         * globals.  Here is the right place to do so, because
    14631542                         * this is the first action (other than possibly a
    14641543                         * back-up) that will match for the new input source.
    14651544                         */
    1466                         yy_n_chars = yy_current_buffer->yy_n_chars;
    1467                         yy_current_buffer->yy_input_file = yyin;
    1468                         yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
     1545                        (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
     1546                        YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
     1547                        YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
    14691548                        }
    14701549
     
    14761555                 * in input().
    14771556                 */
    1478                 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
     1557                if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
    14791558                        { /* This was really a NUL. */
    14801559                        yy_state_type yy_next_state;
    14811560
    1482                         yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
    1483 
    1484                         yy_current_state = yy_get_previous_state();
     1561                        (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
     1562
     1563                        yy_current_state = yy_get_previous_state(  );
    14851564
    14861565                        /* Okay, we're now positioned to make the NUL
     
    14951574                        yy_next_state = yy_try_NUL_trans( yy_current_state );
    14961575
    1497                         yy_bp = yytext_ptr + YY_MORE_ADJ;
     1576                        yy_bp = (yytext_ptr) + YY_MORE_ADJ;
    14981577
    14991578                        if ( yy_next_state )
    15001579                                {
    15011580                                /* Consume the NUL. */
    1502                                 yy_cp = ++yy_c_buf_p;
     1581                                yy_cp = ++(yy_c_buf_p);
    15031582                                yy_current_state = yy_next_state;
    15041583                                goto yy_match;
     
    15071586                        else
    15081587                                {
    1509                                 yy_cp = yy_c_buf_p;
     1588                                yy_cp = (yy_c_buf_p);
    15101589                                goto yy_find_action;
    15111590                                }
    15121591                        }
    15131592
    1514                 else switch ( yy_get_next_buffer() )
     1593                else switch ( yy_get_next_buffer(  ) )
    15151594                        {
    15161595                        case EOB_ACT_END_OF_FILE:
    15171596                                {
    1518                                 yy_did_buffer_switch_on_eof = 0;
    1519 
    1520                                 if ( yywrap() )
     1597                                (yy_did_buffer_switch_on_eof) = 0;
     1598
     1599                                if ( yywrap( ) )
    15211600                                        {
    15221601                                        /* Note: because we've taken care in
     
    15291608                                         * YY_NULL will get returned.
    15301609                                         */
    1531                                         yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
     1610                                        (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
    15321611
    15331612                                        yy_act = YY_STATE_EOF(YY_START);
     
    15371616                                else
    15381617                                        {
    1539                                         if ( ! yy_did_buffer_switch_on_eof )
     1618                                        if ( ! (yy_did_buffer_switch_on_eof) )
    15401619                                                YY_NEW_FILE;
    15411620                                        }
     
    15441623
    15451624                        case EOB_ACT_CONTINUE_SCAN:
    1546                                 yy_c_buf_p =
    1547                                         yytext_ptr + yy_amount_of_matched_text;
    1548 
    1549                                 yy_current_state = yy_get_previous_state();
    1550 
    1551                                 yy_cp = yy_c_buf_p;
    1552                                 yy_bp = yytext_ptr + YY_MORE_ADJ;
     1625                                (yy_c_buf_p) =
     1626                                        (yytext_ptr) + yy_amount_of_matched_text;
     1627
     1628                                yy_current_state = yy_get_previous_state(  );
     1629
     1630                                yy_cp = (yy_c_buf_p);
     1631                                yy_bp = (yytext_ptr) + YY_MORE_ADJ;
    15531632                                goto yy_match;
    15541633
    15551634                        case EOB_ACT_LAST_MATCH:
    1556                                 yy_c_buf_p =
    1557                                 &yy_current_buffer->yy_ch_buf[yy_n_chars];
    1558 
    1559                                 yy_current_state = yy_get_previous_state();
    1560 
    1561                                 yy_cp = yy_c_buf_p;
    1562                                 yy_bp = yytext_ptr + YY_MORE_ADJ;
     1635                                (yy_c_buf_p) =
     1636                                &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
     1637
     1638                                yy_current_state = yy_get_previous_state(  );
     1639
     1640                                yy_cp = (yy_c_buf_p);
     1641                                yy_bp = (yytext_ptr) + YY_MORE_ADJ;
    15631642                                goto yy_find_action;
    15641643                        }
     
    15711650        } /* end of action switch */
    15721651                } /* end of scanning one token */
    1573         } /* end of yylex */
    1574 
     1652} /* end of yylex */
    15751653
    15761654/* yy_get_next_buffer - try to read in a new buffer
     
    15811659 *      EOB_ACT_END_OF_FILE - end of file
    15821660 */
    1583 
    1584 static int yy_get_next_buffer()
    1585         {
    1586         register char *dest = yy_current_buffer->yy_ch_buf;
    1587         register char *source = yytext_ptr;
     1661static int yy_get_next_buffer (void)
     1662{
     1663        register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
     1664        register char *source = (yytext_ptr);
    15881665        register int number_to_move, i;
    15891666        int ret_val;
    15901667
    1591         if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
     1668        if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
    15921669                YY_FATAL_ERROR(
    15931670                "fatal flex scanner internal error--end of buffer missed" );
    15941671
    1595         if ( yy_current_buffer->yy_fill_buffer == 0 )
     1672        if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
    15961673                { /* Don't try to fill the buffer, so this is an EOF. */
    1597                 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
     1674                if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
    15981675                        {
    15991676                        /* We matched a single character, the EOB, so
     
    16151692
    16161693        /* First move last chars to start of buffer. */
    1617         number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
     1694        number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
    16181695
    16191696        for ( i = 0; i < number_to_move; ++i )
    16201697                *(dest++) = *(source++);
    16211698
    1622         if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
     1699        if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
    16231700                /* don't do the read, it's not guaranteed to return an EOF,
    16241701                 * just force an EOF
    16251702                 */
    1626                 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
     1703                YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
    16271704
    16281705        else
    16291706                {
    1630                 int num_to_read =
    1631                         yy_current_buffer->yy_buf_size - number_to_move - 1;
     1707                        size_t num_to_read =
     1708                        YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
    16321709
    16331710                while ( num_to_read <= 0 )
    16341711                        { /* Not enough room in the buffer - grow it. */
    1635 #ifdef YY_USES_REJECT
    1636                         YY_FATAL_ERROR(
    1637 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
    1638 #else
    16391712
    16401713                        /* just a shorter name for the current buffer */
    1641                         YY_BUFFER_STATE b = yy_current_buffer;
     1714                        YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
    16421715
    16431716                        int yy_c_buf_p_offset =
    1644                                 (int) (yy_c_buf_p - b->yy_ch_buf);
     1717                                (int) ((yy_c_buf_p) - b->yy_ch_buf);
    16451718
    16461719                        if ( b->yy_is_our_buffer )
     
    16551728                                b->yy_ch_buf = (char *)
    16561729                                        /* Include room in for 2 EOB chars. */
    1657                                         yy_flex_realloc( (void *) b->yy_ch_buf,
    1658                                                          b->yy_buf_size + 2 );
     1730                                        yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2  );
    16591731                                }
    16601732                        else
     
    16661738                                "fatal error - scanner input buffer overflow" );
    16671739
    1668                         yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
    1669 
    1670                         num_to_read = yy_current_buffer->yy_buf_size -
     1740                        (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
     1741
     1742                        num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
    16711743                                                number_to_move - 1;
    1672 #endif
     1744
    16731745                        }
    16741746
     
    16771749
    16781750                /* Read in more data. */
    1679                 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
    1680                         yy_n_chars, num_to_read );
    1681 
    1682                 yy_current_buffer->yy_n_chars = yy_n_chars;
     1751                YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
     1752                        (yy_n_chars), num_to_read );
     1753
     1754                YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
    16831755                }
    16841756
    1685         if ( yy_n_chars == 0 )
     1757        if ( (yy_n_chars) == 0 )
    16861758                {
    16871759                if ( number_to_move == YY_MORE_ADJ )
    16881760                        {
    16891761                        ret_val = EOB_ACT_END_OF_FILE;
    1690                         yyrestart( yyin );
     1762                        yyrestart(yyin );
    16911763                        }
    16921764
     
    16941766                        {
    16951767                        ret_val = EOB_ACT_LAST_MATCH;
    1696                         yy_current_buffer->yy_buffer_status =
     1768                        YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
    16971769                                YY_BUFFER_EOF_PENDING;
    16981770                        }
     
    17021774                ret_val = EOB_ACT_CONTINUE_SCAN;
    17031775
    1704         yy_n_chars += number_to_move;
    1705         yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
    1706         yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
    1707 
    1708         yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
     1776        (yy_n_chars) += number_to_move;
     1777        YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
     1778        YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
     1779
     1780        (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
    17091781
    17101782        return ret_val;
    1711         }
    1712 
     1783}
    17131784
    17141785/* yy_get_previous_state - get the state just before the EOB char was reached */
    17151786
    1716 static yy_state_type yy_get_previous_state()
    1717         {
     1787    static yy_state_type yy_get_previous_state (void)
     1788{
    17181789        register yy_state_type yy_current_state;
    17191790        register char *yy_cp;
    1720 
    1721         yy_current_state = yy_start;
    1722 
    1723         for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
     1791   
     1792        yy_current_state = (yy_start);
     1793
     1794        for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
    17241795                {
    17251796                register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
    17261797                if ( yy_accept[yy_current_state] )
    17271798                        {
    1728                         yy_last_accepting_state = yy_current_state;
    1729                         yy_last_accepting_cpos = yy_cp;
     1799                        (yy_last_accepting_state) = yy_current_state;
     1800                        (yy_last_accepting_cpos) = yy_cp;
    17301801                        }
    17311802                while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
     
    17391810
    17401811        return yy_current_state;
    1741         }
    1742 
     1812}
    17431813
    17441814/* yy_try_NUL_trans - try to make a transition on the NUL character
     
    17471817 *      next_state = yy_try_NUL_trans( current_state );
    17481818 */
    1749 
    1750 #ifdef YY_USE_PROTOS
    1751 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
    1752 #else
    1753 static yy_state_type yy_try_NUL_trans( yy_current_state )
    1754 yy_state_type yy_current_state;
    1755 #endif
    1756         {
     1819    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
     1820{
    17571821        register int yy_is_jam;
    1758         register char *yy_cp = yy_c_buf_p;
     1822        register char *yy_cp = (yy_c_buf_p);
    17591823
    17601824        register YY_CHAR yy_c = 1;
    17611825        if ( yy_accept[yy_current_state] )
    17621826                {
    1763                 yy_last_accepting_state = yy_current_state;
    1764                 yy_last_accepting_cpos = yy_cp;
     1827                (yy_last_accepting_state) = yy_current_state;
     1828                (yy_last_accepting_cpos) = yy_cp;
    17651829                }
    17661830        while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
     
    17741838
    17751839        return yy_is_jam ? 0 : yy_current_state;
    1776         }
    1777 
    1778 
    1779 #ifndef YY_NO_UNPUT
    1780 #ifdef YY_USE_PROTOS
    1781 static void yyunput( int c, register char *yy_bp )
    1782 #else
    1783 static void yyunput( c, yy_bp )
    1784 int c;
    1785 register char *yy_bp;
    1786 #endif
    1787         {
    1788         register char *yy_cp = yy_c_buf_p;
     1840}
     1841
     1842    static void yyunput (int c, register char * yy_bp )
     1843{
     1844        register char *yy_cp;
     1845   
     1846    yy_cp = (yy_c_buf_p);
    17891847
    17901848        /* undo effects of setting up yytext */
    1791         *yy_cp = yy_hold_char;
    1792 
    1793         if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
     1849        *yy_cp = (yy_hold_char);
     1850
     1851        if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
    17941852                { /* need to shift things up to make room */
    17951853                /* +2 for EOB chars. */
    1796                 register int number_to_move = yy_n_chars + 2;
    1797                 register char *dest = &yy_current_buffer->yy_ch_buf[
    1798                                         yy_current_buffer->yy_buf_size + 2];
     1854                register int number_to_move = (yy_n_chars) + 2;
     1855                register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
     1856                                        YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
    17991857                register char *source =
    1800                                 &yy_current_buffer->yy_ch_buf[number_to_move];
    1801 
    1802                 while ( source > yy_current_buffer->yy_ch_buf )
     1858                                &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
     1859
     1860                while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
    18031861                        *--dest = *--source;
    18041862
    18051863                yy_cp += (int) (dest - source);
    18061864                yy_bp += (int) (dest - source);
    1807                 yy_current_buffer->yy_n_chars =
    1808                         yy_n_chars = yy_current_buffer->yy_buf_size;
    1809 
    1810                 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
     1865                YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
     1866                        (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
     1867
     1868                if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
    18111869                        YY_FATAL_ERROR( "flex scanner push-back overflow" );
    18121870                }
     
    18141872        *--yy_cp = (char) c;
    18151873
    1816 
    1817         yytext_ptr = yy_bp;
    1818         yy_hold_char = *yy_cp;
    1819         yy_c_buf_p = yy_cp;
    1820         }
    1821 #endif  /* ifndef YY_NO_UNPUT */
    1822 
    1823 
     1874        (yytext_ptr) = yy_bp;
     1875        (yy_hold_char) = *yy_cp;
     1876        (yy_c_buf_p) = yy_cp;
     1877}
     1878
     1879#ifndef YY_NO_INPUT
    18241880#ifdef __cplusplus
    1825 static int yyinput()
     1881    static int yyinput (void)
    18261882#else
    1827 static int input()
    1828 #endif
    1829         {
     1883    static int input  (void)
     1884#endif
     1885
     1886{
    18301887        int c;
    1831 
    1832         *yy_c_buf_p = yy_hold_char;
    1833 
    1834         if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
     1888   
     1889        *(yy_c_buf_p) = (yy_hold_char);
     1890
     1891        if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
    18351892                {
    18361893                /* yy_c_buf_p now points to the character we want to return.
     
    18381895                 * valid NUL; if not, then we've hit the end of the buffer.
    18391896                 */
    1840                 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
     1897                if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
    18411898                        /* This was really a NUL. */
    1842                         *yy_c_buf_p = '\0';
     1899                        *(yy_c_buf_p) = '\0';
    18431900
    18441901                else
    18451902                        { /* need more input */
    1846                         int offset = yy_c_buf_p - yytext_ptr;
    1847                         ++yy_c_buf_p;
    1848 
    1849                         switch ( yy_get_next_buffer() )
     1903                        int offset = (yy_c_buf_p) - (yytext_ptr);
     1904                        ++(yy_c_buf_p);
     1905
     1906                        switch ( yy_get_next_buffer(  ) )
    18501907                                {
    18511908                                case EOB_ACT_LAST_MATCH:
     
    18611918
    18621919                                        /* Reset buffer status. */
    1863                                         yyrestart( yyin );
    1864 
    1865                                         /* fall through */
     1920                                        yyrestart(yyin );
     1921
     1922                                        /*FALLTHROUGH*/
    18661923
    18671924                                case EOB_ACT_END_OF_FILE:
    18681925                                        {
    1869                                         if ( yywrap() )
     1926                                        if ( yywrap( ) )
    18701927                                                return EOF;
    18711928
    1872                                         if ( ! yy_did_buffer_switch_on_eof )
     1929                                        if ( ! (yy_did_buffer_switch_on_eof) )
    18731930                                                YY_NEW_FILE;
    18741931#ifdef __cplusplus
     
    18801937
    18811938                                case EOB_ACT_CONTINUE_SCAN:
    1882                                         yy_c_buf_p = yytext_ptr + offset;
     1939                                        (yy_c_buf_p) = (yytext_ptr) + offset;
    18831940                                        break;
    18841941                                }
     
    18861943                }
    18871944
    1888         c = *(unsigned char *) yy_c_buf_p;      /* cast for 8-bit char's */
    1889         *yy_c_buf_p = '\0';     /* preserve yytext */
    1890         yy_hold_char = *++yy_c_buf_p;
    1891 
     1945        c = *(unsigned char *) (yy_c_buf_p);    /* cast for 8-bit char's */
     1946        *(yy_c_buf_p) = '\0';   /* preserve yytext */
     1947        (yy_hold_char) = *++(yy_c_buf_p);
    18921948
    18931949        return c;
     1950}
     1951#endif  /* ifndef YY_NO_INPUT */
     1952
     1953/** Immediately switch to a different input stream.
     1954 * @param input_file A readable stream.
     1955 *
     1956 * @note This function does not reset the start condition to @c INITIAL .
     1957 */
     1958    void yyrestart  (FILE * input_file )
     1959{
     1960   
     1961        if ( ! YY_CURRENT_BUFFER ){
     1962        yyensure_buffer_stack ();
     1963                YY_CURRENT_BUFFER_LVALUE =
     1964            yy_create_buffer(yyin,YY_BUF_SIZE );
    18941965        }
    18951966
    1896 
    1897 #ifdef YY_USE_PROTOS
    1898 void yyrestart( FILE *input_file )
    1899 #else
    1900 void yyrestart( input_file )
    1901 FILE *input_file;
    1902 #endif
    1903         {
    1904         if ( ! yy_current_buffer )
    1905                 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
    1906 
    1907         yy_init_buffer( yy_current_buffer, input_file );
    1908         yy_load_buffer_state();
    1909         }
    1910 
    1911 
    1912 #ifdef YY_USE_PROTOS
    1913 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
    1914 #else
    1915 void yy_switch_to_buffer( new_buffer )
    1916 YY_BUFFER_STATE new_buffer;
    1917 #endif
    1918         {
    1919         if ( yy_current_buffer == new_buffer )
     1967        yy_init_buffer(YY_CURRENT_BUFFER,input_file );
     1968        yy_load_buffer_state( );
     1969}
     1970
     1971/** Switch to a different input buffer.
     1972 * @param new_buffer The new input buffer.
     1973 *
     1974 */
     1975    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
     1976{
     1977   
     1978        /* TODO. We should be able to replace this entire function body
     1979         * with
     1980         *              yypop_buffer_state();
     1981         *              yypush_buffer_state(new_buffer);
     1982     */
     1983        yyensure_buffer_stack ();
     1984        if ( YY_CURRENT_BUFFER == new_buffer )
    19201985                return;
    19211986
    1922         if ( yy_current_buffer )
     1987        if ( YY_CURRENT_BUFFER )
    19231988                {
    19241989                /* Flush out information for old buffer. */
    1925                 *yy_c_buf_p = yy_hold_char;
    1926                 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
    1927                 yy_current_buffer->yy_n_chars = yy_n_chars;
     1990                *(yy_c_buf_p) = (yy_hold_char);
     1991                YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
     1992                YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
    19281993                }
    19291994
    1930         yy_current_buffer = new_buffer;
    1931         yy_load_buffer_state();
     1995        YY_CURRENT_BUFFER_LVALUE = new_buffer;
     1996        yy_load_buffer_state( );
    19321997
    19331998        /* We don't actually know whether we did this switch during
     
    19362001         * to go ahead and always set it.
    19372002         */
    1938         yy_did_buffer_switch_on_eof = 1;
    1939         }
    1940 
    1941 
    1942 #ifdef YY_USE_PROTOS
    1943 void yy_load_buffer_state( void )
    1944 #else
    1945 void yy_load_buffer_state()
    1946 #endif
    1947         {
    1948         yy_n_chars = yy_current_buffer->yy_n_chars;
    1949         yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
    1950         yyin = yy_current_buffer->yy_input_file;
    1951         yy_hold_char = *yy_c_buf_p;
    1952         }
    1953 
    1954 
    1955 #ifdef YY_USE_PROTOS
    1956 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
    1957 #else
    1958 YY_BUFFER_STATE yy_create_buffer( file, size )
    1959 FILE *file;
    1960 int size;
    1961 #endif
    1962         {
     2003        (yy_did_buffer_switch_on_eof) = 1;
     2004}
     2005
     2006static void yy_load_buffer_state  (void)
     2007{
     2008        (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
     2009        (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
     2010        yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
     2011        (yy_hold_char) = *(yy_c_buf_p);
     2012}
     2013
     2014/** Allocate and initialize an input buffer state.
     2015 * @param file A readable stream.
     2016 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
     2017 *
     2018 * @return the allocated buffer state.
     2019 */
     2020    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
     2021{
    19632022        YY_BUFFER_STATE b;
    1964 
    1965         b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
     2023   
     2024        b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
    19662025        if ( ! b )
    19672026                YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
     
    19722031         * we need to put in 2 end-of-buffer characters.
    19732032         */
    1974         b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
     2033        b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
    19752034        if ( ! b->yy_ch_buf )
    19762035                YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
     
    19782037        b->yy_is_our_buffer = 1;
    19792038
    1980         yy_init_buffer( b, file );
     2039        yy_init_buffer(b,file );
    19812040
    19822041        return b;
    1983         }
    1984 
    1985 
    1986 #ifdef YY_USE_PROTOS
    1987 void yy_delete_buffer( YY_BUFFER_STATE b )
    1988 #else
    1989 void yy_delete_buffer( b )
    1990 YY_BUFFER_STATE b;
    1991 #endif
    1992         {
     2042}
     2043
     2044/** Destroy the buffer.
     2045 * @param b a buffer created with yy_create_buffer()
     2046 *
     2047 */
     2048    void yy_delete_buffer (YY_BUFFER_STATE  b )
     2049{
     2050   
    19932051        if ( ! b )
    19942052                return;
    19952053
    1996         if ( b == yy_current_buffer )
    1997                 yy_current_buffer = (YY_BUFFER_STATE) 0;
     2054        if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
     2055                YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
    19982056
    19992057        if ( b->yy_is_our_buffer )
    2000                 yy_flex_free( (void *) b->yy_ch_buf );
    2001 
    2002         yy_flex_free( (void *) b );
    2003         }
    2004 
    2005 
    2006 #ifndef YY_ALWAYS_INTERACTIVE
    2007 #ifndef YY_NEVER_INTERACTIVE
    2008 extern int isatty YY_PROTO(( int ));
    2009 #endif
    2010 #endif
    2011 
    2012 #ifdef YY_USE_PROTOS
    2013 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
    2014 #else
    2015 void yy_init_buffer( b, file )
    2016 YY_BUFFER_STATE b;
    2017 FILE *file;
    2018 #endif
    2019 
    2020 
    2021         {
    2022         yy_flush_buffer( b );
     2058                yyfree((void *) b->yy_ch_buf  );
     2059
     2060        yyfree((void *) b  );
     2061}
     2062
     2063#ifndef __cplusplus
     2064extern int isatty (int );
     2065#endif /* __cplusplus */
     2066   
     2067/* Initializes or reinitializes a buffer.
     2068 * This function is sometimes called more than once on the same buffer,
     2069 * such as during a yyrestart() or at EOF.
     2070 */
     2071    static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
     2072
     2073{
     2074        int oerrno = errno;
     2075   
     2076        yy_flush_buffer(b );
    20232077
    20242078        b->yy_input_file = file;
    20252079        b->yy_fill_buffer = 1;
    20262080
    2027 #if YY_ALWAYS_INTERACTIVE
    2028         b->yy_is_interactive = 1;
    2029 #else
    2030 #if YY_NEVER_INTERACTIVE
    2031         b->yy_is_interactive = 0;
    2032 #else
    2033         b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
    2034 #endif
    2035 #endif
    2036         }
    2037 
    2038 
    2039 #ifdef YY_USE_PROTOS
    2040 void yy_flush_buffer( YY_BUFFER_STATE b )
    2041 #else
    2042 void yy_flush_buffer( b )
    2043 YY_BUFFER_STATE b;
    2044 #endif
    2045 
    2046         {
    2047         if ( ! b )
     2081    /* If b is the current buffer, then yy_init_buffer was _probably_
     2082     * called from yyrestart() or through yy_get_next_buffer.
     2083     * In that case, we don't want to reset the lineno or column.
     2084     */
     2085    if (b != YY_CURRENT_BUFFER){
     2086        b->yy_bs_lineno = 1;
     2087        b->yy_bs_column = 0;
     2088    }
     2089
     2090        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
     2091   
     2092        errno = oerrno;
     2093}
     2094
     2095/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
     2096 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
     2097 *
     2098 */
     2099    void yy_flush_buffer (YY_BUFFER_STATE  b )
     2100{
     2101        if ( ! b )
    20482102                return;
    20492103
     
    20622116        b->yy_buffer_status = YY_BUFFER_NEW;
    20632117
    2064         if ( b == yy_current_buffer )
    2065                 yy_load_buffer_state();
     2118        if ( b == YY_CURRENT_BUFFER )
     2119                yy_load_buffer_state( );
     2120}
     2121
     2122/** Pushes the new state onto the stack. The new state becomes
     2123 *  the current state. This function will allocate the stack
     2124 *  if necessary.
     2125 *  @param new_buffer The new state.
     2126 * 
     2127 */
     2128void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
     2129{
     2130        if (new_buffer == NULL)
     2131                return;
     2132
     2133        yyensure_buffer_stack();
     2134
     2135        /* This block is copied from yy_switch_to_buffer. */
     2136        if ( YY_CURRENT_BUFFER )
     2137                {
     2138                /* Flush out information for old buffer. */
     2139                *(yy_c_buf_p) = (yy_hold_char);
     2140                YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
     2141                YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
     2142                }
     2143
     2144        /* Only push if top exists. Otherwise, replace top. */
     2145        if (YY_CURRENT_BUFFER)
     2146                (yy_buffer_stack_top)++;
     2147        YY_CURRENT_BUFFER_LVALUE = new_buffer;
     2148
     2149        /* copied from yy_switch_to_buffer. */
     2150        yy_load_buffer_state( );
     2151        (yy_did_buffer_switch_on_eof) = 1;
     2152}
     2153
     2154/** Removes and deletes the top of the stack, if present.
     2155 *  The next element becomes the new top.
     2156 * 
     2157 */
     2158void yypop_buffer_state (void)
     2159{
     2160        if (!YY_CURRENT_BUFFER)
     2161                return;
     2162
     2163        yy_delete_buffer(YY_CURRENT_BUFFER );
     2164        YY_CURRENT_BUFFER_LVALUE = NULL;
     2165        if ((yy_buffer_stack_top) > 0)
     2166                --(yy_buffer_stack_top);
     2167
     2168        if (YY_CURRENT_BUFFER) {
     2169                yy_load_buffer_state( );
     2170                (yy_did_buffer_switch_on_eof) = 1;
    20662171        }
    2067 
    2068 
    2069 #ifndef YY_NO_SCAN_BUFFER
    2070 #ifdef YY_USE_PROTOS
    2071 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
    2072 #else
    2073 YY_BUFFER_STATE yy_scan_buffer( base, size )
    2074 char *base;
    2075 yy_size_t size;
    2076 #endif
    2077         {
     2172}
     2173
     2174/* Allocates the stack if it does not exist.
     2175 *  Guarantees space for at least one push.
     2176 */
     2177static void yyensure_buffer_stack (void)
     2178{
     2179        int num_to_alloc;
     2180   
     2181        if (!(yy_buffer_stack)) {
     2182
     2183                /* First allocation is just for 2 elements, since we don't know if this
     2184                 * scanner will even need a stack. We use 2 instead of 1 to avoid an
     2185                 * immediate realloc on the next call.
     2186         */
     2187                num_to_alloc = 1;
     2188                (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
     2189                                                                (num_to_alloc * sizeof(struct yy_buffer_state*)
     2190                                                                );
     2191               
     2192                memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
     2193                               
     2194                (yy_buffer_stack_max) = num_to_alloc;
     2195                (yy_buffer_stack_top) = 0;
     2196                return;
     2197        }
     2198
     2199        if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
     2200
     2201                /* Increase the buffer to prepare for a possible push. */
     2202                int grow_size = 8 /* arbitrary grow size */;
     2203
     2204                num_to_alloc = (yy_buffer_stack_max) + grow_size;
     2205                (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
     2206                                                                ((yy_buffer_stack),
     2207                                                                num_to_alloc * sizeof(struct yy_buffer_state*)
     2208                                                                );
     2209
     2210                /* zero only the new slots.*/
     2211                memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
     2212                (yy_buffer_stack_max) = num_to_alloc;
     2213        }
     2214}
     2215
     2216/** Setup the input buffer state to scan directly from a user-specified character buffer.
     2217 * @param base the character buffer
     2218 * @param size the size in bytes of the character buffer
     2219 *
     2220 * @return the newly allocated buffer state object.
     2221 */
     2222YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
     2223{
    20782224        YY_BUFFER_STATE b;
    2079 
     2225   
    20802226        if ( size < 2 ||
    20812227             base[size-2] != YY_END_OF_BUFFER_CHAR ||
     
    20842230                return 0;
    20852231
    2086         b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
     2232        b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
    20872233        if ( ! b )
    20882234                YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
     
    20982244        b->yy_buffer_status = YY_BUFFER_NEW;
    20992245
    2100         yy_switch_to_buffer( b );
     2246        yy_switch_to_buffer(b );
    21012247
    21022248        return b;
    2103         }
    2104 #endif
    2105 
    2106 
    2107 #ifndef YY_NO_SCAN_STRING
    2108 #ifdef YY_USE_PROTOS
    2109 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
    2110 #else
    2111 YY_BUFFER_STATE yy_scan_string( yy_str )
    2112 yyconst char *yy_str;
    2113 #endif
    2114         {
    2115         int len;
    2116         for ( len = 0; yy_str[len]; ++len )
    2117                 ;
    2118 
    2119         return yy_scan_bytes( yy_str, len );
    2120         }
    2121 #endif
    2122 
    2123 
    2124 #ifndef YY_NO_SCAN_BYTES
    2125 #ifdef YY_USE_PROTOS
    2126 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
    2127 #else
    2128 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
    2129 yyconst char *bytes;
    2130 int len;
    2131 #endif
    2132         {
     2249}
     2250
     2251/** Setup the input buffer state to scan a string. The next call to yylex() will
     2252 * scan from a @e copy of @a str.
     2253 * @param str a NUL-terminated string to scan
     2254 *
     2255 * @return the newly allocated buffer state object.
     2256 * @note If you want to scan bytes that may contain NUL values, then use
     2257 *       yy_scan_bytes() instead.
     2258 */
     2259YY_BUFFER_STATE yy_scan_string (yyconst char * str )
     2260{
     2261   
     2262        return yy_scan_bytes(str,strlen(str) );
     2263}
     2264
     2265/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
     2266 * scan from a @e copy of @a bytes.
     2267 * @param bytes the byte buffer to scan
     2268 * @param len the number of bytes in the buffer pointed to by @a bytes.
     2269 *
     2270 * @return the newly allocated buffer state object.
     2271 */
     2272YY_BUFFER_STATE yy_scan_bytes  (yyconst char * bytes, int  len )
     2273{
    21332274        YY_BUFFER_STATE b;
    21342275        char *buf;
    21352276        yy_size_t n;
    21362277        int i;
    2137 
     2278   
    21382279        /* Get memory for full buffer, including space for trailing EOB's. */
    21392280        n = len + 2;
    2140         buf = (char *) yy_flex_alloc( n );
     2281        buf = (char *) yyalloc(n );
    21412282        if ( ! buf )
    21422283                YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
     
    21472288        buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
    21482289
    2149         b = yy_scan_buffer( buf, n );
     2290        b = yy_scan_buffer(buf,n );
    21502291        if ( ! b )
    21512292                YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
     
    21572298
    21582299        return b;
    2159         }
    2160 #endif
    2161 
    2162 
    2163 #ifndef YY_NO_PUSH_STATE
    2164 #ifdef YY_USE_PROTOS
    2165 static void yy_push_state( int new_state )
    2166 #else
    2167 static void yy_push_state( new_state )
    2168 int new_state;
    2169 #endif
    2170         {
    2171         if ( yy_start_stack_ptr >= yy_start_stack_depth )
    2172                 {
    2173                 yy_size_t new_size;
    2174 
    2175                 yy_start_stack_depth += YY_START_STACK_INCR;
    2176                 new_size = yy_start_stack_depth * sizeof( int );
    2177 
    2178                 if ( ! yy_start_stack )
    2179                         yy_start_stack = (int *) yy_flex_alloc( new_size );
    2180 
    2181                 else
    2182                         yy_start_stack = (int *) yy_flex_realloc(
    2183                                         (void *) yy_start_stack, new_size );
    2184 
    2185                 if ( ! yy_start_stack )
    2186                         YY_FATAL_ERROR(
    2187                         "out of memory expanding start-condition stack" );
    2188                 }
    2189 
    2190         yy_start_stack[yy_start_stack_ptr++] = YY_START;
    2191 
    2192         BEGIN(new_state);
    2193         }
    2194 #endif
    2195 
    2196 
    2197 #ifndef YY_NO_POP_STATE
    2198 static void yy_pop_state()
    2199         {
    2200         if ( --yy_start_stack_ptr < 0 )
    2201                 YY_FATAL_ERROR( "start-condition stack underflow" );
    2202 
    2203         BEGIN(yy_start_stack[yy_start_stack_ptr]);
    2204         }
    2205 #endif
    2206 
    2207 
    2208 #ifndef YY_NO_TOP_STATE
    2209 static int yy_top_state()
    2210         {
    2211         return yy_start_stack[yy_start_stack_ptr - 1];
    2212         }
    2213 #endif
     2300}
    22142301
    22152302#ifndef YY_EXIT_FAILURE
     
    22172304#endif
    22182305
    2219 #ifdef YY_USE_PROTOS
    2220 static void yy_fatal_error( yyconst char msg[] )
    2221 #else
    2222 static void yy_fatal_error( msg )
    2223 char msg[];
    2224 #endif
    2225         {
    2226         (void) fprintf( stderr, "%s\n", msg );
     2306static void yy_fatal_error (yyconst char* msg )
     2307{
     2308        (void) fprintf( stderr, "%s\n", msg );
    22272309        exit( YY_EXIT_FAILURE );
    2228         }
    2229 
    2230 
     2310}
    22312311
    22322312/* Redefine yyless() so it works in section 3 code. */
     
    22372317                { \
    22382318                /* Undo effects of setting up yytext. */ \
    2239                 yytext[yyleng] = yy_hold_char; \
    2240                 yy_c_buf_p = yytext + n; \
    2241                 yy_hold_char = *yy_c_buf_p; \
    2242                 *yy_c_buf_p = '\0'; \
    2243                 yyleng = n; \
     2319        int yyless_macro_arg = (n); \
     2320        YY_LESS_LINENO(yyless_macro_arg);\
     2321                yytext[yyleng] = (yy_hold_char); \
     2322                (yy_c_buf_p) = yytext + yyless_macro_arg; \
     2323                (yy_hold_char) = *(yy_c_buf_p); \
     2324                *(yy_c_buf_p) = '\0'; \
     2325                yyleng = yyless_macro_arg; \
    22442326                } \
    22452327        while ( 0 )
    22462328
    2247 
    2248 /* Internal utility routines. */
     2329/* Accessor  methods (get/set functions) to struct members. */
     2330
     2331/** Get the current line number.
     2332 *
     2333 */
     2334int yyget_lineno  (void)
     2335{
     2336       
     2337    return yylineno;
     2338}
     2339
     2340/** Get the input stream.
     2341 *
     2342 */
     2343FILE *yyget_in  (void)
     2344{
     2345        return yyin;
     2346}
     2347
     2348/** Get the output stream.
     2349 *
     2350 */
     2351FILE *yyget_out  (void)
     2352{
     2353        return yyout;
     2354}
     2355
     2356/** Get the length of the current token.
     2357 *
     2358 */
     2359int yyget_leng  (void)
     2360{
     2361        return yyleng;
     2362}
     2363
     2364/** Get the current token.
     2365 *
     2366 */
     2367
     2368char *yyget_text  (void)
     2369{
     2370        return yytext;
     2371}
     2372
     2373/** Set the current line number.
     2374 * @param line_number
     2375 *
     2376 */
     2377void yyset_lineno (int  line_number )
     2378{
     2379   
     2380    yylineno = line_number;
     2381}
     2382
     2383/** Set the input stream. This does not discard the current
     2384 * input buffer.
     2385 * @param in_str A readable stream.
     2386 *
     2387 * @see yy_switch_to_buffer
     2388 */
     2389void yyset_in (FILE *  in_str )
     2390{
     2391        yyin = in_str ;
     2392}
     2393
     2394void yyset_out (FILE *  out_str )
     2395{
     2396        yyout = out_str ;
     2397}
     2398
     2399int yyget_debug  (void)
     2400{
     2401        return yy_flex_debug;
     2402}
     2403
     2404void yyset_debug (int  bdebug )
     2405{
     2406        yy_flex_debug = bdebug ;
     2407}
     2408
     2409/* yylex_destroy is for both reentrant and non-reentrant scanners. */
     2410int yylex_destroy  (void)
     2411{
     2412   
     2413    /* Pop the buffer stack, destroying each element. */
     2414        while(YY_CURRENT_BUFFER){
     2415                yy_delete_buffer(YY_CURRENT_BUFFER  );
     2416                YY_CURRENT_BUFFER_LVALUE = NULL;
     2417                yypop_buffer_state();
     2418        }
     2419
     2420        /* Destroy the stack itself. */
     2421        yyfree((yy_buffer_stack) );
     2422        (yy_buffer_stack) = NULL;
     2423
     2424    return 0;
     2425}
     2426
     2427/*
     2428 * Internal utility routines.
     2429 */
    22492430
    22502431#ifndef yytext_ptr
    2251 #ifdef YY_USE_PROTOS
    2252 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
    2253 #else
    2254 static void yy_flex_strncpy( s1, s2, n )
    2255 char *s1;
    2256 yyconst char *s2;
    2257 int n;
    2258 #endif
    2259         {
     2432static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
     2433{
    22602434        register int i;
    2261         for ( i = 0; i < n; ++i )
     2435        for ( i = 0; i < n; ++i )
    22622436                s1[i] = s2[i];
    2263         }
     2437}
    22642438#endif
    22652439
    22662440#ifdef YY_NEED_STRLEN
    2267 #ifdef YY_USE_PROTOS
    2268 static int yy_flex_strlen( yyconst char *s )
    2269 #else
    2270 static int yy_flex_strlen( s )
    2271 yyconst char *s;
    2272 #endif
    2273         {
     2441static int yy_flex_strlen (yyconst char * s )
     2442{
    22742443        register int n;
    2275         for ( n = 0; s[n]; ++n )
     2444        for ( n = 0; s[n]; ++n )
    22762445                ;
    22772446
    22782447        return n;
    2279         }
    2280 #endif
    2281 
    2282 
    2283 #ifdef YY_USE_PROTOS
    2284 static void *yy_flex_alloc( yy_size_t size )
    2285 #else
    2286 static void *yy_flex_alloc( size )
    2287 yy_size_t size;
    2288 #endif
    2289         {
     2448}
     2449#endif
     2450
     2451void *yyalloc (yy_size_t  size )
     2452{
    22902453        return (void *) malloc( size );
    2291         }
    2292 
    2293 #ifdef YY_USE_PROTOS
    2294 static void *yy_flex_realloc( void *ptr, yy_size_t size )
    2295 #else
    2296 static void *yy_flex_realloc( ptr, size )
    2297 void *ptr;
    2298 yy_size_t size;
    2299 #endif
    2300         {
     2454}
     2455
     2456void *yyrealloc  (void * ptr, yy_size_t  size )
     2457{
    23012458        /* The cast to (char *) in the following accommodates both
    23022459         * implementations that use char* generic pointers, and those
     
    23072464         */
    23082465        return (void *) realloc( (char *) ptr, size );
    2309         }
    2310 
    2311 #ifdef YY_USE_PROTOS
    2312 static void yy_flex_free( void *ptr )
    2313 #else
    2314 static void yy_flex_free( ptr )
    2315 void *ptr;
    2316 #endif
    2317         {
    2318         free( ptr );
    2319         }
    2320 
    2321 #if YY_MAIN
    2322 int main()
    2323         {
    2324         yylex();
    2325         return 0;
    2326         }
     2466}
     2467
     2468void yyfree (void * ptr )
     2469{
     2470        free( (char *) ptr );   /* see yyrealloc() for (char *) cast */
     2471}
     2472
     2473#define YYTABLES_NAME "yytables"
     2474
     2475#undef YY_NEW_FILE
     2476#undef YY_FLUSH_BUFFER
     2477#undef yy_set_bol
     2478#undef yy_new_buffer
     2479#undef yy_set_interactive
     2480#undef yytext_ptr
     2481#undef YY_DO_BEFORE_ACTION
     2482
     2483#ifdef YY_DECL_IS_OURS
     2484#undef YY_DECL_IS_OURS
     2485#undef YY_DECL
    23272486#endif
    23282487#line 236 "rclex.l"
     2488
    23292489
    23302490#ifndef yywrap
     
    23462506
    23472507  ++s;
    2348   while (isspace ((unsigned char) *s))
     2508  while (ISSPACE (*s))
    23492509    ++s;
    23502510 
    23512511  line = strtol (s, &send, 0);
    2352   if (*send != '\0' && ! isspace ((unsigned char) *send))
     2512  if (*send != '\0' && ! ISSPACE (*send))
    23532513    return;
    23542514
     
    23572517
    23582518  s = send;
    2359   while (isspace ((unsigned char) *s))
     2519  while (ISSPACE (*s))
    23602520    ++s;
    23612521
     
    23782538    {
    23792539      initial_fn = xmalloc (strlen (fn) + 1);
    2380       strcpy(initial_fn, fn);
     2540      strcpy (initial_fn, fn);
    23812541    }
    23822542
    23832543  /* Allow the initial file, regardless of name.  Suppress all other
    2384      files if they end in ".h" (this allows included "*.rc") */
     2544     files if they end in ".h" (this allows included "*.rc"). */
    23852545  if (strcmp (initial_fn, fn) == 0
    23862546      || strcmp (fn + strlen (fn) - 2, ".h") != 0)
     
    24252585
    24262586            case 'a':
    2427               *s++ = ESCAPE_A;
     2587              *s++ = ESCAPE_B; /* Strange, but true...  */
    24282588              ++t;
    24292589              break;
     
    24882648                    ch = (ch << 4) | (*t - '0');
    24892649                  else if (*t >= 'a' && *t <= 'f')
    2490                     ch = (ch << 4) | (*t - 'a');
     2650                    ch = (ch << 4) | (*t - 'a' + 10);
    24912651                  else if (*t >= 'A' && *t <= 'F')
    2492                     ch = (ch << 4) | (*t - 'A');
     2652                    ch = (ch << 4) | (*t - 'A' + 10);
    24932653                  else
    24942654                    break;
     
    25172677        {
    25182678          ++t;
    2519           assert (isspace ((unsigned char) *t));
    2520           while (isspace ((unsigned char) *t))
    2521             ++t;
     2679          assert (ISSPACE (*t));
     2680          while (ISSPACE (*t))
     2681            {
     2682              if ((*t) == '\n')
     2683                ++rc_lineno;
     2684              ++t;
     2685            }
    25222686          if (*t == '\0')
    25232687            break;
     
    25462710
    25472711  as->next = strings;
    2548   strings = as->next;
     2712  strings = as;
    25492713
    25502714  return as->s;
     
    25882752  rcdata_mode = 0;
    25892753}
     2754
Note: See TracChangeset for help on using the changeset viewer.