(linenum→info "unix/slp.c:2238")

binutils/2.18/ld/ldlex.c

    1: 
    2: #line 3 "ldlex.c"
    3: 
    4: #define  YY_INT_ALIGNED short int
    5: 
    6: /* A lexical scanner generated by flex */
    7: 
    8: #define FLEX_SCANNER
    9: #define YY_FLEX_MAJOR_VERSION 2
   10: #define YY_FLEX_MINOR_VERSION 5
   11: #define YY_FLEX_SUBMINOR_VERSION 33
   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. */
   19: #include <stdio.h>
   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 __STDC_VERSION__ >= 199901L
   34: 
   35: /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
   36:  * if you want the limit (max/min) macros for int types. 
   37:  */
   38: #ifndef __STDC_LIMIT_MACROS
   39: #define __STDC_LIMIT_MACROS 1
   40: #endif
   41: 
   42: #include <inttypes.h>
   43: typedef int8_t flex_int8_t;
   44: typedef uint8_t flex_uint8_t;
   45: typedef int16_t flex_int16_t;
   46: typedef uint16_t flex_uint16_t;
   47: typedef int32_t flex_int32_t;
   48: typedef uint32_t flex_uint32_t;
   49: #else
   50: typedef signed char flex_int8_t;
   51: typedef short int flex_int16_t;
   52: typedef int flex_int32_t;
   53: typedef unsigned char flex_uint8_t; 
   54: typedef unsigned short int flex_uint16_t;
   55: typedef unsigned int flex_uint32_t;
   56: #endif /* ! C99 */
   57: 
   58: /* Limits of integral types. */
   59: #ifndef INT8_MIN
   60: #define INT8_MIN               (-128)
   61: #endif
   62: #ifndef INT16_MIN
   63: #define INT16_MIN              (-32767-1)
   64: #endif
   65: #ifndef INT32_MIN
   66: #define INT32_MIN              (-2147483647-1)
   67: #endif
   68: #ifndef INT8_MAX
   69: #define INT8_MAX               (127)
   70: #endif
   71: #ifndef INT16_MAX
   72: #define INT16_MAX              (32767)
   73: #endif
   74: #ifndef INT32_MAX
   75: #define INT32_MAX              (2147483647)
   76: #endif
   77: #ifndef UINT8_MAX
   78: #define UINT8_MAX              (255U)
   79: #endif
   80: #ifndef UINT16_MAX
   81: #define UINT16_MAX             (65535U)
   82: #endif
   83: #ifndef UINT32_MAX
   84: #define UINT32_MAX             (4294967295U)
   85: #endif
   86: 
   87: #endif /* ! FLEXINT_H */
   88: 
   89: #ifdef __cplusplus
   90: 
   91: /* The "const" storage-class-modifier is valid. */
   92: #define YY_USE_CONST
   93: 
   94: #else   /* ! __cplusplus */
   95: 
   96: #if __STDC__
   97: 
   98: #define YY_USE_CONST
   99: 
  100: #endif  /* __STDC__ */
  101: #endif  /* ! __cplusplus */
  102: 
  103: #ifdef YY_USE_CONST
  104: #define yyconst const
  105: #else
  106: #define yyconst
  107: #endif
  108: 
  109: /* Returned upon end-of-file. */
  110: #define YY_NULL 0
  111: 
  112: /* Promotes a possibly negative, possibly signed char to an unsigned
  113:  * integer for use as an array index.  If the signed char is negative,
  114:  * we want to instead treat it as an 8-bit unsigned char, hence the
  115:  * double cast.
  116:  */
  117: #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  118: 
  119: /* Enter a start condition.  This macro really ought to take a parameter,
  120:  * but we do it the disgusting crufty way forced on us by the ()-less
  121:  * definition of BEGIN.
  122:  */
  123: #define BEGIN (yy_start) = 1 + 2 *
  124: 
  125: /* Translate the current start state into a value that can be later handed
  126:  * to BEGIN to return to the state.  The YYSTATE alias is for lex
  127:  * compatibility.
  128:  */
  129: #define YY_START (((yy_start) - 1) / 2)
  130: #define YYSTATE YY_START
  131: 
  132: /* Action number for EOF rule of a given start state. */
  133: #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  134: 
  135: /* Special action meaning "start processing a new file". */
  136: #define YY_NEW_FILE yyrestart(yyin  )
  137: 
  138: #define YY_END_OF_BUFFER_CHAR 0
  139: 
  140: /* Size of default input buffer. */
  141: #ifndef YY_BUF_SIZE
  142: #define YY_BUF_SIZE 16384
  143: #endif
  144: 
  145: /* The state buf must be large enough to hold one state per character in the main buffer.
  146:  */
  147: #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  148: 
  149: #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  150: #define YY_TYPEDEF_YY_BUFFER_STATE
  151: typedef struct yy_buffer_state *YY_BUFFER_STATE;
  152: #endif
  153: 
  154: extern int yyleng;
  155: 
  156: extern FILE *yyin, *yyout;
  157: 
  158: #define EOB_ACT_CONTINUE_SCAN 0
  159: #define EOB_ACT_END_OF_FILE 1
  160: #define EOB_ACT_LAST_MATCH 2
  161: 
  162:     #define YY_LESS_LINENO(n)
  163:     
  164: /* Return all but the first "n" matched characters back to the input stream. */
  165: #define yyless(n) \
  166:         do \
  167:                 { \
  168:                 /* Undo effects of setting up yytext. */ \
  169:         int yyless_macro_arg = (n); \
  170:         YY_LESS_LINENO(yyless_macro_arg);\
  171:                 *yy_cp = (yy_hold_char); \
  172:                 YY_RESTORE_YY_MORE_OFFSET \
  173:                 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  174:                 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  175:                 } \
  176:         while ( 0 )
  177: 
  178: #define unput(c) yyunput( c, (yytext_ptr)  )
  179: 
  180: /* The following is because we cannot portably get our hands on size_t
  181:  * (without autoconf's help, which isn't available because we want
  182:  * flex-generated scanners to compile on their own).
  183:  */
  184: 
  185: #ifndef YY_TYPEDEF_YY_SIZE_T
  186: #define YY_TYPEDEF_YY_SIZE_T
  187: typedef unsigned int yy_size_t;
  188: #endif
  189: 
  190: #ifndef YY_STRUCT_YY_BUFFER_STATE
  191: #define YY_STRUCT_YY_BUFFER_STATE
  192: struct yy_buffer_state
  193:         {
  194:         FILE *yy_input_file;
  195: 
  196:         char *yy_ch_buf;               /* input buffer */
  197:         char *yy_buf_pos;              /* current position in input buffer */
  198: 
  199:         /* Size of input buffer in bytes, not including room for EOB
  200:          * characters.
  201:          */
  202:         yy_size_t yy_buf_size;
  203: 
  204:         /* Number of characters read into yy_ch_buf, not including EOB
  205:          * characters.
  206:          */
  207:         int yy_n_chars;
  208: 
  209:         /* Whether we "own" the buffer - i.e., we know we created it,
  210:          * and can realloc() it to grow it, and should free() it to
  211:          * delete it.
  212:          */
  213:         int yy_is_our_buffer;
  214: 
  215:         /* Whether this is an "interactive" input source; if so, and
  216:          * if we're using stdio for input, then we want to use getc()
  217:          * instead of fread(), to make sure we stop fetching input after
  218:          * each newline.
  219:          */
  220:         int yy_is_interactive;
  221: 
  222:         /* Whether we're considered to be at the beginning of a line.
  223:          * If so, '^' rules will be active on the next match, otherwise
  224:          * not.
  225:          */
  226:         int yy_at_bol;
  227: 
  228:     int yy_bs_lineno; /**< The line count. */
  229:     int yy_bs_column; /**< The column count. */
  230:     
  231:         /* Whether to try to fill the input buffer when we reach the
  232:          * end of it.
  233:          */
  234:         int yy_fill_buffer;
  235: 
  236:         int yy_buffer_status;
  237: 
  238: #define YY_BUFFER_NEW 0
  239: #define YY_BUFFER_NORMAL 1
  240:         /* When an EOF's been seen but there's still some text to process
  241:          * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  242:          * shouldn't try reading from the input source any more.  We might
  243:          * still have a bunch of tokens to match, though, because of
  244:          * possible backing-up.
  245:          *
  246:          * When we actually see the EOF, we change the status to "new"
  247:          * (via yyrestart()), so that the user can continue scanning by
  248:          * just pointing yyin at a new input file.
  249:          */
  250: #define YY_BUFFER_EOF_PENDING 2
  251: 
  252:         };
  253: #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  254: 
  255: /* Stack of input buffers. */
  256: static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  257: static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  258: static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  259: 
  260: /* We provide macros for accessing buffer states in case in the
  261:  * future we want to put the buffer states in a more general
  262:  * "scanner state".
  263:  *
  264:  * Returns the top of the stack, or NULL.
  265:  */
  266: #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  267:                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  268:                           : NULL)
  269: 
  270: /* Same as previous macro, but useful when we know that the buffer stack is not
  271:  * NULL or when we need an lvalue. For internal use only.
  272:  */
  273: #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  274: 
  275: /* yy_hold_char holds the character lost when yytext is formed. */
  276: static char yy_hold_char;
  277: static int yy_n_chars;          /* number of characters read into yy_ch_buf */
  278: int yyleng;
  279: 
  280: /* Points to current character in buffer. */
  281: static char *yy_c_buf_p = (char *) 0;
  282: static int yy_init = 0;         /* whether we need to initialize */
  283: static int yy_start = 0;        /* start state number */
  284: 
  285: /* Flag which is used to allow yywrap()'s to do buffer switches
  286:  * instead of setting up a fresh yyin.  A bit of a hack ...
  287:  */
  288: static int yy_did_buffer_switch_on_eof;
  289: 
  290: void yyrestart (FILE *input_file  );
  291: void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
  292: YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
  293: void yy_delete_buffer (YY_BUFFER_STATE b  );
  294: void yy_flush_buffer (YY_BUFFER_STATE b  );
  295: void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
  296: void yypop_buffer_state (void );
  297: 
  298: static void yyensure_buffer_stack (void );
  299: static void yy_load_buffer_state (void );
  300: static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file  );
  301: 
  302: #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  303: 
  304: YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size  );
  305: YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
  306: YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len  );
  307: 
  308: void *yyalloc (yy_size_t  );
  309: void *yyrealloc (void *,yy_size_t  );
  310: void yyfree (void *  );
  311: 
  312: #define yy_new_buffer yy_create_buffer
  313: 
  314: #define yy_set_interactive(is_interactive) \
  315:         { \
  316:         if ( ! YY_CURRENT_BUFFER ){ \
  317:         yyensure_buffer_stack (); \
  318:                 YY_CURRENT_BUFFER_LVALUE =    \
  319:             yy_create_buffer(yyin,YY_BUF_SIZE ); \
  320:         } \
  321:         YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  322:         }
  323: 
  324: #define yy_set_bol(at_bol) \
  325:         { \
  326:         if ( ! YY_CURRENT_BUFFER ){\
  327:         yyensure_buffer_stack (); \
  328:                 YY_CURRENT_BUFFER_LVALUE =    \
  329:             yy_create_buffer(yyin,YY_BUF_SIZE ); \
  330:         } \
  331:         YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  332:         }
  333: 
  334: #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  335: 
  336: /* Begin user sect3 */
  337: 
  338: typedef unsigned char YY_CHAR;
  339: 
  340: FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  341: 
  342: typedef int yy_state_type;
  343: 
  344: extern int yylineno;
  345: 
  346: int yylineno = 1;
  347: 
  348: extern char *yytext;
  349: #define yytext_ptr yytext
  350: 
  351: static yy_state_type yy_get_previous_state (void );
  352: static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
  353: static int yy_get_next_buffer (void );
  354: static void yy_fatal_error (yyconst char msg[]  );
  355: 
  356: /* Done after the current pattern has been matched and before the
  357:  * corresponding action - sets up yytext.
  358:  */
  359: #define YY_DO_BEFORE_ACTION \
  360:         (yytext_ptr) = yy_bp; \
  361:         yyleng = (size_t) (yy_cp - yy_bp); \
  362:         (yy_hold_char) = *yy_cp; \
  363:         *yy_cp = '\0'; \
  364:         (yy_c_buf_p) = yy_cp;
  365: 
  366: #define YY_NUM_RULES 186
  367: #define YY_END_OF_BUFFER 187
  368: /* This struct is not used in this scanner,
  369:    but its presence is necessary. */
  370: struct yy_trans_info
  371:         {
  372:         flex_int32_t yy_verify;
  373:         flex_int32_t yy_nxt;
  374:         };
  375: static yyconst flex_int16_t yy_accept[1536] =
  376:     {   0,
  377:         0,    0,  166,  166,    0,    0,    0,    0,    0,    0,
  378:         0,    0,    0,    0,    0,    0,    0,    0,  187,  186,
  379:       184,  169,  168,   32,  184,  166,   38,   29,   44,   43,
  380:        34,   35,   28,   36,  166,   37,    8,    8,   45,   46,
  381:        39,   40,   27,   33,  166,  166,  166,  166,  166,  166,
  382:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  383:       166,  166,  166,   10,    9,  166,  111,  109,  166,   42,
  384:        30,   41,   31,  185,  169,   32,  185,  164,   38,   29,
  385:        44,   43,   34,   35,   28,   36,  164,   37,    8,    8,
  386:        45,   46,   39,   40,   27,   33,  164,  164,  164,  164,
  387: 
  388:       164,  164,  164,  164,  164,  164,  164,  164,  164,  164,
  389:       164,   10,    9,  164,  164,   42,   30,   41,   31,  162,
  390:        36,  162,   37,    8,    8,  162,  162,  162,  162,  162,
  391:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  392:       162,  162,  162,  162,  162,  111,  109,  162,   31,    4,
  393:         3,    2,    4,    5,  123,  122,  161,   34,   35,   28,
  394:        36,  161,   37,    8,    8,   45,   46,   40,   33,  161,
  395:       161,  161,  161,  161,  161,  161,  161,  161,  161,  161,
  396:       161,   10,    9,  161,  161,  161,  161,  161,  161,  161,
  397:       161,  161,  161,  161,   31,  183,  181,  182,  184,  176,
  398: 
  399:       175,  170,  177,  178,  174,  174,  174,  174,  179,  180,
  400:       169,   15,    0,  167,  166,    8,   26,   24,   22,   20,
  401:        21,    1,   23,    8,    8,  166,   18,   17,   14,   16,
  402:        19,  166,  166,  166,  166,  115,  166,  166,  166,  166,
  403:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  404:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  405:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  406:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  407:       166,   25,   13,  164,    6,   22,   20,   21,    0,    1,
  408:        23,    8,    0,    7,    7,    8,    7,   14,  164,    7,
  409: 
  410:         7,    7,  164,  164,  115,    7,  164,  164,    7,  164,
  411:       164,  164,    7,  164,  164,  164,  164,  164,  164,  164,
  412:       164,  164,  164,  164,  164,  164,  164,  164,  164,  164,
  413:         7,  164,  162,    8,    0,   23,    8,    0,  162,  162,
  414:       162,  162,  115,  162,  162,  162,  162,  162,  162,  162,
  415:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  416:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  417:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  418:       162,  162,  162,  162,  162,  162,  162,  162,  162,    4,
  419:         4,  122,  122,  161,    6,  124,   22,  125,  161,    7,
  420: 
  421:         7,    7,  161,  161,  161,    7,  161,    7,    7,  161,
  422:       161,  161,  161,  161,  161,  161,  161,    7,  161,  161,
  423:       161,    7,  161,    7,    7,  161,  161,  161,  161,  161,
  424:       161,  161,  161,  183,  182,  175,  174,    0,  174,  174,
  425:       174,   11,   12,  166,  166,  166,  166,  166,  166,  166,
  426:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  427:       166,  166,  166,  166,   87,  166,  166,  166,  166,  166,
  428:       166,  166,  166,   69,  166,  166,  166,  166,  166,  166,
  429:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  430:       166,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  431: 
  432:       112,  110,  166,    8,  165,    8,  164,    7,  164,  164,
  433:       164,  164,  164,  164,  164,  164,  164,  164,  164,  164,
  434:       164,  164,  164,  164,   60,   61,  164,  164,  164,  164,
  435:       164,  164,  164,  164,  164,  164,  164,  164,  164,    8,
  436:       163,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  437:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  438:       162,  162,   87,  162,  162,  162,  162,  162,  162,  162,
  439:       162,   69,   60,  162,   61,  162,  162,  162,  162,  162,
  440:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  441:       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  442: 
  443:       112,  110,  162,    4,    8,  161,  161,  161,  161,  161,
  444:       126,  161,  161,  161,  161,  161,  161,  161,  161,  161,
  445:       161,  161,  161,  161,  161,  161,  143,  161,  161,  161,
  446:       161,  161,  161,  161,  161,  161,  161,  174,  174,  174,
  447:       166,   57,  166,  166,  166,   51,  166,   94,  166,  103,
  448:       166,  166,  166,  166,  166,  166,  166,   83,  166,  166,
  449:       166,  166,  104,  166,  166,  119,  166,  166,   92,  166,
  450:        65,  166,  166,  166,  166,  166,  166,  166,  166,  166,
  451:        90,  166,  166,  166,  166,  166,  100,  166,  166,  166,
  452:       166,  166,  166,  166,  166,  166,  164,   57,  164,  164,
  453: 
  454:       164,   51,  164,  164,  103,  164,  164,  164,  164,  164,
  455:       104,  119,  164,  164,   65,  164,  164,  164,  164,  164,
  456:       164,  164,  164,  164,  164,  164,  164,  162,   57,  162,
  457:       162,  162,   51,  162,   94,  162,  103,  162,  162,  162,
  458:       162,  162,  162,  162,   83,  162,  162,  162,  162,  104,
  459:       162,  162,  119,  162,  162,   92,  162,   65,  162,  162,
  460:       162,  162,  162,  162,  162,  162,  162,   90,  162,  162,
  461:       162,  162,  162,  100,  162,  162,  162,  162,  162,  162,
  462:       162,  162,  162,  161,  161,  161,  130,  138,  129,  161,
  463:       161,  140,  133,  136,  161,  161,  141,  161,  161,  161,
  464: 
  465:       161,  161,  147,  155,  146,  161,  161,  158,  150,  153,
  466:       161,  161,  159,  161,  161,  174,  174,  174,  166,   53,
  467:       166,  166,   50,  166,  166,  166,  166,  102,   63,  166,
  468:       166,   89,  166,   75,  166,  166,   74,  166,  166,  166,
  469:       166,  166,  166,  166,  166,  166,  166,  114,  166,  166,
  470:       166,  166,   93,  166,  166,  166,   91,  166,  166,  166,
  471:       166,  166,  166,  166,  164,   53,  164,  164,   50,  164,
  472:       164,  164,  102,  164,   75,  164,  164,  164,  164,  164,
  473:       164,  164,  164,  164,  164,  164,  164,  164,  164,  162,
  474:        53,  162,  162,   50,  162,  162,  162,  162,  <