#line 2 "fe/idl.yy.cpp" #line 4 "fe/idl.yy.cpp" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define yy_create_buffer tao_yy_create_buffer #define yy_delete_buffer tao_yy_delete_buffer #define yy_scan_buffer tao_yy_scan_buffer #define yy_scan_string tao_yy_scan_string #define yy_scan_bytes tao_yy_scan_bytes #define yy_init_buffer tao_yy_init_buffer #define yy_flush_buffer tao_yy_flush_buffer #define yy_load_buffer_state tao_yy_load_buffer_state #define yy_switch_to_buffer tao_yy_switch_to_buffer #define yypush_buffer_state tao_yypush_buffer_state #define yypop_buffer_state tao_yypop_buffer_state #define yyensure_buffer_stack tao_yyensure_buffer_stack #define yy_flex_debug tao_yy_flex_debug #define yyin tao_yyin #define yyleng tao_yyleng #define yylex tao_yylex #define yylineno tao_yylineno #define yyout tao_yyout #define yyrestart tao_yyrestart #define yytext tao_yytext #define yywrap tao_yywrap #define yyalloc tao_yyalloc #define yyrealloc tao_yyrealloc #define yyfree tao_yyfree #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif #ifdef yy_create_buffer #define tao_yy_create_buffer_ALREADY_DEFINED #else #define yy_create_buffer tao_yy_create_buffer #endif #ifdef yy_delete_buffer #define tao_yy_delete_buffer_ALREADY_DEFINED #else #define yy_delete_buffer tao_yy_delete_buffer #endif #ifdef yy_scan_buffer #define tao_yy_scan_buffer_ALREADY_DEFINED #else #define yy_scan_buffer tao_yy_scan_buffer #endif #ifdef yy_scan_string #define tao_yy_scan_string_ALREADY_DEFINED #else #define yy_scan_string tao_yy_scan_string #endif #ifdef yy_scan_bytes #define tao_yy_scan_bytes_ALREADY_DEFINED #else #define yy_scan_bytes tao_yy_scan_bytes #endif #ifdef yy_init_buffer #define tao_yy_init_buffer_ALREADY_DEFINED #else #define yy_init_buffer tao_yy_init_buffer #endif #ifdef yy_flush_buffer #define tao_yy_flush_buffer_ALREADY_DEFINED #else #define yy_flush_buffer tao_yy_flush_buffer #endif #ifdef yy_load_buffer_state #define tao_yy_load_buffer_state_ALREADY_DEFINED #else #define yy_load_buffer_state tao_yy_load_buffer_state #endif #ifdef yy_switch_to_buffer #define tao_yy_switch_to_buffer_ALREADY_DEFINED #else #define yy_switch_to_buffer tao_yy_switch_to_buffer #endif #ifdef yypush_buffer_state #define tao_yypush_buffer_state_ALREADY_DEFINED #else #define yypush_buffer_state tao_yypush_buffer_state #endif #ifdef yypop_buffer_state #define tao_yypop_buffer_state_ALREADY_DEFINED #else #define yypop_buffer_state tao_yypop_buffer_state #endif #ifdef yyensure_buffer_stack #define tao_yyensure_buffer_stack_ALREADY_DEFINED #else #define yyensure_buffer_stack tao_yyensure_buffer_stack #endif #ifdef yylex #define tao_yylex_ALREADY_DEFINED #else #define yylex tao_yylex #endif #ifdef yyrestart #define tao_yyrestart_ALREADY_DEFINED #else #define yyrestart tao_yyrestart #endif #ifdef yylex_init #define tao_yylex_init_ALREADY_DEFINED #else #define yylex_init tao_yylex_init #endif #ifdef yylex_init_extra #define tao_yylex_init_extra_ALREADY_DEFINED #else #define yylex_init_extra tao_yylex_init_extra #endif #ifdef yylex_destroy #define tao_yylex_destroy_ALREADY_DEFINED #else #define yylex_destroy tao_yylex_destroy #endif #ifdef yyget_debug #define tao_yyget_debug_ALREADY_DEFINED #else #define yyget_debug tao_yyget_debug #endif #ifdef yyset_debug #define tao_yyset_debug_ALREADY_DEFINED #else #define yyset_debug tao_yyset_debug #endif #ifdef yyget_extra #define tao_yyget_extra_ALREADY_DEFINED #else #define yyget_extra tao_yyget_extra #endif #ifdef yyset_extra #define tao_yyset_extra_ALREADY_DEFINED #else #define yyset_extra tao_yyset_extra #endif #ifdef yyget_in #define tao_yyget_in_ALREADY_DEFINED #else #define yyget_in tao_yyget_in #endif #ifdef yyset_in #define tao_yyset_in_ALREADY_DEFINED #else #define yyset_in tao_yyset_in #endif #ifdef yyget_out #define tao_yyget_out_ALREADY_DEFINED #else #define yyget_out tao_yyget_out #endif #ifdef yyset_out #define tao_yyset_out_ALREADY_DEFINED #else #define yyset_out tao_yyset_out #endif #ifdef yyget_leng #define tao_yyget_leng_ALREADY_DEFINED #else #define yyget_leng tao_yyget_leng #endif #ifdef yyget_text #define tao_yyget_text_ALREADY_DEFINED #else #define yyget_text tao_yyget_text #endif #ifdef yyget_lineno #define tao_yyget_lineno_ALREADY_DEFINED #else #define yyget_lineno tao_yyget_lineno #endif #ifdef yyset_lineno #define tao_yyset_lineno_ALREADY_DEFINED #else #define yyset_lineno tao_yyset_lineno #endif #ifdef yywrap #define tao_yywrap_ALREADY_DEFINED #else #define yywrap tao_yywrap #endif #ifdef yyalloc #define tao_yyalloc_ALREADY_DEFINED #else #define yyalloc tao_yyalloc #endif #ifdef yyrealloc #define tao_yyrealloc_ALREADY_DEFINED #else #define yyrealloc tao_yyrealloc #endif #ifdef yyfree #define tao_yyfree_ALREADY_DEFINED #else #define yyfree tao_yyfree #endif #ifdef yytext #define tao_yytext_ALREADY_DEFINED #else #define yytext tao_yytext #endif #ifdef yyleng #define tao_yyleng_ALREADY_DEFINED #else #define yyleng tao_yyleng #endif #ifdef yyin #define tao_yyin_ALREADY_DEFINED #else #define yyin tao_yyin #endif #ifdef yyout #define tao_yyout_ALREADY_DEFINED #else #define yyout tao_yyout #endif #ifdef yy_flex_debug #define tao_yy_flex_debug_ALREADY_DEFINED #else #define yy_flex_debug tao_yy_flex_debug #endif #ifdef yylineno #define tao_yylineno_ALREADY_DEFINED #else #define yylineno tao_yylineno #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include "ace/OS_NS_stdio.h" #include "ace/OS_NS_errno.h" /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L || defined (__HP_aCC) /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #ifndef SIZE_MAX #define SIZE_MAX (~(size_t)0) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ /* begin standard C++ headers. */ /* TODO: this is always defined, so inline it */ #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 #define yynoreturn __attribute__((__noreturn__)) #else #define yynoreturn #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an * integer in range [0..255] for use as an array index. */ #define YY_SC_TO_UI(c) ((YY_CHAR) (c)) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ int yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or 0. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : 0) /* Same as previous macro, but useful when we know that the buffer stack is not * 0 or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart ( FILE *input_file ); void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); void yy_delete_buffer ( YY_BUFFER_STATE b ); void yy_flush_buffer ( YY_BUFFER_STATE b ); void yypush_buffer_state ( YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (); static void yyensure_buffer_stack (); static void yy_load_buffer_state (); static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); YY_BUFFER_STATE yy_scan_string ( const char *yy_str ); YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len ); void *yyalloc ( yy_size_t ); void *yyrealloc ( void *, yy_size_t ); void yyfree ( void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer( yyin, YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer( yyin, YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef flex_uint8_t YY_CHAR; FILE *yyin = 0, *yyout = 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char yytext[]; static yy_state_type yy_get_previous_state (); static yy_state_type yy_try_NUL_trans ( yy_state_type current_state ); static int yy_get_next_buffer (); static void yynoreturn yy_fatal_error ( const char* msg ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ if ( yyleng >= YYLMAX ) \ YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \ yy_flex_strncpy( yytext, (yytext_ptr), yyleng + 1 ); \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 121 #define YY_END_OF_BUFFER 122 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static const flex_int16_t yy_acclist[626] = { 0, 118, 118, 122, 120, 121, 118, 120, 121, 119, 121, 119, 120, 121, 120, 121, 120, 121, 120, 121, 120, 121, 120, 121, 93, 120, 121, 89, 120, 121, 120, 121, 120, 121, 120, 121, 83, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 84, 120, 121, 118, 120, 121, 120, 121, 119, 120, 121, 118, 94, 92, 88, 85, 117, 85, 93, 87, 89, 81, 79, 80, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 76, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 118, 112, 94, 96, 96, 92, 88, 85, 116, 116, 85, 86, 91, 84, 95, 84, 84, 84, 84, 1, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 77, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 99, 97, 99, 90, 85, 86, 84, 95, 100, 84, 73, 84, 84, 84, 84, 84, 20, 84, 27, 84, 84, 84, 84, 84, 84, 84, 84, 84, 13, 84, 84, 84, 84, 84, 84, 84, 84, 56, 84, 84, 84, 84, 84, 84, 35, 84, 84, 84, 24, 84, 84, 84, 84, 84, 84, 84, 84, 68, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 65, 84, 84, 31, 84, 84, 84, 113, 97, 98, 74, 84, 84, 84, 72, 84, 84, 84, 84, 84, 10, 84, 84, 84, 84, 84, 84, 52, 84, 84, 84, 84, 84, 18, 84, 22, 84, 84, 84, 75, 84, 37, 84, 39, 84, 41, 84, 84, 33, 84, 84, 84, 84, 84, 84, 30, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 25, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 36, 84, 17, 84, 84, 84, 28, 84, 84, 108, 101, 2, 84, 84, 84, 84, 84, 84, 84, 84, 43, 84, 84, 23, 84, 84, 84, 84, 54, 84, 84, 57, 84, 84, 84, 84, 3, 84, 84, 32, 84, 78, 84, 84, 84, 84, 84, 46, 84, 84, 4, 84, 84, 84, 84, 14, 84, 12, 84, 84, 19, 84, 84, 84, 63, 84, 84, 84, 38, 84, 40, 84, 42, 84, 84, 84, 84, 106, 84, 84, 29, 84, 84, 84, 84, 8, 84, 21, 84, 84, 84, 44, 84, 84, 84, 66, 84, 84, 84, 84, 84, 45, 84, 84, 84, 84, 84, 84, 84, 84, 11, 84, 84, 84, 84, 84, 15, 84, 104, 104, 110, 109, 34, 84, 84, 84, 84, 51, 84, 84, 84, 84, 84, 84, 58, 84, 70, 84, 84, 60, 84, 84, 5, 84, 16, 84, 84, 47, 84, 84, 67, 84, 84, 26, 84, 84, 114, 114, 107, 6, 84, 50, 84, 71, 84, 53, 84, 7, 84, 55, 84, 9, 84, 84, 84, 61, 84, 62, 84, 84, 84, 49, 84, 102, 102, 105, 105, 69, 84, 59, 84, 84, 64, 84, 115, 115, 48, 84, 111, 103, 103, 82 } ; static const flex_int16_t yy_accept[623] = { 0, 1, 2, 3, 4, 6, 9, 11, 14, 16, 18, 20, 22, 24, 27, 30, 32, 34, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 99, 102, 105, 108, 111, 114, 117, 119, 122, 123, 123, 124, 124, 124, 124, 124, 125, 126, 127, 128, 128, 129, 130, 130, 131, 131, 131, 132, 133, 134, 135, 135, 136, 137, 137, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, 193, 193, 194, 194, 195, 195, 195, 196, 196, 197, 197, 198, 198, 199, 200, 201, 201, 202, 203, 203, 204, 204, 205, 205, 205, 205, 206, 207, 208, 209, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 266, 266, 266, 266, 266, 266, 266, 266, 267, 269, 269, 269, 270, 270, 271, 272, 272, 273, 274, 274, 274, 274, 274, 275, 275, 276, 278, 279, 280, 281, 282, 284, 286, 287, 288, 289, 290, 291, 292, 293, 294, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 312, 313, 314, 316, 317, 318, 319, 320, 321, 322, 323, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 345, 346, 348, 349, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 351, 351, 351, 352, 352, 353, 353, 353, 355, 355, 355, 355, 356, 357, 359, 360, 361, 362, 363, 365, 366, 367, 368, 369, 370, 372, 373, 374, 375, 376, 378, 380, 381, 382, 384, 386, 388, 390, 391, 393, 394, 395, 396, 397, 398, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 426, 428, 429, 430, 432, 433, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 435, 435, 437, 438, 439, 440, 441, 442, 443, 444, 446, 447, 449, 450, 451, 452, 454, 455, 457, 458, 459, 460, 462, 463, 465, 467, 468, 469, 470, 471, 473, 474, 476, 477, 478, 479, 481, 483, 484, 486, 487, 488, 490, 491, 492, 494, 496, 498, 499, 500, 501, 501, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 503, 504, 506, 507, 508, 509, 511, 513, 514, 515, 517, 518, 519, 521, 522, 523, 524, 525, 527, 528, 529, 530, 531, 532, 533, 534, 536, 537, 538, 539, 540, 542, 542, 542, 543, 544, 544, 544, 545, 545, 545, 546, 546, 546, 546, 546, 546, 546, 546, 546, 548, 549, 550, 551, 553, 554, 555, 556, 557, 558, 560, 562, 563, 565, 566, 568, 570, 571, 573, 574, 576, 577, 579, 580, 580, 581, 582, 582, 582, 582, 582, 583, 583, 583, 583, 583, 583, 583, 583, 583, 585, 587, 589, 591, 593, 595, 597, 598, 599, 601, 603, 604, 605, 607, 607, 607, 607, 608, 609, 609, 609, 610, 611, 611, 611, 611, 611, 611, 613, 615, 616, 618, 618, 618, 619, 620, 620, 620, 620, 620, 622, 622, 623, 623, 624, 625, 626, 626 } ; static const YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 6, 7, 1, 1, 1, 8, 1, 1, 9, 10, 1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 19, 21, 22, 23, 1, 24, 25, 26, 27, 28, 29, 30, 30, 31, 32, 33, 34, 34, 34, 34, 34, 35, 34, 34, 36, 34, 34, 37, 38, 39, 40, 34, 34, 41, 34, 34, 1, 42, 1, 1, 34, 1, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static const YY_CHAR yy_meta[68] = { 0, 1, 2, 3, 4, 2, 5, 1, 6, 1, 7, 7, 8, 1, 9, 9, 9, 9, 9, 9, 9, 10, 10, 1, 1, 1, 1, 11, 1, 12, 12, 13, 13, 12, 14, 14, 14, 14, 14, 14, 14, 14, 5, 15, 15, 12, 13, 13, 15, 14, 14, 14, 14, 14, 14, 14, 16, 14, 14, 14, 16, 14, 16, 17, 16, 14, 16, 14 } ; static const flex_int16_t yy_base[664] = { 0, 0, 66, 1500, 1501, 67, 1501, 1501, 64, 1457, 62, 80, 76, 95, 91, 1475, 1473, 1470, 1452, 0, 1465, 80, 1449, 1455, 77, 1434, 97, 61, 64, 81, 1443, 1432, 35, 1431, 100, 1444, 89, 93, 82, 108, 99, 111, 121, 104, 172, 178, 1459, 182, 162, 183, 192, 1477, 205, 223, 260, 202, 313, 1501, 224, 354, 103, 223, 1501, 94, 0, 252, 1501, 1501, 1501, 1428, 0, 1448, 210, 1440, 1429, 1440, 1418, 1427, 1410, 1414, 1418, 1413, 1430, 120, 1411, 1423, 1407, 1418, 1405, 1420, 1421, 1420, 135, 1407, 1401, 1407, 1403, 30, 202, 1404, 1399, 1412, 1403, 1394, 1393, 1407, 1391, 1392, 199, 1407, 1399, 1406, 156, 1391, 1387, 1388, 1394, 1381, 1385, 1386, 202, 1394, 1386, 1388, 1388, 1375, 255, 0, 211, 1501, 255, 345, 1385, 1389, 1383, 1373, 1407, 283, 224, 225, 296, 1501, 1423, 1422, 396, 1421, 227, 0, 293, 192, 1501, 291, 1501, 293, 0, 403, 344, 0, 1372, 1389, 280, 347, 412, 1418, 279, 1378, 1392, 1361, 1379, 0, 1361, 1366, 1372, 1358, 1359, 295, 1354, 1372, 1370, 1351, 1357, 1355, 1363, 1347, 1362, 1360, 1363, 1345, 1357, 1346, 1339, 418, 1358, 1351, 1356, 1338, 1334, 1334, 1344, 1347, 1328, 0, 1330, 253, 1327, 1336, 1328, 1342, 1324, 1326, 1325, 290, 1326, 1321, 1326, 1334, 1318, 1322, 1327, 1316, 1313, 1329, 1331, 1313, 1366, 1365, 1316, 1322, 1312, 1324, 474, 428, 1501, 1501, 441, 1358, 0, 488, 488, 1501, 1308, 1332, 360, 1357, 294, 529, 0, 1501, 0, 1317, 0, 1301, 1299, 1308, 1311, 0, 0, 1300, 1309, 301, 1308, 1297, 1290, 1298, 1290, 0, 1288, 1291, 1291, 1300, 1300, 1283, 1301, 0, 1283, 1280, 1321, 1324, 1321, 0, 1278, 1283, 0, 1287, 1278, 1280, 1282, 1268, 1269, 1287, 1267, 1285, 1284, 1275, 1274, 1277, 1266, 1275, 1278, 1258, 1263, 1273, 1260, 1271, 1270, 332, 447, 1258, 1264, 0, 1264, 0, 1250, 1230, 1274, 447, 1232, 1222, 1173, 1170, 1164, 1501, 267, 479, 1166, 1147, 1141, 1131, 352, 1501, 1182, 1501, 1176, 1121, 0, 544, 581, 1174, 1119, 1137, 0, 1135, 1131, 1117, 1127, 0, 1116, 1066, 1074, 1072, 1078, 0, 1041, 1040, 1041, 1040, 0, 0, 1044, 1030, 0, 0, 0, 0, 1041, 0, 1041, 1007, 1019, 1007, 1017, 0, 996, 995, 997, 994, 1009, 336, 993, 993, 990, 992, 0, 993, 977, 976, 982, 986, 978, 976, 976, 958, 976, 979, 976, 0, 0, 936, 928, 0, 933, 1501, 511, 404, 922, 435, 926, 972, 968, 917, 921, 911, 908, 887, 399, 616, 1501, 919, 0, 877, 856, 862, 849, 833, 830, 810, 0, 809, 0, 803, 817, 799, 0, 804, 0, 813, 791, 793, 0, 779, 0, 0, 754, 744, 763, 762, 0, 758, 0, 753, 760, 743, 0, 0, 740, 0, 738, 750, 0, 741, 747, 0, 0, 0, 746, 719, 736, 549, 1501, 563, 514, 461, 467, 577, 722, 738, 588, 693, 680, 687, 680, 665, 651, 718, 663, 652, 0, 653, 651, 646, 0, 0, 635, 619, 0, 628, 613, 0, 600, 596, 595, 587, 0, 578, 575, 542, 560, 559, 544, 551, 0, 542, 540, 524, 499, 0, 614, 581, 1501, 617, 647, 650, 1501, 550, 478, 1501, 683, 480, 478, 495, 484, 473, 513, 512, 0, 465, 449, 427, 0, 439, 417, 410, 407, 393, 0, 0, 389, 0, 346, 0, 0, 330, 0, 340, 0, 329, 0, 319, 675, 1501, 686, 337, 701, 688, 714, 1501, 718, 697, 524, 529, 567, 732, 294, 266, 0, 0, 0, 0, 0, 0, 0, 257, 237, 0, 0, 236, 151, 0, 728, 572, 708, 1501, 735, 754, 739, 1501, 757, 760, 184, 180, 573, 92, 0, 0, 99, 0, 765, 768, 1501, 770, 69, 772, 774, 0, 0, 786, 1501, 776, 1501, 779, 1501, 1501, 813, 830, 840, 845, 858, 874, 884, 897, 907, 914, 916, 931, 948, 960, 967, 976, 982, 999, 1011, 1018, 1025, 1035, 1049, 1059, 1069, 1081, 1095, 1106, 1118, 1133, 1150, 1166, 1176, 1185, 1196, 1212, 1223, 1240, 1257, 1273, 1284, 1301 } ; static const flex_int16_t yy_def[664] = { 0, 621, 1, 621, 621, 621, 621, 621, 622, 623, 621, 621, 621, 621, 624, 621, 621, 621, 621, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 621, 621, 621, 621, 622, 621, 626, 621, 627, 621, 621, 628, 621, 621, 629, 621, 13, 630, 621, 631, 632, 624, 621, 621, 621, 621, 625, 625, 633, 634, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 621, 45, 45, 621, 45, 45, 621, 621, 621, 621, 621, 621, 622, 622, 622, 621, 621, 621, 621, 635, 54, 636, 628, 637, 621, 629, 621, 629, 59, 621, 631, 632, 621, 625, 633, 621, 638, 621, 621, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 639, 621, 621, 621, 621, 621, 621, 622, 621, 621, 621, 640, 636, 621, 637, 621, 621, 625, 621, 621, 633, 633, 641, 621, 642, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 639, 621, 621, 621, 621, 621, 230, 621, 230, 230, 621, 621, 621, 621, 622, 621, 621, 621, 621, 621, 625, 633, 633, 643, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 621, 644, 621, 621, 645, 621, 646, 621, 621, 621, 621, 621, 621, 633, 336, 621, 647, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 648, 621, 644, 649, 621, 645, 645, 621, 646, 621, 621, 621, 621, 621, 621, 336, 650, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 648, 649, 621, 649, 651, 621, 621, 652, 621, 621, 653, 621, 621, 654, 621, 621, 633, 621, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 651, 621, 651, 652, 655, 656, 657, 621, 653, 658, 621, 654, 654, 621, 621, 621, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 655, 588, 656, 621, 656, 657, 658, 621, 658, 659, 660, 621, 621, 621, 625, 625, 625, 625, 661, 659, 621, 659, 660, 621, 662, 663, 625, 661, 621, 662, 621, 662, 621, 0, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621 } ; static const flex_int16_t yy_nxt[1569] = { 0, 4, 5, 6, 7, 5, 8, 4, 9, 4, 4, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 4, 17, 7, 18, 19, 19, 19, 19, 20, 19, 21, 22, 19, 19, 23, 19, 19, 4, 24, 25, 26, 27, 28, 29, 30, 31, 32, 19, 19, 33, 34, 35, 36, 37, 19, 38, 39, 40, 41, 42, 43, 19, 19, 44, 47, 49, 44, 47, 45, 53, 611, 54, 55, 55, 55, 55, 55, 55, 55, 55, 57, 72, 190, 73, 58, 96, 97, 191, 46, 56, 56, 56, 56, 56, 56, 56, 56, 56, 59, 155, 155, 50, 59, 85, 60, 60, 60, 60, 60, 60, 60, 61, 61, 86, 87, 88, 76, 62, 63, 91, 110, 62, 63, 89, 111, 90, 77, 92, 78, 104, 93, 64, 62, 63, 79, 81, 62, 63, 99, 621, 105, 614, 82, 613, 124, 107, 100, 106, 108, 83, 112, 109, 101, 113, 117, 84, 64, 119, 102, 122, 125, 118, 120, 49, 621, 114, 115, 121, 116, 126, 174, 175, 126, 123, 127, 128, 129, 129, 130, 47, 137, 598, 47, 137, 138, 611, 184, 131, 131, 131, 131, 131, 131, 131, 131, 131, 185, 237, 237, 50, 129, 140, 140, 140, 140, 140, 140, 140, 143, 59, 208, 161, 605, 209, 144, 144, 144, 144, 144, 144, 144, 132, 152, 153, 133, 49, 49, 134, 62, 63, 59, 135, 56, 56, 56, 56, 56, 56, 56, 56, 56, 145, 192, 62, 63, 203, 153, 162, 217, 62, 63, 204, 126, 193, 621, 126, 224, 127, 218, 59, 621, 50, 50, 621, 62, 63, 145, 59, 407, 146, 146, 146, 146, 146, 146, 146, 61, 61, 62, 63, 137, 161, 247, 137, 138, 604, 62, 63, 621, 152, 153, 152, 153, 62, 63, 161, 147, 49, 621, 603, 59, 62, 63, 291, 621, 231, 231, 231, 231, 231, 231, 231, 292, 153, 602, 153, 621, 162, 601, 62, 63, 147, 56, 56, 56, 56, 56, 56, 56, 56, 56, 162, 600, 50, 62, 63, 300, 248, 562, 62, 149, 150, 621, 150, 242, 225, 258, 242, 301, 621, 621, 259, 260, 49, 62, 149, 150, 242, 345, 346, 242, 587, 150, 154, 154, 154, 154, 154, 154, 154, 154, 154, 239, 388, 239, 586, 446, 243, 389, 585, 62, 149, 150, 390, 150, 391, 584, 239, 621, 50, 243, 621, 447, 239, 621, 62, 149, 150, 621, 233, 161, 470, 583, 150, 470, 234, 234, 234, 234, 234, 234, 234, 156, 156, 156, 156, 156, 156, 156, 156, 156, 245, 245, 245, 245, 245, 245, 245, 276, 49, 277, 582, 472, 278, 279, 472, 162, 328, 328, 328, 328, 328, 328, 328, 329, 401, 401, 402, 581, 580, 330, 330, 330, 330, 330, 330, 330, 392, 520, 393, 280, 520, 394, 395, 472, 50, 579, 472, 578, 401, 246, 320, 321, 321, 322, 563, 621, 567, 563, 408, 567, 577, 576, 323, 323, 323, 323, 323, 323, 323, 323, 323, 569, 621, 621, 570, 321, 238, 238, 238, 238, 238, 238, 238, 238, 238, 575, 574, 467, 468, 468, 467, 518, 519, 161, 416, 150, 324, 150, 573, 325, 597, 621, 326, 597, 621, 569, 327, 621, 570, 161, 150, 621, 468, 572, 568, 519, 150, 335, 335, 335, 335, 335, 335, 335, 161, 467, 468, 468, 467, 162, 562, 557, 414, 414, 414, 414, 414, 414, 414, 467, 468, 468, 467, 569, 556, 162, 570, 598, 606, 612, 468, 606, 612, 521, 522, 522, 521, 523, 518, 519, 162, 161, 555, 554, 468, 525, 525, 526, 553, 415, 415, 415, 415, 415, 415, 415, 415, 415, 522, 552, 551, 550, 519, 549, 415, 415, 415, 415, 415, 525, 467, 468, 468, 467, 518, 519, 548, 162, 415, 415, 415, 415, 415, 415, 482, 482, 482, 482, 482, 482, 482, 482, 482, 547, 546, 468, 545, 544, 519, 482, 482, 482, 482, 482, 559, 560, 521, 522, 522, 521, 523, 543, 542, 482, 482, 482, 482, 482, 482, 532, 532, 532, 532, 532, 532, 532, 532, 532, 560, 541, 540, 522, 559, 560, 532, 532, 532, 532, 532, 564, 565, 565, 564, 559, 560, 591, 592, 539, 532, 532, 532, 532, 532, 532, 595, 596, 560, 588, 522, 522, 588, 538, 537, 536, 565, 591, 592, 560, 535, 592, 564, 565, 565, 564, 564, 565, 565, 564, 596, 534, 416, 531, 522, 530, 588, 522, 522, 588, 529, 592, 528, 599, 591, 592, 527, 565, 595, 596, 476, 565, 571, 571, 571, 571, 571, 571, 571, 571, 571, 522, 621, 565, 565, 621, 595, 596, 592, 608, 609, 524, 596, 606, 522, 522, 606, 608, 609, 608, 609, 616, 616, 618, 619, 618, 619, 565, 618, 619, 596, 515, 514, 609, 621, 522, 522, 621, 522, 513, 512, 609, 511, 609, 510, 616, 509, 619, 508, 619, 507, 506, 619, 505, 504, 503, 502, 501, 500, 522, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 51, 51, 499, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 65, 65, 65, 498, 497, 65, 70, 70, 496, 70, 70, 70, 70, 70, 70, 139, 139, 495, 494, 139, 493, 139, 492, 491, 490, 139, 139, 142, 142, 489, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 148, 148, 148, 488, 487, 148, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 61, 61, 61, 486, 485, 61, 156, 484, 156, 156, 157, 157, 416, 157, 157, 481, 157, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 163, 163, 480, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 235, 479, 478, 235, 235, 477, 235, 235, 407, 235, 236, 236, 476, 236, 236, 474, 236, 238, 471, 238, 238, 244, 244, 466, 465, 244, 464, 244, 463, 462, 461, 244, 244, 244, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 332, 460, 459, 332, 332, 458, 332, 332, 457, 332, 336, 336, 456, 336, 336, 455, 336, 337, 337, 454, 337, 337, 453, 337, 417, 452, 451, 417, 417, 450, 417, 417, 449, 417, 469, 469, 469, 448, 445, 444, 443, 469, 469, 469, 473, 442, 441, 440, 439, 438, 437, 473, 473, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 483, 436, 435, 483, 483, 434, 483, 483, 433, 483, 516, 516, 516, 432, 431, 430, 429, 516, 516, 516, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 533, 428, 427, 533, 533, 426, 533, 533, 425, 533, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 566, 566, 566, 424, 423, 422, 421, 566, 566, 566, 571, 420, 419, 418, 416, 413, 331, 571, 571, 589, 589, 589, 329, 412, 411, 410, 589, 589, 589, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, 593, 593, 593, 409, 621, 406, 405, 593, 593, 593, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 610, 615, 615, 615, 404, 403, 315, 400, 615, 615, 615, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 620, 620, 620, 620, 620, 620, 620, 620, 399, 398, 620, 397, 396, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 344, 343, 342, 341, 340, 339, 338, 72, 334, 333, 331, 319, 318, 317, 316, 224, 315, 313, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 302, 299, 298, 297, 296, 295, 294, 293, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 257, 256, 255, 254, 253, 252, 251, 250, 249, 247, 241, 240, 232, 232, 232, 230, 229, 228, 227, 226, 223, 222, 221, 220, 219, 216, 215, 214, 213, 212, 211, 210, 207, 206, 205, 202, 201, 200, 199, 198, 197, 196, 195, 194, 189, 188, 187, 186, 183, 182, 181, 180, 179, 178, 177, 176, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 159, 158, 141, 136, 103, 98, 95, 94, 80, 75, 74, 71, 69, 68, 67, 66, 52, 621, 3, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621 } ; static const flex_int16_t yy_chk[1569] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 8, 2, 5, 2, 10, 610, 10, 10, 10, 10, 10, 10, 10, 10, 10, 12, 21, 97, 21, 12, 32, 32, 97, 2, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 63, 63, 8, 13, 27, 13, 13, 13, 13, 13, 13, 13, 13, 13, 27, 28, 28, 24, 14, 14, 29, 38, 13, 13, 28, 38, 28, 24, 29, 24, 36, 29, 13, 14, 14, 24, 26, 13, 13, 34, 60, 36, 604, 26, 601, 43, 37, 34, 36, 37, 26, 39, 37, 34, 39, 40, 26, 13, 41, 34, 42, 43, 40, 41, 48, 60, 39, 39, 41, 39, 44, 83, 83, 44, 42, 44, 45, 45, 45, 45, 47, 49, 599, 47, 49, 49, 598, 92, 45, 45, 45, 45, 45, 45, 45, 45, 45, 92, 149, 149, 48, 45, 50, 50, 50, 50, 50, 50, 50, 52, 55, 112, 72, 586, 112, 52, 52, 52, 52, 52, 52, 52, 45, 58, 58, 45, 138, 139, 45, 55, 55, 61, 45, 53, 53, 53, 53, 53, 53, 53, 53, 53, 52, 98, 55, 55, 108, 58, 72, 120, 61, 61, 108, 126, 98, 128, 126, 130, 126, 120, 65, 128, 138, 139, 146, 61, 61, 52, 54, 322, 54, 54, 54, 54, 54, 54, 54, 54, 54, 65, 65, 137, 160, 164, 137, 137, 585, 54, 54, 146, 151, 151, 153, 153, 65, 65, 244, 54, 140, 130, 582, 148, 54, 54, 203, 130, 140, 140, 140, 140, 140, 140, 140, 203, 151, 581, 153, 322, 160, 573, 148, 148, 54, 56, 56, 56, 56, 56, 56, 56, 56, 56, 244, 572, 140, 148, 148, 211, 164, 561, 56, 56, 56, 131, 56, 161, 131, 175, 161, 211, 156, 156, 175, 175, 328, 56, 56, 56, 242, 259, 259, 242, 557, 56, 59, 59, 59, 59, 59, 59, 59, 59, 59, 156, 305, 156, 555, 377, 161, 305, 553, 59, 59, 59, 305, 59, 305, 551, 156, 131, 328, 242, 131, 377, 156, 131, 59, 59, 59, 131, 144, 414, 403, 548, 59, 403, 144, 144, 144, 144, 144, 144, 144, 155, 155, 155, 155, 155, 155, 155, 155, 155, 162, 162, 162, 162, 162, 162, 162, 191, 231, 191, 546, 405, 191, 191, 405, 414, 231, 231, 231, 231, 231, 231, 231, 234, 315, 315, 315, 543, 542, 234, 234, 234, 234, 234, 234, 234, 306, 471, 306, 191, 471, 306, 306, 472, 231, 541, 472, 540, 315, 162, 230, 230, 230, 230, 524, 323, 527, 524, 323, 527, 539, 537, 230, 230, 230, 230, 230, 230, 230, 230, 230, 529, 238, 238, 529, 230, 237, 237, 237, 237, 237, 237, 237, 237, 237, 536, 535, 402, 402, 402, 402, 470, 470, 532, 533, 238, 230, 238, 531, 230, 568, 323, 230, 568, 323, 569, 230, 323, 569, 245, 238, 323, 402, 530, 528, 470, 238, 245, 245, 245, 245, 245, 245, 245, 335, 467, 467, 467, 467, 532, 523, 514, 335, 335, 335, 335, 335, 335, 335, 469, 469, 469, 469, 570, 513, 245, 570, 570, 589, 600, 467, 589, 600, 473, 473, 473, 473, 473, 517, 517, 335, 336, 512, 511, 469, 476, 476, 476, 509, 336, 336, 336, 336, 336, 336, 336, 336, 336, 473, 508, 507, 506, 517, 505, 336, 336, 336, 336, 336, 476, 516, 516, 516, 516, 519, 519, 504, 336, 336, 336, 336, 336, 336, 336, 415, 415, 415, 415, 415, 415, 415, 415, 415, 503, 501, 516, 500, 499, 519, 415, 415, 415, 415, 415, 520, 520, 521, 521, 521, 521, 521, 498, 496, 415, 415, 415, 415, 415, 415, 482, 482, 482, 482, 482, 482, 482, 482, 482, 520, 495, 493, 521, 558, 558, 482, 482, 482, 482, 482, 526, 526, 526, 526, 560, 560, 563, 563, 492, 482, 482, 482, 482, 482, 482, 567, 567, 558, 562, 562, 562, 562, 489, 488, 487, 526, 590, 590, 560, 485, 563, 564, 564, 564, 564, 566, 566, 566, 566, 567, 484, 483, 481, 562, 480, 588, 588, 588, 588, 479, 590, 478, 571, 592, 592, 477, 564, 594, 594, 475, 566, 571, 571, 571, 571, 571, 571, 571, 571, 571, 588, 593, 593, 593, 593, 596, 596, 592, 597, 597, 474, 594, 606, 606, 606, 606, 607, 607, 609, 609, 611, 611, 612, 612, 617, 617, 593, 619, 619, 596, 466, 465, 597, 615, 615, 615, 615, 606, 464, 460, 607, 459, 609, 457, 611, 456, 612, 454, 617, 451, 450, 619, 449, 447, 445, 444, 443, 442, 615, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 623, 623, 439, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 624, 624, 624, 437, 436, 624, 625, 625, 435, 625, 625, 625, 625, 625, 625, 626, 626, 433, 431, 626, 430, 626, 429, 427, 425, 626, 626, 627, 627, 424, 627, 627, 627, 627, 627, 627, 627, 627, 627, 627, 627, 627, 627, 627, 628, 628, 628, 423, 422, 628, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 630, 630, 630, 421, 420, 630, 631, 419, 631, 631, 632, 632, 417, 632, 632, 413, 632, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 634, 634, 412, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 635, 411, 410, 635, 635, 409, 635, 635, 408, 635, 636, 636, 407, 636, 636, 406, 636, 637, 404, 637, 637, 638, 638, 400, 398, 638, 397, 638, 394, 393, 392, 638, 638, 638, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 640, 391, 390, 640, 640, 389, 640, 640, 388, 640, 641, 641, 387, 641, 641, 386, 641, 642, 642, 385, 642, 642, 384, 642, 643, 383, 381, 643, 643, 380, 643, 643, 379, 643, 644, 644, 644, 378, 376, 375, 374, 644, 644, 644, 645, 373, 372, 370, 369, 368, 367, 645, 645, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 647, 366, 364, 647, 647, 359, 647, 647, 358, 647, 648, 648, 648, 355, 354, 353, 352, 648, 648, 648, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 650, 350, 349, 650, 650, 348, 650, 650, 347, 650, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 653, 653, 653, 346, 344, 343, 342, 653, 653, 653, 654, 341, 339, 338, 337, 333, 332, 654, 654, 655, 655, 655, 330, 327, 326, 325, 655, 655, 655, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 657, 657, 657, 324, 320, 319, 318, 657, 657, 657, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 660, 661, 661, 661, 317, 316, 314, 313, 661, 661, 661, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 662, 663, 663, 663, 663, 663, 663, 663, 663, 312, 310, 663, 308, 307, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, 281, 280, 278, 277, 276, 275, 274, 272, 271, 270, 269, 268, 267, 266, 264, 263, 262, 261, 260, 258, 257, 254, 253, 252, 251, 249, 243, 241, 240, 235, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 210, 209, 208, 207, 206, 205, 204, 202, 200, 199, 198, 197, 196, 195, 194, 193, 192, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 174, 173, 172, 171, 170, 168, 167, 166, 165, 163, 159, 158, 145, 143, 142, 136, 135, 134, 133, 132, 125, 124, 123, 122, 121, 119, 118, 117, 116, 115, 114, 113, 111, 110, 109, 107, 106, 105, 104, 103, 102, 101, 100, 99, 96, 95, 94, 93, 91, 90, 89, 88, 87, 86, 85, 84, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 71, 69, 51, 46, 35, 33, 31, 30, 25, 23, 22, 20, 18, 17, 16, 15, 9, 3, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621 } ; extern int yy_flex_debug; int yy_flex_debug = 0; static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; static char *yy_full_match; static int yy_lp; #define REJECT \ { \ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ ++(yy_lp); \ goto find_rule; \ } #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET #ifndef YYLMAX #define YYLMAX 8192 #endif char yytext[YYLMAX]; char *yytext_ptr; #line 1 "fe/idl.ll" #line 2 "fe/idl.ll" /* COPYRIGHT Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United States of America. All Rights Reserved. This product is protected by copyright and distributed under the following license restricting its use. The Interface Definition Language Compiler Front End (CFE) is made available for your use provided that you include this license and copyright notice on all media and documentation and the software program in which this product is incorporated in whole or part. You may copy and extend functionality (but may not remove functionality) of the Interface Definition Language CFE without charge, but you are not authorized to license or distribute it to anyone else except as part of a product or program developed by you or with the express written consent of Sun Microsystems, Inc. ("Sun"). The names of Sun Microsystems, Inc. and any of its subsidiaries or affiliates may not be used in advertising or publicity pertaining to distribution of Interface Definition Language CFE as permitted herein. This license is effective until terminated by Sun for failure to comply with this license. Upon termination, you shall destroy or return all code and documentation for the Interface Definition Language CFE. IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF IDL_ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. IDL_INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT IDL_ANY OBLIGATION ON THE PART OF Sun OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES TO ASSIST IDL_IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT. SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR IDL_ANY PATENTS BY IDL_INTERFACE DEFINITION LANGUAGE CFE OR IDL_ANY PART THEREOF. IDL_IN NO EVENT WILL SUN OR IDL_ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR IDL_ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19. Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. SunSoft, Inc. 2550 Garcia Avenue Mountain View, California 94043 NOTE: SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. */ /* * idl.ll - Lexical scanner for IDL */ #include "global_extern.h" #include "nr_extern.h" #include "utl_strlist.h" #include "utl_exprlist.h" #include "utl_labellist.h" #include "utl_decllist.h" #include "utl_string.h" #include "utl_err.h" #include "ast_union_label.h" #include "ast_field.h" #include "ast_expression.h" #include "ast_argument.h" #include "ast_operation.h" #include "ast_root.h" #include "fe_interface_header.h" #include "fe_obv_header.h" #include "fe_component_header.h" #include "fe_home_header.h" #include "fe_private.h" #include "fe_extern.h" #include "ast_annotation_appl.h" #include "idl.tab.hpp" static char * idl_wstring_escape_reader (char *); static ACE_CDR::WChar idl_wchar_escape_reader (char *); static ACE_CDR::Char idl_escape_reader (char *); static ACE_CDR::Double idl_atof (char *); static ACE_CDR::LongLong idl_atoi (char *, long); static ACE_CDR::ULongLong idl_atoui (char *, long); static void idl_parse_line_and_file (char *); static void idl_store_pragma (char *); static char * idl_get_pragma_string (char *); static bool idl_valid_version (char *); static AST_Decl * idl_find_node (const char *); #define ace_yytext yytext #ifdef USE_MCPP_BUFFER_LEXING #include "mcpp_yyinput.h" #endif /*USE_MCPP_BUFFER_LEXING*/ #if defined __ANDROID__ && defined ECHO #undef ECHO #endif #line 1456 "fe/idl.yy.cpp" /* SO we don't choke on files that use \r\n */ #line 1458 "fe/idl.yy.cpp" #define INITIAL 0 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include "ace/os_include/os_ctype.h" #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int yylex_destroy (); int yyget_debug (); void yyset_debug ( int debug_flag ); YY_EXTRA_TYPE yyget_extra (); void yyset_extra ( YY_EXTRA_TYPE user_defined ); FILE *yyget_in (); void yyset_in ( FILE * _in_str ); FILE *yyget_out (); void yyset_out ( FILE * _out_str ); int yyget_leng (); char *yyget_text (); int yyget_lineno (); void yyset_lineno ( int _line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (); #else extern int yywrap (); #endif #endif #ifndef YY_NO_UNPUT static void yyunput ( int c, char *buf_ptr ); #endif #ifndef yytext_ptr static void yy_flex_strncpy ( char *, const char *, int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen ( const char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (); #else static int input (); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ int n; \ for ( n = 0; n < max_size && \ (c = ACE_OS::getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (); #define YY_DECL int yylex () #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK /*LINTED*/break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif /* Create the reject buffer large enough to save one state per allowed character. */ if ( ! (yy_state_buf) ) (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); if ( ! (yy_state_buf) ) YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer( yyin, YY_BUF_SIZE ); } yy_load_buffer_state( ); } { #line 123 "fe/idl.ll" #line 1687 "fe/idl.yy.cpp" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); (yy_state_ptr) = (yy_state_buf); *(yy_state_ptr)++ = yy_current_state; yy_match: do { YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 622 ) yy_c = yy_meta[yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; *(yy_state_ptr)++ = yy_current_state; ++yy_cp; } while ( yy_current_state != 621 ); yy_find_action: yy_current_state = *--(yy_state_ptr); (yy_lp) = yy_accept[yy_current_state]; find_rule: /* we branch to this label when backing up */ for ( ; ; ) /* until we find what rule we matched */ { if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) { yy_act = yy_acclist[(yy_lp)]; { (yy_full_match) = yy_cp; break; } } --yy_cp; yy_current_state = *--(yy_state_ptr); (yy_lp) = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 1: YY_RULE_SETUP #line 125 "fe/idl.ll" return IDL_ANY; YY_BREAK case 2: YY_RULE_SETUP #line 126 "fe/idl.ll" return IDL_OBJECT; YY_BREAK case 3: YY_RULE_SETUP #line 127 "fe/idl.ll" return IDL_MODULE; YY_BREAK case 4: YY_RULE_SETUP #line 128 "fe/idl.ll" return IDL_RAISES; YY_BREAK case 5: YY_RULE_SETUP #line 129 "fe/idl.ll" return IDL_READONLY; YY_BREAK case 6: YY_RULE_SETUP #line 130 "fe/idl.ll" return IDL_ATTRIBUTE; YY_BREAK case 7: YY_RULE_SETUP #line 131 "fe/idl.ll" return IDL_EXCEPTION; YY_BREAK case 8: YY_RULE_SETUP #line 132 "fe/idl.ll" return IDL_CONTEXT; YY_BREAK case 9: YY_RULE_SETUP #line 133 "fe/idl.ll" return IDL_INTERFACE; YY_BREAK case 10: YY_RULE_SETUP #line 134 "fe/idl.ll" return IDL_CONST; YY_BREAK case 11: YY_RULE_SETUP #line 135 "fe/idl.ll" return IDL_TYPEDEF; YY_BREAK case 12: YY_RULE_SETUP #line 136 "fe/idl.ll" return IDL_STRUCT; YY_BREAK case 13: YY_RULE_SETUP #line 137 "fe/idl.ll" return IDL_ENUM; YY_BREAK case 14: YY_RULE_SETUP #line 138 "fe/idl.ll" return IDL_STRING; YY_BREAK case 15: YY_RULE_SETUP #line 139 "fe/idl.ll" return IDL_WSTRING; YY_BREAK case 16: YY_RULE_SETUP #line 140 "fe/idl.ll" return IDL_SEQUENCE; YY_BREAK case 17: YY_RULE_SETUP #line 141 "fe/idl.ll" return IDL_UNION; YY_BREAK case 18: YY_RULE_SETUP #line 142 "fe/idl.ll" return IDL_FIXED; YY_BREAK case 19: YY_RULE_SETUP #line 143 "fe/idl.ll" return IDL_SWITCH; YY_BREAK case 20: YY_RULE_SETUP #line 144 "fe/idl.ll" return IDL_CASE; YY_BREAK case 21: YY_RULE_SETUP #line 145 "fe/idl.ll" return IDL_DEFAULT; YY_BREAK case 22: YY_RULE_SETUP #line 146 "fe/idl.ll" return IDL_FLOAT; YY_BREAK case 23: YY_RULE_SETUP #line 147 "fe/idl.ll" return IDL_DOUBLE; YY_BREAK case 24: YY_RULE_SETUP #line 148 "fe/idl.ll" return IDL_LONG; YY_BREAK case 25: YY_RULE_SETUP #line 149 "fe/idl.ll" return IDL_SHORT; YY_BREAK case 26: YY_RULE_SETUP #line 150 "fe/idl.ll" return IDL_UNSIGNED; YY_BREAK case 27: YY_RULE_SETUP #line 151 "fe/idl.ll" return IDL_CHAR; YY_BREAK case 28: YY_RULE_SETUP #line 152 "fe/idl.ll" return IDL_WCHAR; YY_BREAK case 29: YY_RULE_SETUP #line 153 "fe/idl.ll" return IDL_BOOLEAN; YY_BREAK case 30: YY_RULE_SETUP #line 154 "fe/idl.ll" return IDL_OCTET; YY_BREAK case 31: YY_RULE_SETUP #line 155 "fe/idl.ll" return IDL_VOID; YY_BREAK case 32: YY_RULE_SETUP #line 156 "fe/idl.ll" return IDL_NATIVE; YY_BREAK case 33: YY_RULE_SETUP #line 157 "fe/idl.ll" return IDL_LOCAL; YY_BREAK case 34: YY_RULE_SETUP #line 158 "fe/idl.ll" return IDL_ABSTRACT; YY_BREAK case 35: YY_RULE_SETUP #line 160 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_INT8; else { REJECT; } } YY_BREAK case 36: YY_RULE_SETUP #line 168 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_UINT8; else { REJECT; } } YY_BREAK case 37: YY_RULE_SETUP #line 176 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_INT16; else { REJECT; } } YY_BREAK case 38: YY_RULE_SETUP #line 184 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_UINT16; else { REJECT; } } YY_BREAK case 39: YY_RULE_SETUP #line 192 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_INT32; else { REJECT; } } YY_BREAK case 40: YY_RULE_SETUP #line 200 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_UINT32; else { REJECT; } } YY_BREAK case 41: YY_RULE_SETUP #line 208 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_INT64; else { REJECT; } } YY_BREAK case 42: YY_RULE_SETUP #line 216 "fe/idl.ll" { if (idl_global->idl_version_ >= IDL_VERSION_4) return IDL_UINT64; else { REJECT; } } YY_BREAK case 43: YY_RULE_SETUP #line 225 "fe/idl.ll" return IDL_CUSTOM; YY_BREAK case 44: YY_RULE_SETUP #line 226 "fe/idl.ll" return IDL_FACTORY; YY_BREAK case 45: YY_RULE_SETUP #line 227 "fe/idl.ll" return IDL_PRIVATE; YY_BREAK case 46: YY_RULE_SETUP #line 228 "fe/idl.ll" return IDL_PUBLIC; YY_BREAK case 47: YY_RULE_SETUP #line 229 "fe/idl.ll" return IDL_SUPPORTS; YY_BREAK case 48: YY_RULE_SETUP #line 230 "fe/idl.ll" return IDL_TRUNCATABLE; YY_BREAK case 49: YY_RULE_SETUP #line 231 "fe/idl.ll" return IDL_VALUETYPE; YY_BREAK case 50: YY_RULE_SETUP #line 233 "fe/idl.ll" return IDL_COMPONENT; YY_BREAK case 51: YY_RULE_SETUP #line 234 "fe/idl.ll" return IDL_CONSUMES; YY_BREAK case 52: YY_RULE_SETUP #line 235 "fe/idl.ll" return IDL_EMITS; YY_BREAK case 53: YY_RULE_SETUP #line 236 "fe/idl.ll" return IDL_EVENTTYPE; YY_BREAK case 54: YY_RULE_SETUP #line 237 "fe/idl.ll" return IDL_FINDER; YY_BREAK case 55: YY_RULE_SETUP #line 238 "fe/idl.ll" return IDL_GETRAISES; YY_BREAK case 56: YY_RULE_SETUP #line 239 "fe/idl.ll" return IDL_HOME; YY_BREAK case 57: YY_RULE_SETUP #line 240 "fe/idl.ll" return IDL_IMPORT; YY_BREAK case 58: YY_RULE_SETUP #line 241 "fe/idl.ll" return IDL_MULTIPLE; YY_BREAK case 59: YY_RULE_SETUP #line 242 "fe/idl.ll" return IDL_PRIMARYKEY; YY_BREAK case 60: YY_RULE_SETUP #line 243 "fe/idl.ll" return IDL_PROVIDES; YY_BREAK case 61: YY_RULE_SETUP #line 244 "fe/idl.ll" return IDL_PUBLISHES; YY_BREAK case 62: YY_RULE_SETUP #line 245 "fe/idl.ll" return IDL_SETRAISES; YY_BREAK case 63: YY_RULE_SETUP #line 246 "fe/idl.ll" return IDL_TYPEID; YY_BREAK case 64: YY_RULE_SETUP #line 247 "fe/idl.ll" return IDL_TYPEPREFIX; YY_BREAK case 65: YY_RULE_SETUP #line 248 "fe/idl.ll" return IDL_USES; YY_BREAK case 66: YY_RULE_SETUP #line 249 "fe/idl.ll" return IDL_MANAGES; YY_BREAK case 67: YY_RULE_SETUP #line 251 "fe/idl.ll" return IDL_TYPENAME; YY_BREAK case 68: YY_RULE_SETUP #line 252 "fe/idl.ll" return IDL_PORT; YY_BREAK case 69: YY_RULE_SETUP #line 253 "fe/idl.ll" return IDL_MIRRORPORT; YY_BREAK case 70: YY_RULE_SETUP #line 254 "fe/idl.ll" return IDL_PORTTYPE; YY_BREAK case 71: YY_RULE_SETUP #line 255 "fe/idl.ll" return IDL_CONNECTOR; YY_BREAK case 72: YY_RULE_SETUP #line 256 "fe/idl.ll" return IDL_ALIAS; YY_BREAK case 73: YY_RULE_SETUP #line 258 "fe/idl.ll" return IDL_TRUETOK; YY_BREAK case 74: YY_RULE_SETUP #line 259 "fe/idl.ll" return IDL_FALSETOK; YY_BREAK case 75: YY_RULE_SETUP #line 261 "fe/idl.ll" return IDL_INOUT; YY_BREAK case 76: YY_RULE_SETUP #line 262 "fe/idl.ll" return IDL_IN; YY_BREAK case 77: YY_RULE_SETUP #line 263 "fe/idl.ll" return IDL_OUT; YY_BREAK case 78: YY_RULE_SETUP #line 264 "fe/idl.ll" return IDL_ONEWAY; YY_BREAK case 79: YY_RULE_SETUP #line 266 "fe/idl.ll" return IDL_LEFT_SHIFT; YY_BREAK case 80: YY_RULE_SETUP #line 267 "fe/idl.ll" return IDL_RIGHT_SHIFT; YY_BREAK case 81: YY_RULE_SETUP #line 268 "fe/idl.ll" { tao_yylval.strval = ACE::strnew ("::"); return IDL_SCOPE_DELIMITOR; } YY_BREAK case 82: /* rule 82 can match eol */ YY_RULE_SETUP #line 273 "fe/idl.ll" return IDL_ANNOTATION_DECL; // Allow annotation names that start with "annotation" YY_BREAK case 83: YY_RULE_SETUP #line 274 "fe/idl.ll" return IDL_ANNOTATION_SYMBOL; YY_BREAK case 84: YY_RULE_SETUP #line 276 "fe/idl.ll" { // Make sure that this identifier is not a C++ keyword. If it is, // prepend it with a _cxx_. Lookup in the perfect hash table for C++ // keyword and grab the mapping. BTW, the reason for the odd // regular expression is to handle EBCDIC, as well as ASCII. TAO_IDL_CPP_Keyword_Table cpp_key_tbl; const TAO_IDL_CPP_Keyword_Entry *entry = 0; if (!idl_global->preserve_cpp_keywords()) { // This check will ensure that escaped C++ keywords will be // caught and prepended with '_cxx' as non-escaped keywords // are now prepended with '_cxx_'. const char *tmp = ace_yytext[0] == '_' ? ace_yytext + 1 : ace_yytext; entry = cpp_key_tbl.lookup (tmp, static_cast (ACE_OS::strlen (tmp))); } if (entry) { tao_yylval.strval = ACE::strnew (entry->mapping_); } else { tao_yylval.strval = ACE::strnew (ace_yytext); } return IDENTIFIER; } YY_BREAK case 85: YY_RULE_SETUP #line 309 "fe/idl.ll" { tao_yylval.dval = idl_atof (ace_yytext); return IDL_FLOATING_PT_LITERAL; } YY_BREAK case 86: YY_RULE_SETUP #line 313 "fe/idl.ll" { tao_yylval.dval = idl_atof (ace_yytext); return IDL_FLOATING_PT_LITERAL; } YY_BREAK case 87: YY_RULE_SETUP #line 318 "fe/idl.ll" { tao_yylval.fixval = ACE_CDR::Fixed::from_string (ace_yytext); return IDL_FIXED_PT_LITERAL; } YY_BREAK case 88: YY_RULE_SETUP #line 323 "fe/idl.ll" { tao_yylval.ival = idl_atoi (ace_yytext, 10); return IDL_INTEGER_LITERAL; } YY_BREAK case 89: YY_RULE_SETUP #line 327 "fe/idl.ll" { tao_yylval.uival = idl_atoui (ace_yytext, 10); return IDL_UINTEGER_LITERAL; } YY_BREAK case 90: YY_RULE_SETUP #line 331 "fe/idl.ll" { tao_yylval.ival = idl_atoi (ace_yytext, 16); return IDL_INTEGER_LITERAL; } YY_BREAK case 91: YY_RULE_SETUP #line 335 "fe/idl.ll" { tao_yylval.uival = idl_atoui (ace_yytext, 16); return IDL_UINTEGER_LITERAL; } YY_BREAK case 92: YY_RULE_SETUP #line 339 "fe/idl.ll" { tao_yylval.ival = idl_atoi (ace_yytext, 8); return IDL_INTEGER_LITERAL; } YY_BREAK case 93: YY_RULE_SETUP #line 343 "fe/idl.ll" { tao_yylval.uival = idl_atoui (ace_yytext, 8); return IDL_UINTEGER_LITERAL; } YY_BREAK case 94: /* rule 94 can match eol */ YY_RULE_SETUP #line 348 "fe/idl.ll" { /* Skip the quotes */ char * const tmp = ace_yytext; for (size_t i = ACE_OS::strlen (tmp); i-- != 0; ) { if (isspace (tmp[i])) { tmp[i] = '\0'; } else { break; } } tmp[ACE_OS::strlen (tmp) - 1] = '\0'; ACE_NEW_RETURN (tao_yylval.sval, UTL_String (tmp + 1, true), IDL_STRING_LITERAL); return IDL_STRING_LITERAL; } YY_BREAK case 95: /* rule 95 can match eol */ YY_RULE_SETUP #line 368 "fe/idl.ll" { /* Skip the bookends */ char * const tmp = ACE_OS::strdup (ace_yytext); for (size_t i = ACE_OS::strlen (tmp); i-- != 0; ) { if (isspace (tmp[i])) { tmp[i] = '\0'; } else { break; } } tmp[ACE_OS::strlen (tmp) - 1] = '\0'; tao_yylval.wsval = ACE_OS::strdup (idl_wstring_escape_reader (tmp + 2)); ACE_OS::free (tmp); return IDL_WSTRING_LITERAL; } YY_BREAK case 96: YY_RULE_SETUP #line 387 "fe/idl.ll" { tao_yylval.cval = ace_yytext[1]; return IDL_CHARACTER_LITERAL; } YY_BREAK case 97: YY_RULE_SETUP #line 391 "fe/idl.ll" { // octal character constant tao_yylval.cval = idl_escape_reader (ace_yytext + 1); return IDL_CHARACTER_LITERAL; } YY_BREAK case 98: YY_RULE_SETUP #line 396 "fe/idl.ll" { // hexadecimal character constant tao_yylval.cval = idl_escape_reader (ace_yytext + 1); return IDL_CHARACTER_LITERAL; } YY_BREAK case 99: YY_RULE_SETUP #line 401 "fe/idl.ll" { tao_yylval.cval = idl_escape_reader (ace_yytext + 1); return IDL_CHARACTER_LITERAL; } YY_BREAK case 100: YY_RULE_SETUP #line 405 "fe/idl.ll" { // wide character constant tao_yylval.wcval = ace_yytext[2]; return IDL_WCHAR_LITERAL; } YY_BREAK case 101: YY_RULE_SETUP #line 410 "fe/idl.ll" { // hexadecimal wide character constant tao_yylval.wcval = idl_wchar_escape_reader (ace_yytext + 2); return IDL_WCHAR_LITERAL; } YY_BREAK case 102: /* rule 102 can match eol */ #line 416 "fe/idl.ll" case 103: /* rule 103 can match eol */ YY_RULE_SETUP #line 416 "fe/idl.ll" {/* remember pragma */ idl_global->set_lineno (idl_global->lineno () + 1); idl_store_pragma (ace_yytext); break; } YY_BREAK case 104: /* rule 104 can match eol */ #line 422 "fe/idl.ll" case 105: /* rule 105 can match eol */ YY_RULE_SETUP #line 422 "fe/idl.ll" {/* ignore file */ idl_global->set_lineno(idl_global->lineno () + 1); break; } YY_BREAK case 106: /* rule 106 can match eol */ #line 427 "fe/idl.ll" case 107: /* rule 107 can match eol */ YY_RULE_SETUP #line 427 "fe/idl.ll" { idl_parse_line_and_file (ace_yytext); break; } YY_BREAK case 108: /* rule 108 can match eol */ #line 432 "fe/idl.ll" case 109: /* rule 109 can match eol */ YY_RULE_SETUP #line 432 "fe/idl.ll" { idl_parse_line_and_file (ace_yytext); break; } YY_BREAK case 110: /* rule 110 can match eol */ #line 437 "fe/idl.ll" case 111: /* rule 111 can match eol */ YY_RULE_SETUP #line 437 "fe/idl.ll" { idl_parse_line_and_file (ace_yytext); break; } YY_BREAK case 112: /* rule 112 can match eol */ #line 442 "fe/idl.ll" case 113: /* rule 113 can match eol */ YY_RULE_SETUP #line 442 "fe/idl.ll" { idl_parse_line_and_file (ace_yytext); break; } YY_BREAK case 114: /* rule 114 can match eol */ #line 447 "fe/idl.ll" case 115: /* rule 115 can match eol */ YY_RULE_SETUP #line 447 "fe/idl.ll" { /* ignore cpp ident */ idl_global->set_lineno (idl_global->lineno () + 1); break; } YY_BREAK case 116: /* rule 116 can match eol */ YY_RULE_SETUP #line 452 "fe/idl.ll" { /* ignore comments */ idl_global->set_lineno(idl_global->lineno () + 1); break; } YY_BREAK case 117: YY_RULE_SETUP #line 457 "fe/idl.ll" { for (;;) { char const c = yyinput (); if (c == '*') { char const next = yyinput (); if (next == '/') break; else yyunput (c, 0); } else if (c == '\n') { idl_global->set_lineno (idl_global->lineno () + 1); } } break; } YY_BREAK case 118: YY_RULE_SETUP #line 476 "fe/idl.ll" break; YY_BREAK case 119: /* rule 119 can match eol */ YY_RULE_SETUP #line 477 "fe/idl.ll" { idl_global->set_lineno (idl_global->lineno () + 1); break; } YY_BREAK case 120: YY_RULE_SETUP #line 481 "fe/idl.ll" return ace_yytext[0]; YY_BREAK case 121: YY_RULE_SETUP #line 483 "fe/idl.ll" ECHO; YY_BREAK #line 2577 "fe/idl.yy.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of user's declarations */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer () { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); /* "- 2" to take care of EOB's */ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state () { yy_state_type yy_current_state; char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); (yy_state_ptr) = (yy_state_buf); *(yy_state_ptr)++ = yy_current_state; for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 622 ) yy_c = yy_meta[yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; *(yy_state_ptr)++ = yy_current_state; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { int yy_is_jam; YY_CHAR yy_c = 1; while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 622 ) yy_c = yy_meta[yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; yy_is_jam = (yy_current_state == 621); if ( ! yy_is_jam ) *(yy_state_ptr)++ = yy_current_state; return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT static void yyunput (int c, char * yy_bp ) { char *yy_cp; yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ int number_to_move = (yy_n_chars) + 2; char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput () #else static int input () #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return 0; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer( yyin, YY_BUF_SIZE ); } yy_init_buffer( YY_CURRENT_BUFFER, input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state () { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree( (void *) b->yy_ch_buf ); yyfree( (void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == 0) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state () { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = 0; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack () { yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer( b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (const char * yystr ) { return yy_scan_bytes( yystr, (int) strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = (yy_size_t) (_yybytes_len + 2); buf = (char *) yyalloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yynoreturn yy_fatal_error (const char* msg ) { fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno () { return yylineno; } /** Get the input stream. * */ FILE *yyget_in () { return yyin; } /** Get the output stream. * */ FILE *yyget_out () { return yyout; } /** Get the length of the current token. * */ int yyget_leng () { return yyleng; } /** Get the current token. * */ char *yyget_text () { return yytext; } /** Set the current line number. * @param _line_number line number * */ void yyset_lineno (int _line_number ) { yylineno = _line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param _in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * _in_str ) { yyin = _in_str ; } void yyset_out (FILE * _out_str ) { yyout = _out_str ; } int yyget_debug () { return yy_flex_debug; } void yyset_debug (int _bdebug ) { yy_flex_debug = _bdebug ; } static int yy_init_globals () { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = 0; (yy_init) = 0; (yy_start) = 0; (yy_state_buf) = 0; (yy_state_ptr) = 0; (yy_full_match) = 0; (yy_lp) = 0; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = 0; yyout = 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy () { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer( YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = 0; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = 0; yyfree ( (yy_state_buf) ); (yy_state_buf) = 0; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, const char * s2, int n ) { int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (const char * s ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return malloc(size); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return realloc(ptr, size); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 483 "fe/idl.ll" /* subroutines */ static bool same_file (char *path1, char *path2) { char fullpath1 [MAXPATHLEN + 1] = {0}; char fullpath2 [MAXPATHLEN + 1] = {0}; char *fp1 = ACE_OS::realpath (path1, fullpath1); char *fp2 = ACE_OS::realpath (path2, fullpath2); return (fp1 == 0 || fp2 == 0) ? false : FE_Utils::path_cmp (fullpath1,fullpath2) == 0; } // Parse a #line statement generated by the C preprocessor static void idl_parse_line_and_file (char *buf) { char *r = buf; char *h = 0; UTL_String *nm = 0; // Skip initial '#'. if (*r != '#') { return; } else { ++r; } // Check to see if we're running under the screwy Microsoft scheme // of putting #line num instead of #num. if (ACE_OS::strncmp (r, "line", 4) == 0) { r += 5; } // Find line number. while (isspace (*r)) { ++r; } h = r; for (; isdigit (*r); ++r) { continue; } *r++ = 0; idl_global->set_lineno ((long) idl_atoui (h, 10)); // Find file name, if present. for (; *r != '"'; ++r) { if (*r == '\n' || *r == '\0') { return; } } h = ++r; for (; *r != '"'; ++r) { continue; } *r = 0; UTL_String *tmp = 0; if (*h == '\0') { ACE_ERROR ((LM_ERROR, ACE_TEXT ("IDL: No input files\n"))); throw Bailout (); } else { long i; long j; // Put Microsoft-style pathnames into a canonical form. for (i = 0, j = 0; h[j] != '\0'; i++, j++) { if (h[j] == '\\' && h[j + 1] == '\\') { j++; } h[i] = h[j]; } h[i] = '\0'; #if defined (ACE_OPENVMS) // translate this into *nix format as the OpenVMS preprocessor // possibly produced VMS-style paths here. char trans_path[MAXPATHLEN] = ""; char *temp_h = IDL_GlobalData::translateName (h, trans_path); if (temp_h) h = temp_h; else { ACE_ERROR ((LM_ERROR, ACE_TEXT ("Unable to construct full file pathname\n"))); throw Bailout (); } #endif ACE_NEW (tmp, UTL_String (h, true)); idl_global->update_prefix (tmp->get_string ()); idl_global->set_filename (tmp); } UTL_String *fname = idl_global->filename (); bool in_main_file = false; bool is_real_filename = fname->compare (idl_global->real_filename ()) || same_file (fname->get_string(), idl_global->real_filename ()->get_string ()); bool is_main_filename = false; if (!is_real_filename) { #if defined (ACE_OPENVMS) char full_path[MAXPATHLEN] = ""; char *full_fname = ACE_OS::realpath (fname->get_string (), full_path); // I don't see the benefit of using ->compare since this is targeted at IDL identifiers // not at filenames and in the case of OpenVMS (case-insensitive filesystem) gets really // problematic as filenames retrieved through different mechanisms may give different // casing. is_main_filename = FE_Utils::path_cmp (idl_global->main_filename ()->get_string (), full_fname) == 0; #else is_main_filename = fname->compare (idl_global->main_filename ()) || same_file (fname->get_string (), idl_global->main_filename ()->get_string ()); #endif } if (is_real_filename || is_main_filename) { in_main_file = true; } idl_global->set_in_main_file (in_main_file); // Strip off any command line -I prefix that may have been added // by the preprocessor. if (!(idl_global->in_main_file ()) && idl_global->import ()) { ACE_NEW (nm, UTL_String ( FE_Utils::stripped_preproc_include ( fname->get_string ()), true)); // This call also manages the #pragma prefix. idl_global->store_include_file_name (nm); } } // Store a #pragma line into the list of pragmas static void idl_store_pragma (char *buf) { char *sp = buf + 1; int crunched = 0; // Remove all the blanks between the '#' and the 'pragma'. while (*sp != 'p') { ++sp; ++crunched; } char *tp = buf + 1; // This copies the crunched string back to the original, and // also compensates for the behavior of the Sun preprocessor, // which put spaces around the double colons of a non-quoted // scoped name, a case which is possible in #pragma version. // Also eats whitespace, which some preprocessors (for example // Intel) don't automatically do. while (*sp != '\n') { if (*sp == ' ' && (*(sp + 1) == ':' || *(sp + 1) == ' ')) { ++crunched; } else if (*sp == ':' && *(sp + 1) == ' ') { *tp = *sp; ++crunched; ++sp; ++tp; } else { *tp = *sp; ++tp; } ++sp; } // The '\n' is still spaces too far away, with // garbage characters in between. sp -= crunched; *sp = '\0'; if (ACE_OS::strstr (buf + 8, "import") != 0) { idl_global->set_import (true); return; } if (ACE_OS::strstr (buf + 8, "include") != 0) { idl_global->set_import (false); return; } if (ACE_OS::strncmp (buf + 8, "prefix", 6) == 0) { char *new_prefix = idl_get_pragma_string (buf); if (new_prefix != 0) { unsigned long depth = idl_global->scopes ().depth (); // We replace the prefix only if there is a prefix already // associated with this file, otherwise we add the prefix. char *ext_id = idl_global->filename ()->get_string (); ACE_Hash_Map_Entry *entry = 0; int const status = idl_global->file_prefixes ().find (ext_id, entry); if (status == 0) { if (ACE_OS::strcmp (entry->int_id_, "") != 0) { char *trash = 0; idl_global->pragma_prefixes ().pop (trash); delete [] trash; } else if (depth == 1) { // Remove the default "" and bind the new prefix. ACE::strdelete (entry->ext_id_); ACE::strdelete (entry->int_id_); (void) idl_global->file_prefixes ().unbind (entry); (void) idl_global->file_prefixes ().bind (ACE::strnew (ext_id), ACE::strnew (new_prefix)); } } UTL_Scope *top_scope = idl_global->scopes ().top (); if (depth > 1) { top_scope->has_prefix (true); ScopeAsDecl (top_scope)->prefix_scope (top_scope); } idl_global->pragma_prefixes ().push (new_prefix); if (depth == 1) { idl_global->root ()->prefix (new_prefix); } if (idl_global->in_main_file ()) { idl_global->root ()->set_imported (false); top_scope->has_prefix (true); } if (status != 0) { (void) idl_global->file_prefixes ().bind (ACE::strnew (ext_id), ACE::strnew (new_prefix)); } } } else if (ACE_OS::strncmp (buf + 8, "version", 7) == 0) { char *tmp = buf + 16; while (*tmp == ' ' || *tmp == '\t') { ++tmp; } char *number = ACE_OS::strchr (tmp, ' '); if (number == 0) { number = ACE_OS::strchr (tmp, '\t'); } // Used later to trim the type string. ptrdiff_t cutoff = number - tmp; // Most likely this means there is only a version number // without an identifier to apply it to. if (number == 0) { const char *msg = "no identifier or scoped name"; idl_global->err ()->version_syntax_error (msg); return; } while (*number == ' ' || *number == '\t') { ++number; } size_t len = ACE_OS::strlen (number); // For some reason, the SunCC preprocessor adds a trailing space, which // messes with idl_valid_version() below, so we check and remove. while (number[len - 1] == ' ') { number[len - 1] = '\0'; len = ACE_OS::strlen (number); } // Trim the type string after trimming the number string. tmp[cutoff] = '\0'; // This call adds a proper null terminator to tmp, so no need to // do it here. AST_Decl *d = idl_find_node (tmp); if (d == 0) { return; } if (!idl_valid_version (number)) { idl_global->err ()->version_number_error (number); return; } d->version (ACE::strnew (number)); } else if (ACE_OS::strncmp (buf + 8, "ident", 5) == 0) { idl_global->ident_string (buf + 8); } else if (ACE_OS::strncmp (buf + 8, "ID", 2) == 0) { char *tmp = buf + 11; while (*tmp == ' ') { ++tmp; } ACE_CString work (tmp); work = work.substr (0, work.find (' ')); AST_Decl *d = idl_find_node (work.c_str ()); if (d == 0) { return; } char *new_id = idl_get_pragma_string (buf); if (new_id != 0) { if (d->typeid_set ()) { idl_global->err ()->id_reset_error (d->repoID (), new_id); return; } d->repoID (new_id); d->typeid_set (true); } } else if (ACE_OS::strncmp (buf + 8, "DCPS_DATA_TYPE", 14) == 0) { char *sample_type = idl_get_pragma_string (buf); idl_global->add_dcps_data_type (sample_type); // Delete sample_type since add_dcps_data_type() doesn't take its ownership. delete [] sample_type; } else if (ACE_OS::strncmp (buf + 8, "DCPS_DATA_KEY", 13) == 0) { char *tmp = idl_get_pragma_string (buf); // Split up data type and key strings char *sample_type = tmp; while (*tmp && !isspace (*tmp)) { ++tmp; } while (isspace (*tmp)) { *tmp = '\0'; tmp++; } char *key = tmp; if (!idl_global->add_dcps_data_key (sample_type, key)) { ACE_ERROR((LM_ERROR, "DCPS_DATA_TYPE \"%C\" not found for key \"%C\"\n", sample_type, key)); } // Delete sample_type since add_dcps_data_key() doesn't take its ownership. delete [] sample_type; } else if (ACE_OS::strncmp (buf + 8, "DCPS_DATA_SEQUENCE_TYPE", 23) == 0) { char *seq_type = idl_get_pragma_string (buf); idl_global->set_dcps_sequence_type (seq_type); delete [] seq_type; } else if (ACE_OS::strncmp (buf + 8, "DCPS_SUPPORT_ZERO_COPY_READ", 27) == 0) { idl_global->dcps_support_zero_copy_read (true); } else if (ACE_OS::strncmp (buf + 8, "DCPS_GEN_ZERO_COPY_READ", 23) == 0) { idl_global->dcps_gen_zero_copy_read (true); } else if (ACE_OS::strncmp (buf + 8, "ciao lem", 8) == 0) { char *tmp = idl_get_pragma_string (buf); idl_global->add_ciao_lem_file_names (tmp); // Delete tmp since add_ciao_lem_file_names() doesn't take its ownership. delete [] tmp; } else if (ACE_OS::strncmp (buf + 8, "ndds typesupport", 16) == 0) { char *tmp = idl_get_pragma_string (buf); idl_global->add_ciao_rti_ts_file_names (tmp); // Delete tmp since add_ciao_rti_ts_file_names() doesn't take its ownership. delete [] tmp; } else if (ACE_OS::strncmp (buf + 8, "coredx typesupport", 18) == 0) { char *tmp = idl_get_pragma_string (buf); idl_global->add_ciao_coredx_ts_file_names (tmp); // Delete tmp since add_ciao_coredx_ts_file_names() doesn't take its ownership. delete [] tmp; } else if (ACE_OS::strncmp (buf + 8, "opendds typesupport", 19) == 0) { char *tmp = idl_get_pragma_string (buf); idl_global->add_ciao_oci_ts_file_names (tmp); // Delete tmp since add_ciao_oci_ts_file_names() doesn't take its ownership. delete [] tmp; } else if (ACE_OS::strncmp (buf + 8, "splice typesupport", 18) == 0) { char *tmp = idl_get_pragma_string (buf); idl_global->add_ciao_spl_ts_file_names (tmp); // Delete tmp since add_ciao_spl_ts_file_names() doesn't take its ownership. delete [] tmp; } else if ((ACE_OS::strncmp (buf + 8, "ciao ami4ccm interface", 22) == 0) || (ACE_OS::strncmp (buf + 8, "ami4ccm interface", 17) == 0)) { if (idl_global->in_main_file ()) { char *tmp = idl_get_pragma_string (buf); idl_global->add_ciao_ami_iface_names (tmp); // Delete tmp since add_ciao_ami_iface_names() doesn't take its ownership. delete [] tmp; } } else if ((ACE_OS::strncmp (buf + 8, "ciao ami4ccm receptacle", 23) == 0) || (ACE_OS::strncmp (buf + 8, "ami4ccm receptacle", 18) == 0)) { char *tmp = idl_get_pragma_string (buf); if (idl_global->in_main_file ()) { idl_global->add_ciao_ami_recep_names (tmp); } else { /// This is intended for the executor IDL file, /// when a pragma is seen in the main file, but /// it will do no harm in other cases. idl_global->add_included_ami_recep_names (tmp); } // Delete tmp since add_ciao_spl_ts_file_names() doesn't take its ownership. delete [] tmp; } else if ((ACE_OS::strncmp (buf + 8, "ciao ami4ccm idl", 16) == 0) || (ACE_OS::strncmp (buf + 8, "ami4ccm idl", 11) == 0)) { char *tmp = idl_get_pragma_string (buf); /// These pragmas are found in the file where the interface /// that has a AMI4CCM_* counterpart in the *A.idl file /// is declared. We add the filename to the list in all /// IDL files *except* the one where it is found, to /// eliminate a circular include of xxxC.h and xxxAC.h. if (!idl_global->in_main_file ()) { idl_global->add_ciao_ami_idl_fnames (tmp); } // Delete tmp since add_ciao_ami_idl_fnames() doesn't take its ownership. delete [] tmp; } else if (ACE_OS::strncmp (buf + 8, "dds4ccm impl", 12) == 0) { char *tmp = idl_get_pragma_string (buf); idl_global->add_dds4ccm_impl_fnames (tmp); // Delete tmp since add_dds4ccm_impl_fnames() doesn't take its ownership. delete [] tmp; } } /* * idl_atoi - Convert a string of digits into a negative integer according to base b */ static ACE_CDR::LongLong idl_atoi (char *s, long b) { ACE_CDR::LongLong r = 0; // Skip over the dash and possibly spaces after the dash while (*s == '-' || *s == ' ' || *s == '\t') { ++s; } if (b == 8 && *s == '0') { ++s; } else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X')) { s += 2; } for (; *s; ++s) { if (*s <= '9' && *s >= '0') { r = (r * b) + (*s - '0'); } else if (b > 10 && *s <= 'f' && *s >= 'a') { r = (r * b) + (*s - 'a' + 10); } else if (b > 10 && *s <= 'F' && *s >= 'A') { r = (r * b) + (*s - 'A' + 10); } else { break; } } return -r; } /* * idl_atoui - Convert a string of digits into an unsigned integer according to base b */ static ACE_CDR::ULongLong idl_atoui (char *s, long b) { ACE_CDR::ULongLong r = 0; if (b == 8 && *s == '0') { ++s; } else if (b == 16 && *s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X')) { s += 2; } for (; *s; ++s) { if (*s <= '9' && *s >= '0') { r = (r * b) + (*s - '0'); } else if (b > 10 && *s <= 'f' && *s >= 'a') { r = (r * b) + (*s - 'a' + 10); } else if (b > 10 && *s <= 'F' && *s >= 'A') { r = (r * b) + (*s - 'A' + 10); } else { break; } } return r; } /* * Convert a string to a float; atof doesn't seem to work, always. */ static ACE_CDR::Double idl_atof (char *s) { double d = 0.0; double e, k; long neg = 0, negexp = 0; if (*s == '-') { neg = 1; // Skip over the dash and possibly spaces after the dash while (*s == '-' || *s == ' ' || *s == '\t') { ++s; } } while (*s >= '0' && *s <= '9') { d = (d * 10) + *s - '0'; ++s; } if (*s == '.') { ++s; e = 10; while (*s >= '0' && *s <= '9') { d += (*s - '0') / (e * 1.0); e *= 10; ++s; } } if (*s == 'e' || *s == 'E') { ++s; if (*s == '-') { negexp = 1; s++; } else if (*s == '+') { ++s; } e = 0; while (*s >= '0' && *s <= '9') { e = (e * 10) + *s - '0'; ++s; } if (e > 0) { for (k = 1; e > 0; k *= 10, e--) ; if (negexp) { d /= k; } else { d *= k; } } } if (neg) { d *= -1.0; } return d; } /* * Convert (some) escaped characters into their ascii values */ static char idl_escape_reader (char *str) { if (str[0] != '\\') { return str[0]; } switch (str[1]) { case 'n': return '\n'; case 't': return '\t'; case 'v': return '\v'; case 'b': return '\b'; case 'r': return '\r'; case 'f': return '\f'; case 'a': return '\a'; case '\\': return '\\'; case '\?': return '?'; case '\'': return '\''; case '"': return '"'; case 'x': { int i; // hex value for (i = 2; str[i] != '\0' && isxdigit (str[i]); ++i) { continue; } char save = str[i]; str[i] = '\0'; char out = (char)idl_atoui(&str[2], 16); str[i] = save; return out; } ACE_NOTREACHED (break;) default: // check for octal value if (str[1] >= '0' && str[1] <= '7') { int i; for (i = 1; str[i] >= '0' && str[i] <= '7'; ++i) { continue; } char save = str[i]; str[i] = '\0'; char out = (char)idl_atoui(&str[1], 8); str[i] = save; return out; } else { return str[1] - 'a'; } ACE_NOTREACHED (break;) } } /* * Convert escaped hex digits into a wchar */ static ACE_CDR::WChar idl_wchar_escape_reader (char *str) { if (str[0] != '\\' || str[1] != 'u') { return 0; } int i; // get the hex digits for (i = 2; str[i] != '\0' && isxdigit (str[i]); i++) { continue; } char save = str[i]; str[i] = '\0'; ACE_CDR::WChar out = (ACE_CDR::WChar) idl_atoui (&str[2], 16); str[i] = save; return out; } /* * Checks wstring for validity */ static char * idl_wstring_escape_reader (char *str) { return str; } static char * idl_get_pragma_string (char *pragma) { // Get pointers to each end of the substring between the quotes. const char *firstquote = ACE_OS::strchr (pragma, '"'); if (!firstquote) { idl_global->err ()->syntax_error (IDL_GlobalData::PS_PragmaPrefixSyntax); return nullptr; } const char *start = firstquote + 1; const char *end = ACE_OS::strchr (start, '"'); if (!end) { idl_global->err ()->syntax_error ( IDL_GlobalData::PS_PragmaPrefixSyntax); return nullptr; } size_t const len = end - start; char *retval {}; ACE_NEW_RETURN (retval, char[len + 1], nullptr); ACE_OS::strncpy (retval, start, len); retval[len] = '\0'; return retval; } static bool idl_valid_version (char *s) { // Nothing preceding decimal point. if (*s == '.') { return 0; } char *minor = ACE_OS::strchr (s, '.'); int i; if (minor == 0) { // No decimal point. return 0; } if (*(minor + 1) == '\0') { // Nothing following decimal point. return 0; } char *tmp = minor + 1; for (i = 0; tmp[i] != '\0'; ++i) { if (!isdigit (tmp[i])) { return 0; } } ptrdiff_t const len = minor - s; for (i = 0; i < len; ++i) { if (!isdigit (s[i])) { return 0; } } // Major and minor version numbers must be unsigned shorts. if (ACE_OS::atoi (minor + 1) > ACE_UINT16_MAX || ACE_OS::atoi (s) > ACE_UINT16_MAX) { return 0; } return 1; } static AST_Decl * idl_find_node (const char *s) { UTL_ScopedName * node = FE_Utils::string_to_scoped_name (s); AST_Decl * d = 0; if (node != 0) { d = idl_global->scopes ().top_non_null ()->lookup_by_name (node); if (d == 0) { idl_global->err ()->lookup_error (node); } node->destroy (); delete node; } return d; }