#line 3 "loader.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 31 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include #include #include #include /* 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 #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; #endif /* ! C99 */ /* 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 #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned 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 #define YY_BUF_SIZE 16384 #endif #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #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) /* 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) ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef unsigned int yy_size_t; #endif #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. */ yy_size_t 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 NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL 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 = (char *) 0; static int yy_init = 1; /* 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 (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); 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 (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst 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 */ #define yywrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* 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 = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 276 #define YY_END_OF_BUFFER 277 /* 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 yyconst flex_int16_t yy_accept[2471] = { 0, 275, 275, 3, 3, 6, 6, 0, 0, 277, 275, 273, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 3, 3, 3, 6, 6, 6, 276, 276, 275, 275, 274, 275, 273, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 3, 3, 3, 3, 6, 6, 6, 6, 0, 273, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 48, 48, 275, 49, 49, 3, 6, 47, 47, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 19, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 36, 36, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 1, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 38, 38, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 46, 46, 275, 275, 275, 275, 275, 275, 3, 6, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 33, 33, 275, 275, 31, 31, 275, 275, 275, 275, 275, 275, 45, 45, 275, 275, 30, 30, 275, 275, 275, 275, 275, 275, 42, 42, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 34, 34, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 4, 275, 275, 275, 275, 275, 275, 275, 275, 275, 18, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 35, 35, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 29, 29, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 32, 32, 116, 116, 275, 3, 6, 275, 275, 275, 275, 275, 15, 15, 275, 275, 275, 275, 275, 275, 229, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 28, 28, 275, 275, 275, 44, 44, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 121, 121, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 8, 8, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 50, 50, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 12, 12, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 53, 53, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 3, 6, 275, 67, 67, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 40, 40, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 51, 51, 275, 65, 65, 275, 275, 275, 37, 37, 39, 39, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 231, 231, 275, 275, 275, 275, 275, 275, 275, 10, 10, 275, 145, 145, 275, 275, 24, 24, 275, 275, 275, 275, 66, 66, 275, 275, 275, 27, 27, 275, 275, 275, 275, 275, 275, 275, 57, 57, 275, 275, 275, 275, 275, 275, 275, 141, 141, 3, 2, 6, 275, 275, 275, 275, 151, 151, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 190, 190, 275, 275, 191, 191, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 200, 200, 275, 77, 77, 79, 79, 275, 275, 275, 275, 275, 275, 275, 178, 178, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 7, 7, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 111, 111, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 110, 110, 201, 201, 69, 69, 275, 275, 275, 275, 275, 275, 58, 58, 275, 6, 5, 275, 275, 275, 68, 68, 275, 275, 275, 275, 217, 217, 275, 275, 275, 221, 221, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 78, 78, 275, 275, 275, 275, 275, 105, 105, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 21, 21, 275, 275, 275, 275, 275, 86, 86, 275, 275, 82, 82, 275, 275, 275, 9, 9, 70, 70, 71, 71, 87, 87, 275, 275, 128, 128, 275, 275, 74, 74, 73, 73, 275, 275, 275, 216, 216, 275, 275, 275, 275, 275, 275, 275, 123, 123, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 13, 13, 275, 275, 275, 275, 275, 275, 188, 188, 54, 54, 275, 275, 275, 275, 275, 275, 275, 75, 75, 117, 117, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 97, 97, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 59, 59, 275, 103, 103, 275, 187, 187, 275, 275, 275, 275, 275, 275, 230, 230, 275, 108, 108, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 90, 90, 275, 275, 275, 275, 275, 275, 275, 14, 275, 275, 211, 211, 275, 275, 142, 142, 205, 205, 275, 275, 275, 275, 206, 206, 275, 275, 275, 275, 23, 23, 275, 275, 143, 143, 275, 55, 55, 275, 41, 41, 275, 83, 83, 275, 275, 275, 275, 275, 275, 275, 115, 115, 275, 215, 215, 275, 275, 275, 275, 275, 275, 275, 43, 43, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 122, 122, 275, 275, 275, 275, 275, 275, 275, 275, 275, 224, 224, 95, 95, 275, 275, 275, 76, 76, 275, 275, 275, 275, 17, 17, 275, 275, 275, 275, 275, 131, 131, 275, 275, 275, 275, 219, 219, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 189, 189, 127, 127, 275, 275, 275, 52, 52, 275, 275, 226, 226, 275, 275, 275, 275, 275, 275, 275, 251, 251, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 91, 91, 275, 275, 275, 275, 275, 275, 275, 275, 64, 64, 275, 275, 275, 275, 93, 93, 275, 275, 204, 204, 275, 275, 275, 275, 20, 20, 275, 275, 275, 84, 84, 275, 275, 81, 81, 88, 88, 89, 89, 275, 275, 275, 275, 275, 275, 275, 275, 275, 179, 179, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 26, 26, 275, 275, 104, 104, 275, 275, 120, 120, 275, 275, 275, 275, 275, 275, 126, 126, 275, 60, 60, 94, 94, 275, 107, 107, 275, 275, 220, 220, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 245, 245, 275, 275, 275, 275, 275, 254, 254, 275, 275, 275, 275, 257, 257, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 101, 101, 203, 203, 275, 275, 275, 275, 275, 100, 100, 124, 124, 275, 275, 22, 22, 275, 275, 80, 80, 275, 186, 186, 275, 275, 275, 275, 16, 16, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 102, 102, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 25, 25, 275, 106, 106, 275, 275, 180, 180, 223, 223, 129, 129, 275, 275, 275, 275, 275, 275, 275, 275, 275, 136, 136, 275, 275, 275, 198, 198, 275, 275, 275, 275, 275, 275, 228, 228, 275, 11, 11, 275, 275, 275, 236, 236, 275, 275, 275, 275, 266, 266, 275, 275, 242, 242, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 260, 260, 275, 275, 275, 275, 269, 269, 275, 275, 275, 275, 210, 210, 275, 275, 275, 275, 275, 275, 275, 72, 72, 275, 213, 213, 275, 99, 99, 275, 275, 275, 275, 275, 275, 275, 144, 144, 148, 148, 275, 275, 63, 63, 275, 147, 147, 275, 214, 214, 275, 275, 275, 158, 158, 275, 275, 275, 156, 156, 275, 275, 275, 275, 275, 275, 275, 166, 166, 154, 154, 275, 275, 275, 275, 275, 275, 275, 275, 275, 163, 163, 275, 275, 275, 275, 227, 227, 146, 146, 275, 275, 275, 275, 275, 196, 196, 275, 275, 275, 275, 275, 199, 199, 275, 139, 139, 275, 275, 275, 184, 184, 275, 225, 225, 275, 233, 233, 275, 275, 275, 275, 239, 239, 275, 275, 275, 275, 275, 275, 275, 275, 248, 248, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 235, 235, 119, 119, 194, 194, 275, 275, 56, 56, 275, 275, 275, 275, 61, 61, 275, 275, 275, 275, 275, 174, 174, 275, 170, 170, 275, 275, 169, 169, 275, 275, 159, 159, 275, 275, 275, 275, 275, 275, 153, 153, 275, 275, 275, 275, 275, 192, 192, 275, 112, 112, 275, 275, 275, 275, 275, 275, 218, 218, 275, 275, 135, 135, 275, 275, 195, 195, 275, 275, 275, 109, 109, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 263, 263, 275, 275, 125, 125, 140, 140, 275, 181, 181, 275, 275, 275, 275, 193, 193, 275, 275, 118, 118, 275, 98, 98, 62, 62, 275, 275, 275, 114, 114, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 162, 162, 275, 275, 96, 96, 275, 275, 275, 275, 133, 133, 222, 222, 275, 137, 137, 134, 134, 132, 132, 138, 138, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 182, 182, 275, 275, 183, 183, 275, 202, 202, 275, 209, 209, 275, 232, 232, 275, 275, 275, 275, 168, 168, 177, 177, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 185, 185, 212, 212, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 207, 207, 275, 275, 130, 130, 113, 113, 275, 275, 275, 275, 161, 161, 172, 172, 173, 173, 175, 175, 275, 164, 164, 152, 152, 275, 275, 275, 149, 149, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 252, 252, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 197, 197, 208, 208, 275, 275, 157, 157, 275, 275, 275, 275, 275, 275, 275, 275, 234, 234, 275, 275, 275, 275, 275, 275, 275, 275, 275, 246, 246, 275, 275, 253, 253, 275, 255, 255, 275, 275, 275, 258, 258, 275, 275, 275, 275, 85, 85, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 237, 237, 275, 275, 275, 267, 267, 275, 243, 243, 247, 247, 275, 275, 256, 256, 275, 261, 261, 259, 259, 275, 270, 270, 275, 275, 275, 275, 155, 155, 275, 165, 165, 160, 160, 92, 92, 150, 150, 275, 238, 238, 275, 240, 240, 268, 268, 244, 244, 275, 249, 249, 262, 262, 271, 271, 275, 275, 167, 167, 171, 171, 275, 275, 241, 241, 250, 250, 275, 264, 264, 176, 176, 272, 272, 265, 265, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 4, 5, 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, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 1, 1, 1, 6, 7, 1, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 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 yyconst flex_int32_t yy_meta[34] = { 0, 1, 1, 2, 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 yyconst flex_int16_t yy_base[2762] = { 0, 0, 6, 37, 38, 39, 43, 45, 50, 2791, 0, 2792, 2787, 0, 47, 40, 68, 53, 86, 63, 35, 70, 107, 2768, 127, 69, 86, 83, 148, 72, 164, 181, 37, 71, 113, 99, 2786, 0, 62, 2766, 0, 101, 2765, 2792, 111, 0, 2782, 2792, 117, 0, 87, 2768, 2767, 2759, 110, 2754, 2753, 119, 2757, 2767, 111, 2769, 2760, 2754, 115, 2754, 2742, 2747, 2746, 2754, 2757, 2757, 2755, 2743, 2755, 2732, 2741, 2746, 2740, 2738, 2751, 2732, 2730, 2754, 2743, 2734, 118, 2746, 2740, 2729, 2724, 2720, 2735, 2722, 2736, 132, 132, 2731, 2724, 114, 2736, 2720, 2724, 90, 2725, 2727, 2711, 2712, 2726, 2705, 2712, 141, 139, 2712, 2724, 2719, 2714, 146, 2707, 167, 163, 2719, 2719, 2699, 2703, 2712, 2700, 188, 2710, 2702, 2701, 159, 2717, 164, 175, 2716, 2709, 2714, 0, 193, 0, 2704, 0, 200, 0, 2703, 205, 2792, 2711, 2696, 2682, 2690, 2690, 2693, 2685, 2698, 2683, 2683, 2677, 2692, 2669, 2693, 2674, 2671, 146, 2685, 207, 164, 2669, 210, 2693, 2682, 2685, 2665, 2662, 212, 2669, 198, 2677, 209, 2677, 2675, 212, 2656, 2675, 2677, 2674, 2680, 2660, 2652, 2677, 214, 227, 2658, 2647, 2649, 2663, 2662, 2661, 2654, 2655, 2658, 2657, 218, 2642, 2655, 2654, 220, 2653, 2653, 2636, 250, 2649, 2649, 2653, 2627, 2646, 2632, 2641, 2635, 2636, 2651, 2625, 2639, 227, 2631, 2633, 2641, 2622, 2639, 2626, 2612, 2631, 2612, 2619, 2638, 2627, 2622, 218, 2629, 2634, 2608, 2609, 2614, 2613, 2623, 2618, 2615, 2616, 2603, 2618, 2618, 2596, 2602, 2604, 2614, 2618, 2596, 2604, 2598, 2614, 2613, 0, 2612, 2581, 0, 2610, 2591, 2591, 0, 2607, 2579, 2595, 240, 2590, 2603, 2576, 2593, 2595, 2594, 2588, 2581, 2591, 269, 2565, 2580, 2593, 2580, 2572, 2590, 2563, 2578, 2581, 2576, 2575, 2564, 2583, 2564, 2571, 2580, 2571, 2553, 242, 2571, 249, 2792, 2551, 2575, 2548, 2573, 2552, 2552, 2570, 2550, 2544, 2544, 2561, 2555, 2541, 2557, 0, 2562, 2536, 2541, 2559, 2541, 2538, 2532, 2536, 234, 2548, 2536, 2538, 2537, 241, 2526, 252, 2544, 2529, 2542, 2529, 2521, 263, 2544, 2535, 2537, 2518, 2517, 2518, 2517, 2512, 265, 2531, 269, 2792, 276, 2530, 2511, 2508, 273, 2518, 2525, 274, 257, 2530, 2521, 2515, 2522, 2503, 2508, 2519, 2518, 2517, 2521, 2510, 2519, 2498, 2507, 2506, 2491, 2508, 2503, 280, 2495, 2497, 2489, 2504, 2483, 0, 2507, 2497, 2480, 2495, 2478, 2492, 2484, 2500, 2469, 2493, 2487, 2471, 2471, 2494, 2481, 2486, 2465, 2476, 2481, 2478, 2477, 2481, 2457, 0, 2484, 2463, 2469, 2476, 2480, 2479, 2454, 2453, 2456, 2469, 2474, 2449, 2447, 2461, 2470, 2446, 2452, 2461, 2460, 2442, 2440, 0, 2442, 221, 2456, 2443, 2441, 2453, 2438, 2447, 2432, 2441, 2435, 0, 2453, 2438, 2426, 0, 2450, 2425, 2440, 2433, 2427, 2436, 2426, 0, 2443, 2422, 2432, 0, 2440, 2414, 2424, 2430, 2413, 2410, 2429, 0, 2433, 2415, 2431, 278, 2418, 2429, 2419, 2406, 2420, 2402, 2424, 2413, 2414, 2407, 2410, 0, 2419, 2398, 2392, 2402, 2401, 2400, 2399, 2386, 2391, 2393, 2397, 2385, 2384, 2396, 2380, 2384, 2382, 2397, 288, 2401, 2394, 302, 2792, 2399, 2398, 2383, 2382, 2389, 2394, 2393, 2382, 304, 2792, 299, 2391, 2369, 285, 2383, 2363, 2369, 2366, 2356, 2372, 2359, 2374, 2367, 297, 2380, 2354, 2364, 2371, 2371, 2369, 302, 2364, 2347, 0, 2372, 2363, 2370, 2351, 309, 2360, 2342, 2338, 2356, 2345, 2344, 2362, 2342, 2360, 2341, 2345, 310, 2332, 2351, 2345, 2354, 2328, 0, 2352, 2330, 2341, 2349, 2318, 2321, 2346, 2322, 2335, 2333, 2333, 2321, 2340, 2316, 2318, 2323, 2317, 2310, 2328, 0, 2333, 0, 2332, 2331, 2318, 2306, 2303, 2327, 2305, 2311, 2315, 0, 2323, 2322, 308, 2300, 2299, 2303, 2291, 0, 2296, 2292, 2290, 2296, 2292, 2292, 2288, 2293, 2299, 2298, 2288, 2294, 2286, 2299, 2293, 2277, 2282, 2275, 2299, 2293, 2288, 2296, 2281, 2274, 2276, 2287, 2277, 328, 71, 0, 136, 153, 175, 179, 0, 225, 240, 279, 262, 310, 317, 312, 305, 311, 326, 319, 308, 322, 312, 312, 315, 318, 318, 322, 327, 321, 323, 334, 334, 336, 326, 339, 342, 327, 341, 333, 355, 329, 0, 358, 359, 341, 355, 354, 363, 364, 342, 349, 356, 351, 339, 0, 370, 354, 353, 363, 357, 371, 372, 358, 375, 367, 358, 367, 367, 379, 376, 0, 387, 388, 364, 365, 385, 362, 368, 384, 385, 367, 376, 373, 0, 399, 395, 401, 384, 378, 399, 399, 406, 377, 381, 410, 399, 412, 393, 397, 415, 399, 403, 394, 397, 420, 408, 412, 403, 424, 404, 403, 0, 427, 418, 429, 430, 431, 413, 433, 428, 424, 405, 412, 438, 418, 440, 441, 434, 435, 0, 446, 437, 428, 449, 450, 433, 422, 432, 433, 455, 442, 440, 433, 459, 455, 455, 454, 440, 447, 460, 461, 455, 463, 457, 445, 462, 462, 463, 469, 475, 457, 463, 478, 459, 461, 471, 471, 463, 463, 468, 476, 473, 483, 477, 492, 493, 494, 495, 466, 491, 478, 492, 0, 502, 494, 504, 491, 506, 491, 486, 493, 505, 503, 504, 505, 492, 486, 492, 490, 513, 515, 498, 512, 495, 498, 519, 501, 521, 522, 529, 0, 530, 521, 0, 532, 506, 517, 525, 0, 536, 0, 537, 538, 519, 529, 541, 522, 537, 523, 545, 546, 547, 548, 541, 538, 551, 531, 545, 554, 555, 539, 540, 539, 559, 560, 536, 539, 558, 539, 546, 545, 546, 568, 559, 552, 546, 0, 572, 553, 569, 578, 545, 576, 549, 564, 0, 579, 580, 0, 581, 555, 583, 0, 594, 587, 579, 575, 575, 0, 604, 605, 607, 580, 0, 609, 600, 601, 588, 613, 614, 615, 591, 0, 617, 611, 608, 620, 621, 592, 623, 603, 0, 625, 626, 2792, 628, 625, 621, 613, 633, 0, 634, 615, 615, 620, 621, 639, 630, 611, 637, 643, 638, 628, 630, 617, 648, 635, 644, 652, 628, 654, 625, 656, 649, 636, 632, 0, 661, 656, 652, 0, 664, 646, 666, 669, 650, 654, 653, 650, 656, 671, 658, 671, 650, 661, 659, 665, 670, 0, 685, 686, 0, 687, 0, 688, 689, 667, 668, 678, 663, 694, 685, 0, 696, 687, 668, 689, 675, 701, 696, 680, 704, 705, 700, 688, 701, 683, 710, 702, 702, 690, 702, 715, 708, 700, 718, 719, 706, 721, 722, 723, 716, 725, 726, 699, 703, 719, 730, 731, 732, 733, 718, 725, 736, 720, 738, 739, 741, 737, 743, 732, 0, 745, 746, 741, 740, 738, 724, 737, 742, 753, 754, 746, 736, 747, 749, 741, 741, 753, 745, 757, 757, 747, 758, 753, 749, 755, 761, 770, 772, 762, 755, 772, 783, 0, 784, 773, 763, 788, 779, 763, 780, 781, 780, 781, 796, 797, 779, 799, 800, 777, 0, 802, 0, 803, 0, 804, 795, 789, 807, 808, 809, 789, 0, 811, 795, 813, 2792, 795, 807, 817, 0, 818, 792, 810, 791, 808, 0, 823, 796, 825, 802, 0, 827, 805, 819, 823, 831, 832, 814, 811, 815, 816, 831, 830, 834, 839, 827, 842, 826, 848, 849, 850, 842, 835, 840, 855, 856, 839, 858, 842, 860, 844, 856, 839, 839, 844, 850, 867, 847, 849, 860, 859, 0, 873, 874, 857, 876, 851, 873, 0, 879, 871, 872, 881, 883, 874, 885, 879, 867, 888, 889, 883, 891, 875, 872, 894, 895, 873, 873, 884, 899, 890, 901, 0, 902, 903, 880, 905, 900, 907, 0, 908, 893, 910, 0, 911, 912, 903, 914, 0, 915, 0, 916, 0, 918, 0, 919, 920, 921, 0, 922, 917, 924, 0, 925, 0, 926, 913, 928, 904, 0, 930, 923, 919, 916, 915, 925, 919, 937, 0, 938, 939, 913, 923, 928, 929, 923, 933, 932, 933, 929, 943, 933, 945, 929, 948, 945, 950, 934, 938, 951, 944, 937, 952, 952, 942, 937, 954, 949, 947, 965, 972, 963, 960, 0, 975, 976, 967, 953, 979, 963, 960, 0, 982, 0, 983, 984, 985, 986, 973, 969, 979, 990, 0, 991, 0, 992, 983, 964, 976, 996, 997, 988, 999, 1000, 991, 1002, 1003, 983, 987, 1006, 1001, 1008, 0, 1009, 1005, 993, 984, 990, 995, 996, 1007, 994, 1004, 1005, 1001, 1015, 0, 1022, 1005, 0, 1024, 1015, 0, 1026, 1027, 1028, 1023, 1020, 1021, 1032, 0, 1033, 1014, 0, 1035, 1027, 1037, 1008, 1031, 1030, 1028, 1042, 1017, 1044, 1025, 1048, 1021, 1050, 1039, 0, 1052, 1034, 1056, 1033, 1067, 1058, 1059, 1059, 2792, 1061, 1053, 0, 1063, 1047, 1046, 0, 1066, 0, 1067, 1051, 1069, 1060, 1071, 0, 1072, 1075, 1076, 1067, 1070, 0, 1079, 1081, 1082, 0, 1083, 1070, 0, 1085, 1068, 0, 1087, 1088, 0, 1089, 1092, 1072, 1094, 1096, 1097, 1098, 1069, 0, 1100, 1092, 0, 1102, 1090, 1088, 1105, 1086, 1097, 1099, 1092, 0, 1110, 1111, 1102, 1089, 1103, 1091, 1106, 1117, 1109, 1100, 1112, 1101, 1113, 1112, 1105, 1100, 1109, 1117, 1114, 1121, 1107, 1121, 1108, 1112, 1104, 1125, 1126, 1123, 1132, 1115, 1116, 1113, 1123, 1122, 0, 1144, 1122, 1139, 1147, 1131, 1149, 1150, 1134, 1152, 1153, 0, 1154, 0, 1155, 1129, 1132, 1158, 0, 1159, 1160, 1161, 1157, 1163, 0, 1164, 1147, 1166, 1167, 1159, 1169, 0, 1170, 1161, 1152, 1173, 1166, 0, 1175, 1167, 1157, 1178, 1160, 1168, 1169, 1182, 1163, 1174, 1168, 1177, 1166, 1178, 1189, 0, 1190, 0, 1191, 1171, 1193, 1171, 0, 1195, 1187, 1187, 0, 1198, 1199, 1184, 1201, 1202, 1203, 1188, 1184, 0, 1210, 1190, 1195, 1213, 1194, 1216, 1217, 1198, 1220, 1212, 1197, 0, 1224, 1226, 1207, 1208, 1209, 1222, 1225, 1232, 1233, 0, 1234, 1236, 1227, 1239, 1230, 0, 1241, 1242, 1243, 0, 1244, 1245, 1237, 1241, 1248, 0, 1249, 1243, 1241, 1252, 0, 1253, 1244, 1255, 0, 1256, 0, 1257, 0, 1258, 1249, 1250, 1261, 1262, 1263, 1244, 1256, 1266, 1257, 0, 1268, 1269, 1270, 1257, 1248, 1256, 1274, 1275, 1267, 1267, 1254, 1279, 1254, 1256, 1269, 1273, 1278, 1266, 1261, 1288, 1289, 1265, 1271, 1264, 1270, 1289, 1287, 1279, 1283, 1278, 1299, 1295, 1281, 1292, 1286, 0, 1304, 1305, 1306, 0, 1307, 1308, 1309, 0, 1310, 1301, 1307, 1313, 1314, 1315, 1295, 0, 1317, 1309, 0, 1320, 0, 1321, 1322, 0, 1323, 1307, 1299, 0, 1326, 1311, 1322, 1303, 1330, 1331, 1322, 1333, 1334, 1318, 1319, 1320, 1338, 1319, 1340, 1341, 1322, 1343, 1344, 1331, 1323, 1347, 1328, 1350, 1351, 1332, 1354, 1336, 0, 1358, 1338, 1343, 1361, 1337, 1337, 0, 1364, 1344, 1350, 1368, 1349, 0, 1371, 1351, 1356, 1374, 1355, 1354, 1355, 1379, 1352, 1358, 1373, 1360, 1370, 1366, 1380, 0, 1387, 0, 1388, 1389, 1390, 1391, 1392, 1393, 0, 1394, 0, 1395, 1396, 1380, 0, 1398, 1382, 1400, 0, 1401, 1383, 0, 1403, 1381, 1386, 1406, 1407, 0, 1408, 1386, 1410, 1411, 1403, 1413, 1404, 1415, 1406, 1403, 1401, 0, 1419, 1420, 1421, 1405, 1423, 1424, 1401, 1416, 1427, 1403, 1405, 1430, 1408, 1432, 1433, 1421, 1407, 1416, 1418, 1414, 1439, 1410, 1433, 1423, 1443, 1418, 1426, 1446, 1437, 1448, 0, 1449, 1450, 0, 1451, 1452, 1433, 0, 1454, 0, 1455, 0, 1456, 1431, 1448, 1440, 1460, 1444, 1439, 1463, 1441, 1442, 0, 1466, 1467, 1468, 1469, 0, 1470, 1454, 1463, 1473, 1474, 1456, 1476, 0, 1477, 1459, 0, 1479, 1480, 1470, 1482, 0, 1483, 1463, 1468, 1486, 1467, 0, 1489, 1469, 1474, 0, 1492, 1472, 1477, 1470, 1470, 1497, 1478, 1486, 1489, 1477, 1477, 0, 1504, 1484, 1489, 1482, 1482, 0, 1509, 1489, 1494, 1512, 1513, 0, 1514, 1515, 1497, 1518, 1499, 1503, 1512, 1501, 0, 1523, 1524, 0, 1525, 1526, 0, 1527, 1528, 1529, 1520, 1531, 1526, 1533, 1509, 0, 1535, 0, 1536, 1537, 1538, 0, 1539, 1540, 0, 1541, 1523, 0, 1543, 1521, 1528, 1546, 0, 1547, 1548, 1532, 1550, 0, 1551, 1538, 1530, 1554, 1545, 1546, 1557, 1544, 0, 1559, 0, 1560, 1547, 1552, 1540, 1558, 1540, 1566, 1536, 1562, 1569, 0, 1570, 1552, 1554, 1573, 1574, 0, 1575, 0, 1576, 1577, 1559, 1555, 1563, 1556, 0, 1582, 1583, 1584, 1585, 1570, 1587, 0, 1588, 1589, 0, 1590, 1591, 1592, 1593, 0, 1594, 1595, 0, 1596, 1592, 0, 1598, 1585, 1600, 1576, 1576, 0, 1603, 1583, 1588, 1581, 1581, 1583, 1583, 1596, 1599, 0, 1612, 1592, 1597, 1595, 1602, 1603, 1606, 1594, 1594, 1607, 1610, 1598, 1598, 1625, 1606, 1628, 1629, 1630, 1631, 1615, 1616, 1634, 1615, 0, 1636, 0, 1637, 0, 1638, 1639, 1640, 0, 1641, 1625, 1643, 1644, 1645, 0, 1646, 1647, 1623, 1649, 1640, 1651, 0, 1652, 1647, 0, 1654, 1635, 1632, 0, 1657, 1658, 1659, 0, 1660, 1653, 1637, 1640, 1655, 1648, 1656, 0, 1667, 1658, 1652, 1670, 1662, 1666, 0, 1673, 1674, 0, 1675, 1671, 1664, 1668, 1679, 1680, 1681, 0, 1682, 1683, 1684, 0, 1685, 1686, 1687, 0, 1688, 1689, 1666, 1681, 0, 1692, 1679, 1682, 1670, 1670, 1683, 1686, 1685, 1688, 1681, 1688, 1678, 1678, 1686, 1687, 1687, 1694, 1695, 1698, 1691, 1698, 1699, 1702, 0, 1715, 1695, 1700, 0, 1718, 0, 1719, 1720, 0, 1721, 1705, 1723, 1724, 1706, 0, 1726, 1727, 1703, 0, 1729, 1730, 0, 1731, 0, 1732, 1733, 1734, 1735, 0, 1736, 1712, 1719, 1718, 1740, 1741, 1728, 1743, 1744, 1745, 1746, 1741, 1748, 1749, 0, 1750, 1741, 1740, 0, 1753, 1742, 1755, 1750, 1757, 0, 1758, 0, 1759, 1760, 0, 1761, 0, 1762, 0, 1763, 0, 1764, 1757, 1743, 1747, 1754, 1755, 1758, 1751, 1758, 1753, 1760, 1756, 1757, 1763, 1766, 1755, 1780, 1762, 1763, 1763, 1770, 1766, 1767, 1767, 1774, 1764, 1764, 0, 1791, 1792, 1793, 0, 1794, 1795, 0, 1796, 1767, 0, 1798, 1799, 0, 1800, 1801, 1788, 1803, 1794, 0, 1805, 0, 1806, 1782, 1808, 1809, 1810, 1811, 1795, 1813, 1814, 1809, 1802, 1807, 1818, 1795, 0, 1820, 0, 1821, 1799, 1823, 1805, 1806, 1806, 1813, 1809, 1810, 1811, 1812, 1808, 1833, 1814, 1821, 1836, 1837, 1814, 1839, 1821, 1822, 1818, 1843, 1825, 1826, 1832, 1835, 1848, 0, 1849, 1850, 1851, 0, 1852, 0, 1853, 1834, 1855, 1839, 1827, 0, 1858, 0, 1859, 0, 1860, 0, 1861, 1848, 0, 1863, 0, 1864, 1856, 1858, 1848, 0, 1868, 1859, 1856, 1871, 1848, 1873, 1855, 1856, 1852, 1877, 1854, 1879, 1880, 1881, 1863, 1864, 1884, 0, 1885, 1886, 1887, 1864, 1889, 1890, 1891, 1868, 1893, 1874, 1881, 0, 1896, 0, 1897, 1898, 1880, 0, 1900, 1884, 1902, 1884, 1904, 1905, 1906, 1907, 1887, 0, 1909, 1910, 1911, 1888, 1913, 1914, 1915, 1916, 1917, 1918, 0, 1919, 1896, 1921, 0, 1922, 1923, 0, 1924, 1925, 1926, 1927, 0, 1928, 1929, 1930, 1912, 1913, 0, 1933, 1934, 1935, 1936, 1925, 1938, 1939, 1940, 1941, 1917, 1943, 0, 1944, 1945, 1946, 1947, 0, 1948, 1949, 0, 1950, 0, 1951, 1952, 1953, 0, 1954, 1955, 0, 1956, 0, 1957, 1958, 0, 1959, 1936, 1961, 1962, 1963, 0, 1964, 1965, 0, 1966, 0, 1967, 0, 1968, 0, 1969, 1970, 0, 1971, 1972, 0, 1973, 0, 1974, 0, 1975, 1976, 0, 1977, 0, 1978, 0, 1979, 1980, 1981, 0, 1982, 0, 1983, 1984, 1985, 0, 1986, 0, 1987, 1988, 0, 1989, 0, 1990, 0, 1991, 0, 1992, 2792, 1994, 1996, 1998, 2000, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2160, 2161, 2162, 2163, 2164, 2165, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2223, 2224, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2255, 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267, 2268, 2269, 2270, 2271, 2272, 2273, 2274, 2275, 2276, 2277, 2278, 2279, 2280, 2281, 2282, 2283, 2284, 2285, 2286, 2287, 2288, 2289, 2290, 2291 } ; static yyconst flex_int16_t yy_def[2762] = { 0, 2471, 2470, 2472, 2472, 2473, 2473, 2474, 2474, 2470, 2475, 2470, 2476, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2477, 2477, 2477, 2478, 2478, 2478, 2470, 2470, 2475, 2476, 2470, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2479, 2475, 2480, 2477, 2477, 2477, 2477, 2478, 2478, 2478, 2478, 2470, 2470, 2481, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2482, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2483, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2484, 2475, 2475, 2475, 2475, 2475, 2479, 2479, 2475, 2480, 2480, 2477, 2478, 2481, 2481, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2485, 2475, 2475, 2486, 2475, 2475, 2475, 2475, 2475, 2475, 2487, 2475, 2475, 2488, 2475, 2475, 2475, 2475, 2475, 2470, 2475, 2489, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2482, 2482, 2475, 2475, 2490, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2470, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2491, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2483, 2483, 2475, 2475, 2475, 2475, 2475, 2475, 2492, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2484, 2484, 2475, 2475, 2475, 2493, 2494, 2475, 2477, 2478, 2475, 2475, 2475, 2475, 2475, 2495, 2475, 2475, 2475, 2475, 2475, 2475, 2496, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2485, 2485, 2475, 2475, 2486, 2486, 2475, 2475, 2475, 2475, 2475, 2475, 2487, 2487, 2475, 2475, 2488, 2488, 2475, 2475, 2475, 2475, 2475, 2475, 2489, 2489, 2475, 2497, 2475, 2475, 2498, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2490, 2490, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2470, 2499, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2470, 2475, 2500, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2501, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2491, 2491, 2475, 2502, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2492, 2492, 2475, 2475, 2475, 2475, 2475, 2503, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2493, 2493, 2494, 2494, 2475, 2477, 2478, 2475, 2504, 2475, 2475, 2475, 2495, 2495, 2475, 2475, 2475, 2475, 2475, 2475, 2496, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2497, 2497, 2475, 2475, 2475, 2498, 2498, 2475, 2475, 2475, 2475, 2505, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2506, 2475, 2499, 2499, 2507, 2475, 2475, 2475, 2508, 2509, 2475, 2475, 2475, 2475, 2475, 2500, 2500, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2501, 2501, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2502, 2502, 2475, 2510, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2511, 2475, 2512, 2475, 2475, 2513, 2475, 2475, 2475, 2475, 2514, 2475, 2475, 2475, 2515, 2475, 2475, 2503, 2503, 2475, 2475, 2475, 2475, 2475, 2516, 2475, 2475, 2475, 2475, 2475, 2475, 2517, 2477, 2478, 2475, 2504, 2504, 2475, 2475, 2475, 2518, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2519, 2475, 2475, 2520, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2521, 2475, 2522, 2523, 2475, 2475, 2475, 2475, 2505, 2505, 2475, 2475, 2475, 2524, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2506, 2506, 2475, 2507, 2507, 2475, 2475, 2475, 2508, 2508, 2509, 2509, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2525, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2510, 2510, 2475, 2475, 2475, 2475, 2526, 2475, 2475, 2511, 2511, 2475, 2512, 2512, 2475, 2475, 2513, 2513, 2475, 2475, 2475, 2475, 2514, 2514, 2475, 2475, 2475, 2515, 2515, 2475, 2475, 2475, 2527, 2528, 2529, 2475, 2516, 2516, 2475, 2475, 2475, 2475, 2475, 2530, 2475, 2517, 2517, 2477, 2470, 2478, 2475, 2475, 2475, 2531, 2518, 2518, 2475, 2475, 2475, 2475, 2532, 2475, 2475, 2475, 2533, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2519, 2519, 2475, 2475, 2520, 2520, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2521, 2521, 2534, 2522, 2522, 2523, 2523, 2475, 2475, 2475, 2475, 2475, 2535, 2475, 2524, 2524, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2536, 2475, 2475, 2475, 2475, 2537, 2475, 2475, 2538, 2475, 2475, 2475, 2539, 2540, 2541, 2542, 2475, 2475, 2543, 2475, 2475, 2544, 2545, 2475, 2475, 2475, 2525, 2525, 2546, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2547, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2526, 2526, 2475, 2475, 2548, 2475, 2475, 2475, 2475, 2475, 2475, 2549, 2550, 2475, 2475, 2475, 2475, 2527, 2527, 2528, 2528, 2529, 2529, 2475, 2475, 2475, 2551, 2552, 2475, 2530, 2530, 2475, 2478, 2470, 2475, 2475, 2475, 2531, 2531, 2475, 2475, 2475, 2475, 2532, 2532, 2475, 2475, 2475, 2533, 2533, 2475, 2475, 2475, 2475, 2553, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2554, 2475, 2555, 2475, 2556, 2475, 2475, 2475, 2475, 2475, 2475, 2557, 2475, 2558, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2534, 2534, 2559, 2475, 2475, 2475, 2475, 2535, 2535, 2475, 2475, 2560, 2475, 2475, 2561, 2475, 2475, 2562, 2563, 2475, 2475, 2475, 2475, 2564, 2475, 2475, 2475, 2475, 2565, 2475, 2475, 2536, 2536, 2566, 2475, 2567, 2475, 2568, 2537, 2537, 2475, 2569, 2538, 2538, 2475, 2475, 2475, 2539, 2539, 2540, 2540, 2541, 2541, 2542, 2542, 2475, 2475, 2543, 2543, 2475, 2570, 2544, 2544, 2545, 2545, 2475, 2571, 2475, 2546, 2546, 2475, 2475, 2475, 2475, 2475, 2475, 2572, 2547, 2547, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2573, 2475, 2475, 2548, 2548, 2475, 2475, 2475, 2475, 2475, 2475, 2549, 2549, 2550, 2550, 2475, 2574, 2575, 2475, 2475, 2475, 2576, 2551, 2551, 2552, 2552, 2475, 2475, 2475, 2475, 2577, 2475, 2475, 2475, 2475, 2475, 2578, 2475, 2475, 2475, 2475, 2579, 2553, 2553, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2554, 2554, 2475, 2555, 2555, 2475, 2556, 2556, 2580, 2581, 2475, 2475, 2475, 2582, 2583, 2583, 2475, 2584, 2584, 2475, 2585, 2475, 2475, 2475, 2475, 2475, 2475, 2586, 2475, 2475, 2475, 2475, 2475, 2587, 2587, 2475, 2588, 2475, 2475, 2475, 2475, 2589, 2470, 2590, 2475, 2591, 2591, 2475, 2475, 2592, 2592, 2593, 2593, 2475, 2594, 2475, 2475, 2595, 2595, 2596, 2475, 2475, 2475, 2597, 2597, 2475, 2598, 2599, 2599, 2475, 2600, 2600, 2475, 2601, 2601, 2475, 2602, 2602, 2603, 2475, 2475, 2604, 2605, 2606, 2475, 2607, 2607, 2475, 2571, 2571, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2572, 2572, 2608, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2573, 2573, 2475, 2475, 2609, 2475, 2475, 2610, 2475, 2475, 2611, 2574, 2574, 2575, 2575, 2475, 2475, 2475, 2576, 2576, 2475, 2475, 2475, 2612, 2577, 2577, 2475, 2613, 2614, 2475, 2615, 2616, 2616, 2475, 2475, 2617, 2475, 2618, 2618, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2580, 2580, 2581, 2581, 2475, 2475, 2475, 2582, 2582, 2475, 2475, 2585, 2585, 2475, 2475, 2475, 2475, 2619, 2475, 2475, 2586, 2586, 2475, 2475, 2620, 2475, 2475, 2621, 2475, 2475, 2475, 2475, 2588, 2588, 2475, 2475, 2475, 2475, 2475, 2475, 2622, 2623, 2590, 2590, 2475, 2475, 2475, 2475, 2594, 2594, 2475, 2624, 2596, 2596, 2625, 2475, 2475, 2626, 2598, 2598, 2475, 2475, 2627, 2603, 2603, 2475, 2628, 2604, 2604, 2605, 2605, 2606, 2606, 2475, 2475, 2475, 2475, 2629, 2475, 2475, 2475, 2475, 2608, 2608, 2475, 2475, 2475, 2475, 2475, 2630, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2609, 2609, 2475, 2631, 2610, 2610, 2475, 2632, 2611, 2611, 2475, 2475, 2633, 2634, 2635, 2475, 2612, 2612, 2475, 2613, 2613, 2614, 2614, 2475, 2615, 2615, 2475, 2475, 2617, 2617, 2475, 2475, 2475, 2636, 2475, 2475, 2475, 2637, 2475, 2475, 2475, 2475, 2475, 2475, 2638, 2475, 2639, 2475, 2475, 2475, 2640, 2475, 2475, 2641, 2475, 2642, 2475, 2619, 2619, 2475, 2475, 2475, 2475, 2475, 2620, 2620, 2475, 2475, 2643, 2475, 2621, 2621, 2475, 2475, 2644, 2475, 2475, 2475, 2645, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2622, 2622, 2623, 2623, 2646, 2475, 2647, 2475, 2648, 2624, 2624, 2625, 2625, 2475, 2475, 2626, 2626, 2475, 2475, 2627, 2627, 2475, 2628, 2628, 2475, 2475, 2649, 2650, 2629, 2629, 2475, 2475, 2651, 2475, 2652, 2475, 2653, 2475, 2475, 2475, 2630, 2630, 2654, 2475, 2475, 2475, 2655, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2656, 2657, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2658, 2475, 2475, 2475, 2475, 2659, 2631, 2631, 2660, 2632, 2632, 2475, 2475, 2633, 2633, 2634, 2634, 2635, 2635, 2475, 2475, 2475, 2661, 2475, 2475, 2475, 2475, 2475, 2636, 2636, 2662, 2475, 2663, 2637, 2637, 2475, 2475, 2475, 2664, 2475, 2665, 2638, 2638, 2475, 2639, 2639, 2666, 2475, 2475, 2640, 2640, 2475, 2475, 2667, 2475, 2668, 2668, 2475, 2475, 2669, 2669, 2475, 2475, 2475, 2475, 2670, 2475, 2475, 2475, 2475, 2475, 2643, 2643, 2475, 2475, 2475, 2475, 2644, 2644, 2475, 2475, 2475, 2475, 2645, 2645, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2646, 2646, 2671, 2647, 2647, 2672, 2648, 2648, 2673, 2475, 2475, 2674, 2475, 2475, 2475, 2649, 2649, 2650, 2650, 2475, 2675, 2651, 2651, 2475, 2652, 2652, 2475, 2653, 2653, 2475, 2475, 2475, 2654, 2654, 2676, 2475, 2677, 2655, 2655, 2475, 2475, 2678, 2475, 2475, 2679, 2475, 2656, 2656, 2657, 2657, 2475, 2475, 2475, 2475, 2475, 2680, 2475, 2475, 2475, 2658, 2658, 2475, 2475, 2681, 2475, 2682, 2682, 2660, 2660, 2683, 2475, 2475, 2475, 2475, 2661, 2661, 2475, 2475, 2684, 2475, 2475, 2662, 2662, 2685, 2663, 2663, 2475, 2475, 2686, 2664, 2664, 2475, 2665, 2665, 2475, 2666, 2666, 2475, 2687, 2475, 2475, 2667, 2667, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2670, 2670, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2688, 2475, 2689, 2690, 2475, 2691, 2475, 2475, 2475, 2475, 2671, 2671, 2672, 2672, 2673, 2673, 2692, 2475, 2674, 2674, 2475, 2693, 2475, 2694, 2675, 2675, 2695, 2475, 2475, 2475, 2696, 2676, 2676, 2475, 2677, 2677, 2475, 2475, 2678, 2678, 2475, 2475, 2679, 2679, 2475, 2475, 2475, 2475, 2475, 2475, 2680, 2680, 2475, 2475, 2697, 2475, 2475, 2681, 2681, 2698, 2683, 2683, 2475, 2475, 2475, 2475, 2699, 2700, 2684, 2684, 2475, 2701, 2685, 2685, 2702, 2703, 2686, 2686, 2704, 2475, 2475, 2687, 2687, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2688, 2688, 2475, 2475, 2689, 2689, 2690, 2690, 2705, 2691, 2691, 2475, 2475, 2706, 2475, 2692, 2692, 2707, 2475, 2693, 2693, 2708, 2694, 2694, 2695, 2695, 2475, 2709, 2475, 2696, 2696, 2475, 2475, 2475, 2710, 2711, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2697, 2697, 2475, 2475, 2698, 2698, 2475, 2475, 2475, 2712, 2699, 2699, 2700, 2700, 2713, 2701, 2701, 2702, 2702, 2703, 2703, 2704, 2704, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2705, 2705, 2475, 2714, 2706, 2706, 2475, 2707, 2707, 2475, 2708, 2708, 2715, 2709, 2709, 2716, 2475, 2475, 2475, 2710, 2710, 2711, 2711, 2475, 2717, 2718, 2719, 2720, 2475, 2721, 2722, 2475, 2475, 2475, 2723, 2475, 2712, 2712, 2713, 2713, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2724, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2725, 2714, 2714, 2726, 2475, 2715, 2715, 2716, 2716, 2475, 2727, 2475, 2475, 2717, 2717, 2718, 2718, 2719, 2719, 2720, 2720, 2475, 2721, 2721, 2722, 2722, 2475, 2475, 2475, 2723, 2723, 2475, 2475, 2728, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2729, 2475, 2475, 2730, 2724, 2724, 2475, 2731, 2475, 2475, 2475, 2732, 2475, 2475, 2475, 2475, 2725, 2725, 2726, 2726, 2733, 2475, 2727, 2727, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2475, 2728, 2728, 2475, 2734, 2475, 2475, 2475, 2735, 2475, 2736, 2737, 2729, 2729, 2475, 2475, 2730, 2730, 2738, 2731, 2731, 2475, 2739, 2740, 2732, 2732, 2475, 2741, 2475, 2475, 2733, 2733, 2475, 2475, 2742, 2475, 2743, 2744, 2745, 2746, 2475, 2747, 2734, 2734, 2475, 2748, 2749, 2735, 2735, 2750, 2736, 2736, 2737, 2737, 2475, 2751, 2738, 2738, 2752, 2739, 2739, 2740, 2740, 2753, 2741, 2741, 2475, 2475, 2754, 2755, 2742, 2742, 2475, 2743, 2743, 2744, 2744, 2745, 2745, 2746, 2746, 2475, 2747, 2747, 2756, 2748, 2748, 2749, 2749, 2750, 2750, 2757, 2751, 2751, 2752, 2752, 2753, 2753, 2475, 2758, 2754, 2754, 2755, 2755, 2759, 2760, 2756, 2756, 2757, 2757, 2761, 2758, 2758, 2759, 2759, 2760, 2760, 2761, 2761, 0, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470 } ; static yyconst flex_int16_t yy_nxt[2826] = { 0, 2470, 48, 11, 12, 49, 13, 10, 10, 11, 12, 10, 13, 10, 14, 15, 16, 17, 18, 19, 20, 21, 22, 10, 23, 24, 25, 26, 27, 28, 10, 29, 30, 31, 32, 33, 34, 35, 36, 10, 11, 11, 11, 38, 38, 41, 11, 78, 11, 41, 39, 44, 57, 11, 79, 42, 44, 50, 127, 58, 80, 65, 59, 128, 139, 66, 51, 140, 52, 67, 53, 74, 54, 808, 55, 56, 60, 95, 81, 129, 111, 68, 75, 61, 112, 76, 82, 62, 77, 148, 63, 96, 102, 83, 98, 97, 64, 69, 99, 130, 113, 135, 214, 143, 103, 70, 144, 71, 100, 215, 104, 101, 105, 146, 149, 72, 147, 73, 84, 48, 153, 131, 49, 132, 136, 133, 209, 85, 86, 134, 154, 157, 161, 87, 88, 90, 162, 163, 637, 91, 167, 168, 210, 92, 158, 190, 200, 191, 286, 93, 201, 223, 225, 204, 231, 94, 106, 205, 232, 202, 107, 206, 224, 203, 108, 226, 809, 287, 233, 235, 109, 238, 257, 110, 114, 239, 115, 810, 254, 236, 258, 811, 116, 117, 118, 255, 237, 119, 240, 293, 294, 120, 121, 122, 259, 139, 247, 123, 140, 248, 307, 260, 143, 124, 249, 144, 125, 146, 261, 289, 147, 250, 296, 126, 304, 305, 310, 297, 308, 314, 290, 325, 353, 354, 315, 311, 326, 642, 291, 608, 327, 298, 347, 348, 292, 328, 329, 330, 376, 392, 331, 377, 332, 393, 349, 394, 333, 424, 425, 609, 466, 304, 305, 492, 334, 335, 498, 336, 358, 812, 501, 359, 493, 360, 467, 508, 509, 518, 519, 499, 361, 353, 354, 362, 502, 532, 363, 435, 521, 436, 437, 526, 530, 522, 533, 438, 813, 439, 553, 814, 531, 638, 440, 691, 441, 442, 554, 443, 527, 639, 669, 692, 670, 671, 508, 509, 518, 519, 684, 702, 711, 720, 733, 712, 672, 769, 721, 734, 815, 817, 818, 685, 703, 819, 820, 686, 687, 713, 821, 822, 823, 824, 825, 826, 827, 770, 802, 828, 803, 804, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 840, 805, 841, 842, 806, 807, 843, 845, 846, 839, 676, 848, 849, 850, 851, 853, 855, 856, 857, 858, 860, 862, 689, 863, 864, 865, 866, 859, 861, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 705, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 718, 888, 891, 892, 893, 894, 895, 896, 897, 898, 889, 900, 901, 903, 904, 905, 907, 908, 909, 910, 911, 913, 914, 915, 916, 918, 919, 920, 746, 921, 922, 923, 924, 925, 927, 928, 929, 931, 932, 933, 934, 936, 937, 938, 930, 939, 940, 764, 941, 942, 943, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 971, 972, 973, 975, 976, 977, 978, 979, 980, 981, 983, 984, 986, 982, 987, 989, 990, 993, 994, 996, 998, 999, 1000, 1001, 985, 991, 1002, 817, 1003, 1004, 1005, 1007, 1008, 988, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 845, 1030, 848, 1031, 1032, 1033, 853, 855, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 891, 1069, 1070, 1087, 1089, 1090, 1091, 900, 1092, 903, 1093, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1094, 907, 1081, 1082, 1095, 1096, 1083, 1097, 1098, 1084, 1085, 913, 1099, 1086, 1100, 1101, 918, 1102, 1103, 1104, 1106, 1108, 1110, 1111, 927, 1112, 1113, 1114, 1115, 1116, 1118, 1119, 936, 937, 938, 1120, 1121, 1122, 1123, 1124, 1126, 945, 1127, 1128, 1129, 1130, 1132, 1133, 1134, 1135, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1150, 1151, 1152, 1153, 1154, 1146, 1155, 1156, 1157, 971, 1158, 1159, 975, 1160, 1161, 1147, 1148, 1163, 1164, 1162, 1149, 1165, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 993, 1178, 996, 998, 1179, 1180, 1181, 1182, 1183, 1185, 1186, 1007, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1209, 1210, 1211, 1212, 1214, 1216, 1217, 1218, 1220, 1221, 1222, 1223, 1225, 1227, 1229, 1231, 1232, 1233, 1235, 1236, 1237, 1239, 1213, 1241, 1242, 1243, 1244, 1056, 1246, 1247, 1248, 1249, 1250, 1251, 1252, 1253, 1255, 1256, 1257, 1258, 1259, 1260, 1262, 1263, 1264, 1265, 1271, 1261, 1274, 1268, 1272, 1276, 1266, 1269, 1273, 1275, 1277, 1278, 1279, 1267, 1280, 1283, 1270, 1284, 1285, 1286, 1089, 1281, 1287, 1288, 1290, 1291, 1292, 1293, 1282, 1294, 1295, 1296, 1298, 1300, 1301, 1302, 1303, 1304, 1106, 1108, 1110, 1305, 1306, 1307, 1309, 1311, 1312, 1118, 1313, 1120, 1121, 1314, 1315, 1316, 1126, 1317, 1318, 1319, 1320, 1132, 1321, 1322, 1323, 1137, 1324, 1325, 1326, 1327, 1329, 1330, 1331, 1332, 1333, 1334, 1337, 1343, 1340, 1344, 1346, 1338, 1341, 1335, 1339, 1347, 1349, 1350, 1351, 1336, 1352, 1353, 1354, 1355, 1357, 1358, 1360, 1361, 1362, 1363, 1364, 1365, 1366, 1367, 1368, 1369, 1371, 1372, 1373, 1374, 1370, 1178, 1376, 1377, 1378, 1379, 1380, 1185, 1381, 1382, 1384, 1385, 1386, 1388, 1389, 1390, 1392, 1394, 1395, 1396, 1397, 1398, 1400, 1401, 1402, 1403, 1404, 1406, 1407, 1408, 1209, 1410, 1411, 1413, 1414, 1416, 1216, 1417, 1419, 1220, 1420, 1422, 1423, 1225, 1227, 1421, 1229, 1231, 1424, 1425, 1235, 1426, 1428, 1239, 1241, 1429, 1431, 1432, 1246, 1433, 1434, 1435, 1436, 1437, 1438, 1440, 1255, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1452, 1455, 1453, 1457, 1458, 1459, 1460, 1461, 1462, 1454, 1463, 1464, 1465, 1466, 1467, 1468, 1456, 1469, 1470, 1471, 1472, 1473, 1475, 1476, 1477, 1290, 1478, 1479, 1480, 1481, 1482, 1483, 1298, 1300, 1484, 1486, 1488, 1489, 1490, 1491, 1493, 1309, 1311, 1494, 1495, 1496, 1497, 1499, 1500, 1501, 1502, 1503, 1504, 1506, 1507, 1508, 1509, 1510, 1512, 1329, 1513, 1514, 1515, 1516, 1517, 1518, 1519, 1520, 1521, 1522, 1523, 1524, 1343, 1525, 1346, 1526, 1349, 1528, 1530, 1531, 1532, 1533, 1535, 1357, 1536, 1360, 1537, 1539, 1540, 1541, 1542, 1543, 1544, 1546, 1548, 1549, 1550, 1545, 1551, 1553, 1554, 1557, 1376, 1552, 1558, 1555, 1560, 1561, 1567, 1568, 1384, 1570, 1571, 1388, 1572, 1573, 1392, 1394, 1574, 1576, 1577, 1578, 1400, 1556, 1562, 1580, 1581, 1582, 1583, 1406, 1563, 1584, 1586, 1410, 1587, 1413, 1588, 1416, 1589, 1419, 1564, 1565, 1591, 1592, 1593, 1566, 1595, 1597, 1599, 1600, 1428, 1601, 1431, 1602, 1603, 1604, 1605, 1606, 1607, 1608, 1440, 1610, 1611, 1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 1626, 1627, 1628, 1629, 1630, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1475, 1643, 1644, 1646, 1647, 1648, 1650, 1651, 1652, 1654, 1486, 1488, 1655, 1656, 1657, 1493, 1658, 1659, 1660, 1662, 1499, 1663, 1665, 1667, 1668, 1670, 1506, 1671, 1672, 1674, 1675, 1512, 1676, 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 1685, 1686, 1687, 1688, 1689, 1528, 1530, 1690, 1691, 1692, 1535, 1693, 1694, 1539, 1695, 1697, 1698, 1700, 1703, 1696, 1706, 1699, 1701, 1704, 1705, 1548, 1707, 1708, 1710, 1711, 1712, 1713, 1716, 1717, 1718, 1719, 1714, 1721, 1722, 1560, 1720, 1723, 1724, 1725, 1726, 1727, 1729, 1732, 1734, 1570, 1730, 1735, 1736, 1728, 1737, 1738, 1576, 1739, 1741, 1580, 1743, 1744, 1745, 1747, 1586, 1748, 1749, 1751, 1591, 1752, 1754, 1595, 1597, 1599, 1755, 1756, 1757, 1758, 1760, 1761, 1762, 1763, 1764, 1610, 1765, 1767, 1768, 1769, 1770, 1772, 1773, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1766, 1785, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1646, 1801, 1803, 1650, 1804, 1806, 1654, 1807, 1808, 1810, 1812, 1814, 1815, 1662, 1816, 1817, 1665, 1667, 1818, 1670, 1819, 1820, 1674, 1821, 1822, 1823, 1825, 1826, 1827, 1828, 1830, 1831, 1832, 1833, 1834, 1835, 1836, 1838, 1839, 1841, 1842, 1843, 1844, 1846, 1847, 1848, 1849, 1852, 1853, 1854, 1856, 1850, 1857, 1858, 1703, 1859, 1860, 1861, 1863, 1864, 1710, 1865, 1862, 1866, 1868, 1869, 1870, 1716, 1871, 1872, 1874, 1875, 1876, 1877, 1878, 1880, 1881, 1882, 1883, 1884, 1885, 1886, 1887, 1732, 1734, 1889, 1890, 1892, 1893, 1895, 1741, 1743, 1896, 1897, 1747, 1898, 1899, 1751, 1900, 1754, 1901, 1902, 1904, 1906, 1760, 1907, 1908, 1910, 1911, 1913, 1914, 1916, 1917, 1918, 1919, 1772, 1921, 1922, 1923, 1924, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1935, 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1948, 1949, 1950, 1951, 1952, 1954, 1803, 1956, 1806, 1957, 1958, 1810, 1812, 1814, 1959, 1960, 1961, 1963, 1964, 1965, 1966, 1967, 1968, 1825, 1970, 1971, 1973, 1830, 1974, 1975, 1976, 1978, 1979, 1981, 1838, 1982, 1841, 1984, 1985, 1986, 1846, 1987, 1988, 1990, 1991, 1992, 1852, 1993, 1994, 1856, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 1868, 2007, 2008, 2009, 2010, 1874, 2011, 2012, 2013, 2015, 1880, 2016, 2017, 2014, 2018, 2019, 2020, 2021, 2022, 1889, 2024, 1892, 2026, 1895, 2028, 2029, 2030, 2032, 2033, 2034, 2035, 1904, 1906, 2036, 2038, 1910, 2039, 1913, 2040, 1916, 2041, 2042, 2043, 1921, 2045, 2046, 2048, 1926, 2049, 2050, 2052, 2053, 2054, 2056, 2057, 1935, 1937, 2058, 2059, 2060, 2061, 2062, 2064, 2065, 2066, 2067, 1948, 2068, 2069, 2071, 2072, 1954, 1956, 2074, 2075, 2076, 2077, 2078, 1963, 2079, 2080, 2082, 2083, 2084, 1970, 2086, 1973, 2087, 2088, 2090, 1978, 2091, 1981, 2092, 1984, 2093, 2095, 2096, 2097, 1990, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2000, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2119, 2120, 2121, 2123, 2125, 2126, 2128, 2129, 2130, 2131, 2132, 2024, 2026, 2028, 2134, 2135, 2032, 2136, 2138, 2139, 2141, 2038, 2143, 2144, 2145, 2146, 2148, 2045, 2149, 2048, 2150, 2151, 2052, 2152, 2153, 2056, 2154, 2155, 2156, 2157, 2158, 2159, 2064, 2160, 2161, 2163, 2164, 2165, 2071, 2167, 2074, 2168, 2169, 2170, 2171, 2173, 2175, 2082, 2176, 2178, 2086, 2180, 2182, 2090, 2184, 2185, 2186, 2095, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2119, 2209, 2210, 2123, 2125, 2212, 2128, 2213, 2214, 2216, 2217, 2134, 2219, 2220, 2138, 2222, 2141, 2143, 2223, 2225, 2226, 2148, 2227, 2228, 2229, 2231, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2163, 2242, 2243, 2167, 2244, 2245, 2246, 2248, 2173, 2175, 2250, 2178, 2180, 2182, 2184, 2251, 2252, 2253, 2254, 2255, 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267, 2268, 2269, 2270, 2271, 2272, 2273, 2274, 2275, 2276, 2212, 2277, 2279, 2216, 2280, 2219, 2281, 2222, 2283, 2225, 2285, 2286, 2287, 2288, 2231, 2233, 2289, 2291, 2293, 2295, 2297, 2298, 2300, 2302, 2303, 2304, 2305, 2307, 2308, 2248, 2250, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 2320, 2321, 2322, 2323, 2325, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334, 2335, 2337, 2279, 2339, 2340, 2283, 2285, 2341, 2343, 2344, 2345, 2291, 2293, 2295, 2297, 2346, 2300, 2302, 2347, 2348, 2349, 2307, 2350, 2351, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, 2364, 2365, 2366, 2368, 2325, 2369, 2371, 2372, 2373, 2374, 2376, 2377, 2378, 2379, 2380, 2337, 2339, 2382, 2383, 2343, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2353, 2392, 2394, 2395, 2396, 2397, 2399, 2400, 2402, 2404, 2364, 2405, 2406, 2368, 2408, 2371, 2409, 2411, 2413, 2376, 2414, 2416, 2417, 2418, 2382, 2419, 2420, 2422, 2423, 2425, 2427, 2429, 2431, 2432, 2434, 2394, 2435, 2437, 2439, 2399, 2441, 2402, 2404, 2442, 2444, 2408, 2446, 2411, 2413, 2448, 2416, 2449, 2450, 2452, 2454, 2422, 2455, 2425, 2427, 2429, 2431, 2456, 2434, 2458, 2437, 2439, 2441, 2460, 2444, 2446, 2448, 2461, 2463, 2452, 2454, 2465, 2467, 2458, 2460, 2469, 2463, 2465, 2467, 2469, 10, 10, 37, 37, 40, 40, 43, 43, 45, 46, 46, 138, 142, 262, 265, 269, 320, 388, 412, 446, 450, 458, 462, 470, 486, 543, 566, 586, 588, 598, 606, 636, 641, 675, 688, 704, 717, 745, 763, 816, 844, 847, 852, 854, 890, 899, 902, 906, 912, 917, 926, 935, 944, 970, 974, 992, 995, 997, 1006, 1055, 1088, 1105, 1107, 1109, 1117, 1125, 1131, 1136, 1177, 1184, 1208, 1215, 1219, 1224, 1226, 1228, 1230, 1234, 1238, 1240, 1245, 1254, 1289, 1297, 1299, 1308, 1310, 1328, 1342, 1345, 1348, 1356, 1359, 1375, 1383, 1383, 1387, 1391, 1393, 1399, 1405, 1409, 1412, 1415, 1418, 1427, 1430, 1439, 1474, 1485, 1487, 1492, 1498, 1505, 1511, 1527, 1529, 1534, 1356, 1359, 1538, 1547, 1375, 1559, 1383, 1383, 1569, 1387, 1391, 1393, 1575, 1399, 1579, 1405, 1585, 1409, 1412, 1415, 1418, 1590, 1594, 1596, 1598, 1427, 1609, 1645, 1649, 1653, 1661, 1664, 1666, 1669, 1505, 1673, 1511, 1702, 1709, 1715, 1731, 1733, 1740, 1742, 1746, 1750, 1753, 1759, 1771, 1802, 1805, 1809, 1811, 1813, 1824, 1829, 1837, 1840, 1845, 1851, 1855, 1867, 1873, 1879, 1888, 1891, 1894, 1903, 1905, 1909, 1912, 1915, 1920, 1925, 1934, 1936, 1947, 1953, 1955, 1962, 1969, 1972, 1977, 1980, 1983, 1989, 1851, 1855, 1999, 2023, 2025, 2027, 2031, 2037, 2044, 2047, 2051, 2055, 2063, 2070, 1953, 2073, 2081, 2085, 2089, 2094, 2118, 2122, 2124, 2127, 2133, 2137, 2140, 2142, 2147, 2162, 2166, 2172, 2174, 2177, 2179, 2181, 2183, 2211, 2215, 2218, 2221, 2224, 2230, 2232, 2247, 2249, 2278, 2282, 2284, 2290, 2292, 2294, 2296, 2299, 2301, 2306, 2324, 2336, 2338, 2342, 2352, 2363, 2367, 2370, 2375, 2381, 2393, 2398, 2401, 2403, 2407, 2410, 2412, 2415, 2421, 2424, 2426, 2428, 2430, 2433, 2436, 2438, 2440, 2443, 2445, 2447, 2451, 2453, 2457, 2459, 2462, 2464, 2466, 2468, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 768, 599, 767, 766, 765, 764, 762, 761, 760, 759, 589, 587, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 747, 746, 744, 743, 742, 741, 740, 567, 739, 738, 737, 736, 735, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 719, 718, 716, 544, 715, 714, 710, 709, 708, 707, 706, 705, 701, 700, 699, 698, 697, 696, 695, 694, 693, 690, 689, 683, 682, 681, 680, 679, 678, 677, 676, 674, 673, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 487, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 640, 637, 635, 471, 634, 633, 632, 631, 630, 629, 463, 628, 627, 459, 626, 625, 624, 623, 622, 621, 451, 620, 619, 447, 618, 617, 616, 615, 614, 613, 612, 611, 610, 607, 605, 604, 603, 602, 601, 600, 599, 597, 596, 595, 594, 593, 592, 591, 590, 589, 587, 585, 584, 583, 413, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 565, 564, 563, 562, 561, 560, 389, 559, 558, 557, 556, 555, 552, 551, 550, 549, 548, 547, 546, 545, 544, 542, 541, 540, 539, 538, 537, 536, 535, 534, 529, 528, 525, 524, 523, 520, 517, 516, 515, 514, 513, 512, 511, 510, 507, 506, 505, 504, 503, 500, 497, 496, 495, 494, 491, 490, 489, 488, 487, 485, 484, 321, 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 469, 468, 465, 464, 463, 461, 460, 459, 457, 456, 455, 454, 453, 452, 451, 449, 448, 447, 445, 444, 434, 433, 432, 431, 430, 429, 428, 427, 426, 423, 422, 270, 421, 420, 266, 419, 263, 418, 417, 416, 415, 414, 413, 411, 410, 409, 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 391, 390, 389, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 357, 356, 355, 352, 351, 350, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 324, 323, 322, 321, 319, 318, 317, 316, 313, 312, 309, 306, 303, 302, 301, 300, 299, 295, 288, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 268, 267, 266, 264, 263, 256, 253, 252, 251, 246, 245, 244, 243, 242, 241, 234, 230, 229, 228, 227, 222, 221, 220, 219, 218, 217, 216, 213, 212, 211, 208, 207, 199, 198, 197, 196, 195, 194, 193, 192, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 166, 165, 164, 160, 159, 156, 155, 152, 151, 150, 47, 145, 141, 137, 89, 47, 2470, 9, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470 } ; static yyconst flex_int16_t yy_chk[2826] = { 0, 0, 13, 1, 1, 13, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 5, 3, 4, 5, 6, 20, 7, 6, 4, 7, 15, 8, 20, 6, 8, 14, 32, 15, 20, 17, 15, 32, 38, 17, 14, 38, 14, 17, 14, 19, 14, 635, 14, 14, 16, 25, 21, 33, 29, 17, 19, 16, 29, 19, 21, 16, 19, 50, 16, 25, 27, 21, 26, 25, 16, 18, 26, 33, 29, 35, 103, 41, 27, 18, 41, 18, 26, 103, 27, 26, 27, 44, 50, 18, 44, 18, 22, 48, 54, 34, 48, 34, 35, 34, 99, 22, 22, 34, 54, 57, 60, 22, 22, 24, 60, 60, 637, 24, 64, 64, 99, 24, 57, 86, 95, 86, 164, 24, 95, 111, 112, 96, 117, 24, 28, 96, 117, 95, 28, 96, 111, 95, 28, 112, 638, 164, 117, 119, 28, 120, 133, 28, 30, 120, 30, 639, 131, 119, 133, 640, 30, 30, 30, 131, 119, 30, 120, 167, 167, 30, 30, 31, 134, 139, 127, 31, 139, 127, 177, 134, 143, 31, 127, 143, 31, 146, 134, 166, 146, 127, 169, 31, 175, 175, 179, 169, 177, 182, 166, 191, 207, 207, 182, 179, 191, 642, 166, 436, 191, 169, 203, 203, 166, 192, 192, 192, 224, 238, 192, 224, 192, 238, 203, 238, 192, 273, 273, 436, 302, 304, 304, 329, 192, 192, 334, 192, 211, 643, 336, 211, 329, 211, 302, 342, 342, 351, 351, 334, 211, 353, 353, 211, 336, 363, 211, 283, 355, 283, 283, 359, 362, 355, 363, 283, 644, 283, 382, 645, 362, 474, 283, 523, 283, 283, 382, 283, 359, 474, 505, 523, 505, 505, 508, 508, 518, 518, 520, 533, 540, 548, 560, 540, 505, 601, 548, 560, 646, 647, 648, 520, 533, 649, 650, 520, 520, 540, 651, 652, 653, 654, 655, 656, 657, 601, 634, 658, 634, 634, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 634, 670, 671, 634, 634, 672, 673, 674, 668, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 689, 690, 691, 692, 693, 685, 686, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 719, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 760, 754, 761, 762, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 802, 806, 807, 807, 808, 809, 810, 811, 812, 813, 814, 804, 807, 815, 817, 818, 819, 820, 821, 822, 806, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 845, 846, 848, 849, 850, 851, 853, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 891, 892, 893, 895, 896, 897, 898, 900, 901, 903, 904, 893, 894, 894, 894, 894, 894, 894, 894, 894, 894, 905, 907, 894, 894, 908, 909, 894, 910, 911, 894, 894, 913, 914, 894, 915, 916, 918, 919, 920, 921, 922, 923, 924, 925, 927, 928, 929, 930, 931, 932, 933, 934, 936, 937, 937, 939, 939, 940, 941, 942, 943, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 961, 962, 963, 964, 965, 966, 961, 967, 968, 969, 971, 972, 973, 975, 976, 977, 961, 961, 978, 979, 977, 961, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 993, 994, 996, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1032, 1051, 1052, 1053, 1054, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1076, 1070, 1078, 1075, 1077, 1079, 1074, 1075, 1077, 1078, 1080, 1081, 1082, 1074, 1083, 1084, 1075, 1085, 1086, 1087, 1089, 1083, 1090, 1091, 1092, 1093, 1094, 1095, 1083, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1106, 1108, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1118, 1119, 1120, 1120, 1122, 1123, 1124, 1126, 1127, 1128, 1129, 1130, 1132, 1133, 1134, 1135, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1150, 1149, 1151, 1152, 1148, 1149, 1147, 1148, 1153, 1154, 1155, 1156, 1147, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1172, 1178, 1179, 1180, 1181, 1182, 1183, 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1209, 1210, 1211, 1212, 1213, 1214, 1216, 1217, 1218, 1220, 1221, 1222, 1223, 1225, 1227, 1221, 1229, 1231, 1232, 1233, 1235, 1236, 1237, 1239, 1241, 1242, 1243, 1244, 1246, 1247, 1248, 1249, 1250, 1251, 1252, 1253, 1255, 1256, 1257, 1258, 1259, 1260, 1261, 1262, 1263, 1264, 1265, 1266, 1267, 1268, 1267, 1269, 1270, 1271, 1272, 1273, 1274, 1267, 1275, 1276, 1277, 1278, 1279, 1280, 1268, 1281, 1282, 1283, 1284, 1285, 1286, 1287, 1288, 1290, 1291, 1292, 1293, 1294, 1295, 1296, 1298, 1300, 1301, 1302, 1303, 1304, 1305, 1306, 1307, 1309, 1311, 1312, 1313, 1314, 1315, 1316, 1317, 1318, 1319, 1320, 1321, 1322, 1323, 1324, 1325, 1326, 1327, 1329, 1330, 1331, 1332, 1333, 1334, 1335, 1336, 1337, 1338, 1339, 1340, 1341, 1343, 1344, 1346, 1347, 1349, 1350, 1351, 1352, 1353, 1354, 1355, 1357, 1358, 1360, 1361, 1362, 1363, 1364, 1365, 1366, 1367, 1368, 1369, 1370, 1370, 1367, 1371, 1372, 1373, 1374, 1376, 1371, 1377, 1373, 1378, 1379, 1381, 1382, 1383, 1385, 1386, 1388, 1389, 1390, 1392, 1394, 1395, 1396, 1397, 1398, 1400, 1373, 1380, 1401, 1402, 1403, 1404, 1406, 1380, 1407, 1408, 1410, 1411, 1413, 1414, 1416, 1417, 1419, 1380, 1380, 1420, 1421, 1422, 1380, 1423, 1424, 1425, 1426, 1428, 1429, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1438, 1440, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1452, 1453, 1454, 1455, 1456, 1457, 1458, 1459, 1460, 1461, 1462, 1463, 1464, 1465, 1466, 1467, 1468, 1469, 1470, 1471, 1472, 1473, 1475, 1476, 1477, 1478, 1479, 1480, 1481, 1482, 1483, 1484, 1486, 1488, 1489, 1490, 1491, 1493, 1494, 1495, 1496, 1497, 1499, 1500, 1501, 1502, 1503, 1504, 1506, 1507, 1508, 1509, 1510, 1512, 1513, 1514, 1515, 1516, 1517, 1518, 1519, 1520, 1521, 1522, 1523, 1524, 1525, 1526, 1528, 1530, 1531, 1532, 1533, 1535, 1536, 1537, 1539, 1540, 1541, 1542, 1543, 1544, 1540, 1546, 1542, 1543, 1545, 1545, 1548, 1549, 1550, 1551, 1552, 1552, 1553, 1554, 1555, 1555, 1556, 1553, 1557, 1558, 1560, 1556, 1561, 1562, 1563, 1564, 1565, 1566, 1567, 1568, 1570, 1566, 1571, 1572, 1565, 1573, 1574, 1576, 1577, 1578, 1580, 1581, 1582, 1583, 1584, 1586, 1587, 1588, 1589, 1591, 1592, 1593, 1595, 1597, 1599, 1600, 1601, 1602, 1603, 1604, 1605, 1606, 1607, 1608, 1610, 1611, 1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 1626, 1627, 1628, 1611, 1629, 1630, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 1644, 1646, 1647, 1648, 1650, 1651, 1652, 1654, 1655, 1656, 1657, 1658, 1659, 1660, 1662, 1660, 1663, 1665, 1667, 1668, 1670, 1671, 1672, 1674, 1675, 1676, 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 1685, 1686, 1687, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 1695, 1696, 1696, 1697, 1698, 1699, 1699, 1700, 1697, 1701, 1701, 1703, 1704, 1705, 1706, 1707, 1708, 1710, 1711, 1706, 1712, 1713, 1714, 1714, 1716, 1717, 1718, 1719, 1720, 1720, 1721, 1722, 1723, 1724, 1725, 1726, 1727, 1728, 1729, 1730, 1732, 1734, 1735, 1736, 1737, 1738, 1739, 1741, 1743, 1744, 1745, 1747, 1748, 1749, 1751, 1752, 1754, 1755, 1756, 1757, 1758, 1760, 1761, 1762, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1772, 1773, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1801, 1803, 1804, 1806, 1807, 1808, 1810, 1812, 1814, 1815, 1816, 1817, 1818, 1819, 1820, 1821, 1822, 1823, 1825, 1826, 1827, 1828, 1830, 1831, 1832, 1833, 1834, 1835, 1836, 1838, 1839, 1841, 1842, 1843, 1844, 1846, 1847, 1848, 1849, 1850, 1850, 1852, 1853, 1854, 1856, 1857, 1858, 1859, 1860, 1861, 1862, 1862, 1863, 1864, 1865, 1866, 1868, 1869, 1870, 1871, 1872, 1874, 1875, 1876, 1877, 1878, 1880, 1881, 1882, 1877, 1883, 1884, 1885, 1886, 1887, 1889, 1890, 1892, 1893, 1895, 1896, 1897, 1898, 1899, 1900, 1901, 1902, 1904, 1906, 1907, 1908, 1910, 1911, 1913, 1914, 1916, 1917, 1918, 1919, 1921, 1922, 1923, 1924, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1935, 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1948, 1949, 1950, 1951, 1952, 1954, 1956, 1957, 1958, 1959, 1960, 1961, 1963, 1964, 1965, 1966, 1967, 1968, 1970, 1971, 1973, 1974, 1975, 1976, 1978, 1979, 1981, 1982, 1984, 1985, 1986, 1987, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2024, 2026, 2028, 2029, 2030, 2032, 2033, 2034, 2035, 2036, 2038, 2039, 2040, 2041, 2042, 2043, 2045, 2046, 2048, 2049, 2050, 2052, 2053, 2054, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2064, 2065, 2066, 2067, 2068, 2069, 2071, 2072, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2082, 2083, 2084, 2086, 2087, 2088, 2090, 2091, 2092, 2093, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2119, 2120, 2121, 2123, 2125, 2126, 2128, 2129, 2130, 2131, 2132, 2134, 2135, 2136, 2138, 2139, 2141, 2143, 2144, 2145, 2146, 2148, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2160, 2161, 2163, 2164, 2165, 2167, 2168, 2169, 2170, 2171, 2173, 2175, 2176, 2178, 2180, 2182, 2184, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2212, 2213, 2214, 2216, 2217, 2219, 2220, 2222, 2223, 2225, 2226, 2227, 2228, 2229, 2231, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2248, 2250, 2251, 2252, 2253, 2254, 2255, 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267, 2268, 2269, 2270, 2271, 2272, 2273, 2274, 2275, 2276, 2277, 2279, 2280, 2281, 2283, 2285, 2286, 2287, 2288, 2289, 2291, 2293, 2295, 2297, 2298, 2300, 2302, 2303, 2304, 2305, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 2320, 2321, 2322, 2323, 2325, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334, 2335, 2337, 2339, 2340, 2341, 2343, 2344, 2345, 2346, 2347, 2348, 2349, 2350, 2351, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, 2364, 2365, 2366, 2368, 2369, 2371, 2372, 2373, 2374, 2376, 2377, 2378, 2379, 2380, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392, 2394, 2395, 2396, 2397, 2399, 2400, 2402, 2404, 2405, 2406, 2408, 2409, 2411, 2413, 2414, 2416, 2417, 2418, 2419, 2420, 2422, 2423, 2425, 2427, 2429, 2431, 2432, 2434, 2435, 2437, 2439, 2441, 2442, 2444, 2446, 2448, 2449, 2450, 2452, 2454, 2455, 2456, 2458, 2460, 2461, 2463, 2465, 2467, 2469, 2471, 2471, 2472, 2472, 2473, 2473, 2474, 2474, 2475, 2476, 2476, 2477, 2478, 2479, 2480, 2481, 2482, 2483, 2484, 2485, 2486, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2546, 2547, 2548, 2549, 2550, 2551, 2552, 2553, 2554, 2555, 2556, 2557, 2558, 2559, 2560, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2567, 2568, 2569, 2570, 2571, 2572, 2573, 2574, 2575, 2576, 2577, 2578, 2579, 2580, 2581, 2582, 2583, 2584, 2585, 2586, 2587, 2588, 2589, 2589, 2590, 2591, 2592, 2593, 2594, 2595, 2596, 2597, 2598, 2599, 2600, 2601, 2602, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610, 2611, 2612, 2613, 2614, 2615, 2616, 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2626, 2627, 2628, 2629, 2630, 2631, 2632, 2633, 2634, 2635, 2636, 2637, 2638, 2639, 2640, 2641, 2642, 2643, 2644, 2645, 2646, 2647, 2648, 2649, 2650, 2651, 2652, 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, 2671, 2672, 2673, 2674, 2675, 2676, 2677, 2678, 2679, 2680, 2681, 2682, 2683, 2684, 2685, 2686, 2687, 2688, 2689, 2690, 2691, 2692, 2693, 2694, 2695, 2696, 2697, 2698, 2699, 2700, 2701, 2702, 2703, 2704, 2705, 2706, 2707, 2708, 2709, 2710, 2711, 2712, 2713, 2714, 2715, 2716, 2717, 2718, 2719, 2720, 2721, 2722, 2723, 2724, 2725, 2726, 2727, 2728, 2729, 2730, 2731, 2732, 2733, 2734, 2735, 2736, 2737, 2738, 2739, 2740, 2741, 2742, 2743, 2744, 2745, 2746, 2747, 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2755, 2756, 2757, 2758, 2759, 2760, 2761, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 605, 604, 603, 602, 600, 599, 597, 596, 595, 594, 593, 592, 591, 590, 589, 587, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 565, 564, 563, 562, 561, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 547, 546, 545, 544, 542, 541, 539, 538, 537, 536, 535, 534, 532, 531, 530, 529, 528, 527, 526, 525, 524, 522, 521, 517, 516, 515, 514, 513, 512, 511, 510, 507, 506, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 487, 485, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 473, 472, 471, 469, 468, 467, 466, 465, 464, 463, 461, 460, 459, 457, 456, 455, 454, 453, 452, 451, 449, 448, 447, 445, 444, 443, 442, 441, 440, 439, 438, 437, 435, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 411, 410, 409, 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 387, 386, 385, 384, 383, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 361, 360, 358, 357, 356, 352, 350, 349, 348, 347, 346, 345, 344, 343, 341, 340, 339, 338, 337, 335, 333, 332, 331, 330, 328, 327, 326, 325, 324, 323, 322, 321, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 306, 303, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 282, 281, 280, 279, 278, 277, 276, 275, 274, 272, 271, 270, 268, 267, 266, 264, 263, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 210, 209, 208, 206, 205, 204, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 190, 189, 188, 187, 186, 185, 184, 183, 181, 180, 178, 176, 174, 173, 172, 171, 170, 168, 165, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 145, 141, 137, 136, 135, 132, 130, 129, 128, 126, 125, 124, 123, 122, 121, 118, 116, 115, 114, 113, 110, 109, 108, 107, 106, 105, 104, 102, 101, 100, 98, 97, 94, 93, 92, 91, 90, 89, 88, 87, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 63, 62, 61, 59, 58, 56, 55, 53, 52, 51, 46, 42, 39, 36, 23, 12, 9, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470, 2470 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "loader.l" #line 2 "loader.l" /* * static char *rcsid_object_c = * "$Id: loader.c,v 1.2 2006/02/03 07:28:22 root Exp $"; */ /* CrossFire, A Multiplayer game for X-windows Copyright (C) 2002 Mark Wedel & Crossfire Development Team Copyright (C) 1992 Frank Tore Johansen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The authors can be reached via e-mail at crossfire-devel@real-time.com */ /* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects. sub/add_weight will transcend the environment updating the carrying variable. */ #include #include #include #include #define YY_DECL int lex_load(object *op, int map_flags) static char *yval(); static int lex_error; static char msgbuf[HUGE_BUF]; static char lorebuf[HUGE_BUF]; /* This table is only necessary to convert objects that existed before the * spell object conversion to the new object. It was not practical * to go through every mapping looking for every potion, rod, wand, etc * that had a sp set and update to the new value. So this maps the * old spell numbers to the name of the new archs. * If you are adding a new spell, you should not modify this - you * new spell won't have been used, and thus won't have any legacy object. * NULL entries in this table are valid - to denote objects that should * not be updated for whatever reason. */ char *spell_mapping[] = { "spell_magic_bullet", /* 0 */ "spell_small_fireball", /* 1 */ "spell_medium_fireball", /* 2 */ "spell_large_fireball", /* 3 */ "spell_burning_hands", /* 4 */ "spell_sm_lightning", /* 5 */ "spell_large_lightning", /* 6 */ "spell_magic_missile", /* 7 */ "spell_create_bomb", /* 8 */ "spell_summon_golem", /* 9 */ "spell_summon_fire_elemental", /* 10 */ "spell_summon_earth_elemental", /* 11 */ "spell_summon_water_elemental", /* 12 */ "spell_summon_air_elemental", /* 13 */ "spell_dimension_door", /* 14 */ "spell_create_earth_wall", /* 15 */ "spell_paralyze", /* 16 */ "spell_icestorm", /* 17 */ "spell_magic_mapping", /* 18 */ "spell_turn_undead", /* 19 */ "spell_fear", /* 20 */ "spell_poison_cloud", /* 21 */ "spell_wonder", /* 22 */ "spell_destruction", /* 23 */ "spell_perceive_self", /* 24 */ "spell_word_of_recall", /* 25 */ "spell_invisible", /* 26 */ "spell_invisible_to_undead", /* 27 */ "spell_probe", /* 28 */ "spell_lg_magic_bullet", /* 29 */ "spell_improved_invisibility", /* 30 */ "spell_holy_word", /* 31 */ "spell_minor_healing", /* 32 */ "spell_medium_healing", /* 33 */ "spell_major_healing", /* 34 */ "spell_heal", /* 35 */ "spell_create_food", /* 36 */ "spell_earth_to_dust", /* 37 */ "spell_armour", /* 38 */ "spell_strength", /* 39 */ "spell_dexterity", /* 40 */ "spell_constitution", /* 41 */ "spell_charisma", /* 42 */ "spell_create_fire_wall", /* 43 */ "spell_create_frost_wall", /* 44 */ "spell_protection_from_cold", /* 45 */ "spell_protection_from_electricity", /* 46 */ "spell_protection_from_fire", /* 47 */ "spell_protection_from_poison", /* 48 */ "spell_protection_from_slow", /* 49 */ "spell_protection_from_paralysis", /* 50 */ "spell_protection_from_draining", /* 51 */ "spell_protection_from_magic", /* 52 */ "spell_protection_from_attack", /* 53 */ "spell_levitate", /* 54 */ "spell_small_speedball", /* 55 */ "spell_large_speedball", /* 56 */ "spell_hellfire", /* 57 */ "spell_dragonbreath", /* 58 */ "spell_large_icestorm", /* 59 */ "spell_charging", /* 60 */ "spell_polymorph", /* 61 */ "spell_cancellation", /* 62 */ "spell_confusion", /* 63 */ "spell_mass_confusion", /* 64 */ "spell_summon_pet_monster", /* 65 */ "spell_slow", /* 66 */ "spell_regenerate_spellpoints", /* 67 */ "spell_cure_poison", /* 68 */ "spell_protection_from_confusion", /* 69 */ "spell_protection_from_cancellation", /* 70 */ "spell_protection_from_depletion", /* 71 */ "spell_alchemy", /* 72 */ "spell_remove_curse", /* 73 */ "spell_remove_damnation", /* 74 */ "spell_identify", /* 75*/ "spell_detect_magic", /* 76 */ "spell_detect_monster", /* 77 */ "spell_detect_evil", /* 78 */ "spell_detect_curse", /* 79 */ "spell_heroism", /* 80 */ "spell_aggravation", /* 81 */ "spell_firebolt", /* 82 */ "spell_frostbolt", /* 83 */ "spell_shockwave", /* 84 */ "spell_color_spray", /* 85 */ "spell_haste", /* 86 */ "spell_face_of_death", /* 87 */ "spell_ball_lightning", /* 88 */ "spell_meteor_swarm", /* 89 */ "spell_comet", /* 90 */ "spell_mystic_fist", /* 91 */ "spell_raise_dead", /* 92 */ "spell_resurrection", /* 93 */ "spell_reincarnation", /* 94 */ "spell_immunity_to_cold", /* 95 */ "spell_immunity_to_electricity",/* 96 */ "spell_immunity_to_fire", /* 97 */ "spell_immunity_to_poison", /* 98 */ "spell_immunity_to_slow", /* 99 */ "spell_immunity_to_paralysis", /* 100 */ "spell_immunity_to_draining", /* 101 */ "spell_immunity_to_magic", /* 102 */ "spell_immunity_to_attack", /* 103 */ "spell_invulnerability", /* 104 */ "spell_defense", /* 105 */ "spell_rune_of_fire", /* 106 */ "spell_rune_of_frost", /* 107 */ "spell_rune_of_shocking", /* 108 */ "spell_rune_of_blasting", /* 109 */ "spell_rune_of_death", /* 110 */ "spell_marking_rune", /* 111 */ "spell_build_director", /* 112 */ "spell_create_pool_of_chaos", /* 113 */ "spell_build_bullet_wall", /* 114 */ "spell_build_lightning_wall", /* 115 */ "spell_build_fireball_wall", /* 116 */ "spell_magic_rune", /* 117 */ "spell_rune_of_magic_drain", /* 118 */ "spell_antimagic_rune", /* 119 */ "spell_rune_of_transference", /* 120 */ "spell_transference", /* 121 */ "spell_magic_drain", /* 122 */ "spell_counterspell", /* 123 */ "spell_disarm", /* 124 */ "spell_cure_confusion", /* 125 */ "spell_restoration", /* 126 */ "was summon evil monster", /* 127 */ /* Not implenented as nothing used it */ "spell_counterwall", /* 128 */ "spell_cause_light_wounds", /* 129 */ "spell_cause_medium_wounds", /* 130 */ "spell_cause_heavy_wounds", /* 131 */ "spell_charm_monsters", /* 132 */ "spell_banishment", /* 133 */ "spell_create_missile", /* 134 */ "spell_show_invisible", /* 135 */ "spell_xray", /* 136 */ "spell_pacify", /* 137 */ "spell_summon_fog", /* 138 */ "spell_steambolt", /* 139 */ "spell_command_undead", /* 140 */ "spell_holy_orb", /* 141 */ "spell_summon_avatar", /* 142 */ "spell_holy_possession", /* 143 */ "spell_bless", /* 144 */ "spell_curse", /* 145 */ "spell_regeneration", /* 146 */ "spell_consecrate", /* 147 */ "spell_summon_cult_monsters", /* 148 */ "spell_cause_critical_wounds", /* 149 */ "spell_holy_wrath", /* 150 */ "spell_retributive_strike", /* 151 */ "spell_finger_of_death", /* 152 */ "spell_insect_plague", /* 153 */ "spell_call_holy_servant", /* 154 */ "spell_wall_of_thorns", /* 155 */ "spell_staff_to_snake", /* 156 */ "spell_light", /* 157 */ "spell_darkness", /* 158 */ "spell_nightfall", /* 159 */ "spell_daylight", /* 160 */ "spell_sunspear", /* 161 */ "spell_faery_fire", /* 162 */ "spell_cure_blindness", /* 163 */ "spell_dark_vision", /* 164 */ "spell_bullet_swarm", /* 165 */ "spell_bullet_storm", /* 166 */ "spell_cause_many_wounds", /* 167 */ "spell_small_snowstorm", /* 168 */ "spell_medium_snowstorm", /* 169 */ "spell_large_snowstorm", /* 170 */ "spell_cure_disease", /* 171 */ "spell_cause_red_death", /* 172 */ "spell_cause_flu", /* 173 */ "spell_cause_black_death", /* 174 */ "spell_cause_leprosy", /* 175 */ "spell_cause_smallpox", /* 176 */ "spell_cause_white_death", /* 177 */ "spell_cause_anthrax", /* 178 */ "spell_cause_typhoid", /* 179 */ "spell_mana_blast", /* 180 */ "spell_small_manaball", /* 181 */ "spell_medium_manaball", /* 182 */ "spell_large_manaball", /* 183 */ "spell_manabolt", /* 184 */ "spell_dancing_sword", /* 185 */ "spell_animate_weapon", /* 186 */ "spell_cause_cold", /* 187 */ "spell_divine_shock", /* 188 */ "spell_windstorm", /* 189 */ "spell_sanctuary", /* 190 */ "spell_peace", /* 191 */ "spell_spiderweb", /* 192 */ "spell_conflict", /* 193 */ "spell_rage", /* 194 */ "spell_forked_lightning", /* 195 */ "spell_poison_fog", /* 196 */ "spell_flaming_aura", /* 197 */ "spell_vitriol", /* 198 */ "spell_vitriol_splash", /* 199 */ "spell_iron_skin", /* 200 */ "spell_wrathful_eye", /* 201 */ "spell_town_portal", /* 202 */ "spell_missile_swarm", /* 203 */ "spell_cause_rabies", /* 204 */ "spell_glyph", /* 205 */ NULL }; #define SET_OR_CLEAR_FLAG(op, flag, val) \ { if (val) SET_FLAG(op, flag); else CLEAR_FLAG(op, flag); } /* SET_RESIST is really only really needed for transition code. We normally * don't care about multiple values overwriting each other, but this is * to catch items that have multiple protection/immune/vulnerable. * This can be simplified later on to just do the set after all the archs * and maps have been updated. * We always keep the last value because otherwise the value from the * arch may take precedence. * Unfortunately, we will report warnings here simply because an object has * been modified from the arch. */ #if 0 /* #if's don't work in #define macros */ #define SET_RESIST(op, type, val) \ {if (op->resist[type]!=0) { \ LOG(llevInfo, "object %s having multiple resistances set, type=%s, old=%d, new=%d\n", \ op->name?op->name:(op->arch?op->arch->name:"unknown"), \ resist_plus[type], op->resist[type], val); \ } op->resist[type] = val; } #else #define SET_RESIST(op, type, val) op->resist[type] = val; #endif #define IVAL atoi(yval()) #define FVAL atof(yval()) extern int arch_init; /* Put this here since it is used below */ static void set_protection(object *op, uint32 mask, uint16 pro_val) { int i; if (!mask) return; /* Unlikely, but might as well check */ for (i=0; ibody_info[i] = atoi(cp); return; /* Only one line passed in params */ } } LOG(llevError,"set_body_info called with bogus params: %s\n", params); } /* This function checks the object after it has been loaded (when we * get the 'end' in the input stream). This function can be used to * deal with legacy objects where fields may have changed. It can also be used * to check for objects to make sure there are no common errors. */ static void check_loaded_object(object *op) { int ip; /* We do some specialized handling to handle legacy cases of name_pl. * If the object doesn't have a name_pl, we just use the object name - * this isn't perfect (things won't be properly pluralized), but works to * that degree (5 heart is still quite understandable). But the case we * also have to catch is if this object is not using the normal name for * the object. In that case, we also want to use the loaded name. * Otherwise, what happens is that the the plural name will lose * information (appear as just 'hearts' and not 'goblins heart') */ if (op->arch && op->name != op->arch->clone.name && op->name_pl == op->arch->clone.name_pl) { if (op->name_pl) free_string(op->name_pl); op->name_pl = NULL; } if (!op->name_pl) op->name_pl = add_string(op->name); /* objects now have a materialname. try to patch it in */ if (!(IS_WEAPON(op) && op->level > 0)) { if (op->map != NULL) set_materialname(op, op->map->difficulty, NULL); else set_materialname(op, 5, NULL); } /* only do these when program is first run - a bit * excessive to do this at every run - most of this is * really just to catch any errors - program will still run, but * not in the ideal fashion. */ if ((op->type == WEAPON || op->type==BOW) && arch_init) { if (!op->skill) { LOG(llevError,"Weapon %s lacks a skill.\n", op->name); } else if ((!strcmp(op->skill,"one handed weapons") && op->body_info[1] != -1) || (!strcmp(op->skill,"two handed weapons") && op->body_info[1] != -2)) { LOG(llevError,"weapon %s arm usage does not match skill: %d, %s\n", op->name, op->body_info[1], op->skill); } } /* We changed last_heal to gen_sp_armour, which is what it * really does for many objects. Need to catch any in maps * that may have an old value. */ if ((op->type == WEAPON) || (op->type == ARMOUR) || (op->type == HELMET) || (op->type == SHIELD) || (op->type == RING) || (op->type == BOOTS) || (op->type == GLOVES) || (op->type == AMULET ) || (op->type == GIRDLE) || (op->type == BRACERS ) || (op->type == CLOAK)) { if (op->last_heal) { LOG(llevDebug,"Object %s still has last_heal set, not gen_sp_armour\n", op->name?op->name:"NULL"); op->gen_sp_armour = op->last_heal; op->last_heal = 0; } if (editor) ip =0; else ip = calc_item_power(op, 0); /* Legacy objects from before item power was in the game */ if (!op->item_power && ip) { if (ip > 3) { LOG(llevDebug,"Object %s had no item power, using %d\n", op->name?op->name:"NULL", ip); } op->item_power = ip; } /* Check for possibly bogus values. Has to meet both these criteria - * something that has item_power 1 is probably just fine if our calculated * value is 1 or 2 - these values are small enough that hard to be precise. * similarly, it item_power is 0, the first check will always pass, * but not the second one. */ if (ip > 2 *op->item_power && ip > (op->item_power + 3)) { LOG(llevDebug,"Object %s seems to have too low item power? %d > %d\n", op->name?op->name:"NULL", ip, op->item_power); } } /* Old spellcasting object - need to load in the appropiate object */ if ((op->type == ROD || op->type == WAND || op->type == SCROLL || op->type == HORN || op->type == FIREWALL || /* POTIONS and ALTARS don't always cast spells, but if they do, update them */ ((op->type == POTION || op->type == ALTAR) && op->stats.sp)) && !op->inv && !arch_init) { object *tmp; /* Fireall is bizarre in that spell type was stored in dam. Rest are 'normal' * in that spell was stored in sp. */ tmp = get_archetype(spell_mapping[op->type == FIREWALL?op->stats.dam:op->stats.sp]); insert_ob_in_ob(tmp, op); op->randomitems = NULL; /* So another spell isn't created for this object */ } /* spellbooks & runes use slaying. But not to arch name, but to spell name */ if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) { object *tmp; tmp = get_archetype_by_object_name(op->slaying); insert_ob_in_ob(tmp, op); op->randomitems = NULL; /* So another spell isn't created for this object */ /* without this, value is all screwed up */ op->value = op->arch->clone.value * op->inv->value; } if (QUERY_FLAG(op, FLAG_MONSTER)) { if (op->stats.hp > op->stats.maxhp) LOG(llevDebug,"Monster %s has hp set higher than maxhp (%d>%d)\n", op->name, op->stats.hp, op->stats.maxhp); /* The archs just need to be updated for this */ if (op->move_type ==0) op->move_type = MOVE_WALK; } if ((QUERY_FLAG(op,FLAG_GENERATOR) && QUERY_FLAG(op,FLAG_CONTENT_ON_GEN)) || op->type == CREATOR || op->type == CONVERTER) { /* Object will duplicate it's content as part of the * generation process. To do this, we must flag inventory * so it remains unevaluated concerning the randomitems and * the living (a demonlord shouldn't cast from inside generator!) */ flag_inv(op,FLAG_IS_A_TEMPLATE); } /* Handle player movers. We use move_type for player movers * because they operate on their own time (move_on * would potentially cause them to be triggered when someone steps * on them). If move_type is set, presume person knows what they * are doing, otherwise, set move_type based on maxhp value. */ if (op->type == PLAYERMOVER) { if (!op->move_type) { if (op->stats.maxhp) { op->move_type = MOVE_ALL; op->stats.maxhp=0; } else { op->move_type = MOVE_WALK; } } } } /* This extracts the key/value from the yytext field - * calls set_ob_key_value() to actually set the value. * Function basically has to find spaces, strip out extra, * etc. strchr doesn't work as good because could also * be tabs. */ static void add_key_value(object * op) { char * key = NULL; char * value = NULL; char * cp; char * end; /* First, skip over leading whitespace. */ for (cp = yytext; isspace(*cp); cp++) { ; } key = cp; /* Now look for the end of the key/field name. */ for (; !isspace(*cp); cp++) { if (*cp == '\0') { /* Oops, ran out of string! Set the key with an empty value. */ set_ob_key_value(op, key, NULL, TRUE); return; } } if (*cp == '\0') { set_ob_key_value(op, key, NULL, TRUE); return; } /* Chop off the key, and start at the next character. */ *cp = '\0'; cp++; if (*cp == '\0') { /* Was followed by one space? */ set_ob_key_value(op, key, NULL, TRUE); return; } /* Now looking for the value. Skip over whitespace. */ for (; isspace(*cp); cp++) { if (*cp == '\0') { /* Guess not. */ set_ob_key_value(op, key, NULL, TRUE); return; } } value = cp; /* Got last character before null and strip * off tailing whitespace */ for (end = value + (strlen(cp)-1); isspace(*end); end--) { if (end == value) { /* *blink blink* Still no value? */ set_ob_key_value(op, key, NULL, TRUE); return; } *end='\0'; } set_ob_key_value(op, key, value, TRUE); } /* Don't have to link with -lfl with this */ /* need yy_push_state, yy_pop_state */ #line 2488 "loader.c" #define INITIAL 0 #define MESSAGE 1 #define LORE 2 #define SCRIPT 3 #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 #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (void ); #else extern int yywrap (void ); #endif #endif static void yyunput (int c,char *buf_ptr ); #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; static void yy_push_state (int new_state ); static void yy_pop_state (void ); static int yy_top_state (void ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #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 (void) fwrite( yytext, yyleng, 1, yyout ) #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 = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = 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 = fread(buf, 1, 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 (void); #define YY_DECL int yylex (void) #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 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 { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 559 "loader.l" /* Declare some local variables */ int ismore=0; lex_error=0; #line 2666 "loader.c" if ( (yy_init) ) { (yy_init) = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif 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( ); } while ( 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_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = 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 >= 2471 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 2792 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = 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 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 569 "loader.l" { BEGIN( MESSAGE ); msgbuf[0]='\0'; } YY_BREAK case 2: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 570 "loader.l" { BEGIN( INITIAL ); op->msg=add_string(msgbuf); /* Just print a warning so we can be reasonably safe * about not overflowing the buffer. */ if (strlen(op->msg) > (HUGE_BUF/2)) LOG(llevDebug, "\n\tWarning message length > %d (max allowed=%d): %d\n>%.80s<\n", HUGE_BUF/2, HUGE_BUF, strlen(op->msg),op->msg); } YY_BREAK case 3: YY_RULE_SETUP #line 579 "loader.l" {strcat(msgbuf, yytext); strcat(msgbuf,"\n"); } YY_BREAK case 4: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 581 "loader.l" { BEGIN( LORE ); lorebuf[0]='\0'; } YY_BREAK case 5: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 582 "loader.l" { BEGIN( INITIAL ); op->lore=add_string(lorebuf); /* Just print a warning so we can be reasonably safe * about not overflowing the buffer. */ if (strlen(op->lore) > (HUGE_BUF/2)) LOG(llevDebug, "\n\tWarning lore length > %d (max allowed=%d): %d\n>%.80s<\n", HUGE_BUF/2, HUGE_BUF, strlen(op->lore),op->lore); } YY_BREAK case 6: YY_RULE_SETUP #line 591 "loader.l" {strcat(lorebuf, yytext); strcat(lorebuf,"\n"); } YY_BREAK case 7: YY_RULE_SETUP #line 593 "loader.l" { char *yv=yval(); if (*yv=='\0') { LOG(llevError,"Object lacks name.\n"); return LL_IGNORED; } if (!arch_init) { LOG(llevError,"Got object info when not in arch_init (%s)?\n", yv); } else { if (op->arch!=NULL) op->arch->name=add_string(yv); op->name = add_string(yv); } } YY_BREAK case 8: YY_RULE_SETUP #line 607 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Name without val\n"); else FREE_AND_COPY(op->name, yv); } YY_BREAK case 9: YY_RULE_SETUP #line 612 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Name without val\n"); else FREE_AND_COPY(op->name_pl, yv); } YY_BREAK case 10: YY_RULE_SETUP #line 617 "loader.l" FREE_AND_COPY(op->skill,yval()); YY_BREAK case 11: YY_RULE_SETUP #line 618 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Custom name without val\n"); else FREE_AND_COPY(op->custom_name, yv); } YY_BREAK case 12: YY_RULE_SETUP #line 623 "loader.l" FREE_AND_COPY(op->race,yval()); YY_BREAK case 13: YY_RULE_SETUP #line 624 "loader.l" FREE_AND_COPY(op->slaying, yval()); YY_BREAK case 14: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 625 "loader.l" LOG(llevError,"Got depreciated Inventory command?\n"); YY_BREAK case 15: YY_RULE_SETUP #line 628 "loader.l" { /* If op->arch has been set, then this new object * must be part of the inventory. So process * appropriately. */ if (op->arch) { object *tmp; char *yv=yval(); tmp=get_object(); tmp->arch = find_archetype(yv); if (tmp->arch!=NULL) copy_object(&tmp->arch->clone,tmp); else { if (tmp->name) free_string(tmp->name); /* record the name of the broken object */ tmp->name = add_string(yv); } strcpy(msgbuf, ""); strcpy(lorebuf, ""); lex_load(tmp, map_flags); if (tmp->arch) { insert_ob_in_ob(tmp,op); } else { LOG(llevDebug,"Discarding object without arch: %s\n", tmp->name?tmp->name:"(null)"); free_object(tmp); } } /* This is the actual archetype definition then */ else { char *yv=yval(); op->arch=find_archetype(yv); if (op->arch!=NULL) copy_object(&op->arch->clone,op); else if (!arch_init) { if (op->name) free_string(op->name); /* record the name of the broken object */ op->name = add_string(yv); } } } YY_BREAK case 16: YY_RULE_SETUP #line 670 "loader.l" op->other_arch=find_archetype(yval()); YY_BREAK case 17: YY_RULE_SETUP #line 671 "loader.l" { if (strcmp (yval(), "NONE") == 0) { op->animation_id = 0; CLEAR_FLAG (op, FLAG_ANIMATE); } else { op->animation_id = find_animation (yval()); SET_FLAG (op, FLAG_ANIMATE); } } YY_BREAK case 18: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 681 "loader.l" { /* We need to record that this is a multipart object, * so the calling function can glue things back together */ ismore=1; } YY_BREAK case 19: *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 687 "loader.l" { check_loaded_object(op); if (ismore) return LL_MORE; else return LL_NORMAL; } YY_BREAK case 20: YY_RULE_SETUP #line 691 "loader.l" op->last_heal = IVAL; YY_BREAK case 21: YY_RULE_SETUP #line 692 "loader.l" op->last_sp = IVAL; YY_BREAK case 22: YY_RULE_SETUP #line 693 "loader.l" op->last_grace = IVAL; YY_BREAK case 23: YY_RULE_SETUP #line 694 "loader.l" op->last_eat = IVAL; YY_BREAK case 24: YY_RULE_SETUP #line 695 "loader.l" { op->speed = FVAL; if (!(map_flags & MAP_STYLE)) { if (op->speed<0) op->speed_left = op->speed_left-RANDOM()%100/100.0; update_ob_speed(op); } } YY_BREAK case 25: YY_RULE_SETUP #line 701 "loader.l" op->speed_left = FVAL; YY_BREAK case 26: YY_RULE_SETUP #line 702 "loader.l" { op->move_slow |= MOVE_WALK; op->move_slow_penalty = FVAL; } YY_BREAK case 27: YY_RULE_SETUP #line 705 "loader.l" { char *y=yval(); if (*y=='\0') LOG(llevError,"Title without value.\n"); else FREE_AND_COPY(op->title, y); } YY_BREAK case 28: YY_RULE_SETUP #line 710 "loader.l" op->face = &new_faces[FindFace(yval(), 0)]; YY_BREAK case 29: YY_RULE_SETUP #line 711 "loader.l" op->stats.Str = IVAL; YY_BREAK case 30: YY_RULE_SETUP #line 712 "loader.l" op->stats.Dex = IVAL; YY_BREAK case 31: YY_RULE_SETUP #line 713 "loader.l" op->stats.Con = IVAL; YY_BREAK case 32: YY_RULE_SETUP #line 714 "loader.l" op->stats.Wis = IVAL; YY_BREAK case 33: YY_RULE_SETUP #line 715 "loader.l" op->stats.Cha = IVAL; YY_BREAK case 34: YY_RULE_SETUP #line 716 "loader.l" op->stats.Int = IVAL; YY_BREAK case 35: YY_RULE_SETUP #line 717 "loader.l" op->stats.Pow = IVAL; YY_BREAK case 36: YY_RULE_SETUP #line 718 "loader.l" op->stats.hp = IVAL; YY_BREAK case 37: YY_RULE_SETUP #line 719 "loader.l" op->stats.maxhp = IVAL; YY_BREAK case 38: YY_RULE_SETUP #line 720 "loader.l" op->stats.sp = IVAL; YY_BREAK case 39: YY_RULE_SETUP #line 721 "loader.l" op->stats.maxsp = IVAL; YY_BREAK case 40: YY_RULE_SETUP #line 722 "loader.l" op->stats.grace = IVAL; YY_BREAK case 41: YY_RULE_SETUP #line 723 "loader.l" op->stats.maxgrace = IVAL; YY_BREAK case 42: YY_RULE_SETUP #line 724 "loader.l" op->stats.exp = atoll(yval()); YY_BREAK case 43: YY_RULE_SETUP #line 725 "loader.l" op->perm_exp = atoll(yval()); YY_BREAK case 44: YY_RULE_SETUP #line 726 "loader.l" op->stats.food = IVAL; YY_BREAK case 45: YY_RULE_SETUP #line 727 "loader.l" op->stats.dam = IVAL; YY_BREAK case 46: YY_RULE_SETUP #line 728 "loader.l" op->stats.wc = IVAL; YY_BREAK case 47: YY_RULE_SETUP #line 729 "loader.l" op->stats.ac = IVAL; YY_BREAK case 48: YY_RULE_SETUP #line 730 "loader.l" {op->x = IVAL; op->ox= op->x; } YY_BREAK case 49: YY_RULE_SETUP #line 731 "loader.l" {op->y = IVAL; op->oy= op->y; } YY_BREAK case 50: YY_RULE_SETUP #line 732 "loader.l" op->nrof= atol(yval()); YY_BREAK case 51: YY_RULE_SETUP #line 733 "loader.l" op->level = IVAL; YY_BREAK case 52: YY_RULE_SETUP #line 734 "loader.l" op->direction = IVAL; YY_BREAK case 53: YY_RULE_SETUP #line 735 "loader.l" op->type = IVAL; YY_BREAK case 54: YY_RULE_SETUP #line 736 "loader.l" op->subtype = IVAL; YY_BREAK case 55: YY_RULE_SETUP #line 737 "loader.l" op->material = IVAL; YY_BREAK case 56: YY_RULE_SETUP #line 738 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Materialname without val\n"); else FREE_AND_COPY(op->materialname, yv); } YY_BREAK case 57: YY_RULE_SETUP #line 745 "loader.l" op->value = IVAL; YY_BREAK case 58: YY_RULE_SETUP #line 746 "loader.l" op->weight = atol(yval()); YY_BREAK case 59: YY_RULE_SETUP #line 747 "loader.l" op->carrying = atol(yval()); YY_BREAK case 60: YY_RULE_SETUP #line 748 "loader.l" op->attacktype = IVAL; YY_BREAK case 61: YY_RULE_SETUP #line 749 "loader.l" op->path_attuned = IVAL; YY_BREAK case 62: YY_RULE_SETUP #line 750 "loader.l" op->path_repelled = IVAL; YY_BREAK case 63: YY_RULE_SETUP #line 751 "loader.l" op->path_denied = IVAL; YY_BREAK case 64: YY_RULE_SETUP #line 752 "loader.l" op->invisible = IVAL; YY_BREAK case 65: YY_RULE_SETUP #line 753 "loader.l" op->magic = IVAL; YY_BREAK case 66: YY_RULE_SETUP #line 754 "loader.l" op->state = IVAL; YY_BREAK case 67: YY_RULE_SETUP #line 755 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL); YY_BREAK case 68: YY_RULE_SETUP #line 756 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL); YY_BREAK case 69: YY_RULE_SETUP #line 757 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL); YY_BREAK case 70: YY_RULE_SETUP #line 758 "loader.l" { /* not used - just ignore */ } YY_BREAK case 71: YY_RULE_SETUP #line 759 "loader.l" { /* not used - jsut ignore */ } YY_BREAK case 72: YY_RULE_SETUP #line 760 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL); YY_BREAK case 73: YY_RULE_SETUP #line 761 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL); YY_BREAK /* These are all legacy - any new objects should use the move_ .. values */ case 74: YY_RULE_SETUP #line 765 "loader.l" { if (IVAL) op->move_block = MOVE_ALL; else op->move_block=0; } YY_BREAK case 75: YY_RULE_SETUP #line 766 "loader.l" { if (IVAL) op->move_on |= MOVE_WALK; else op->move_on &= ~MOVE_WALK; } YY_BREAK case 76: YY_RULE_SETUP #line 767 "loader.l" { if (IVAL) op->move_off |= MOVE_WALK; else op->move_off &= ~MOVE_WALK; } YY_BREAK case 77: YY_RULE_SETUP #line 768 "loader.l" { if (IVAL) op->move_on |= MOVE_FLY_LOW; else op->move_on &= ~MOVE_FLY_LOW; } YY_BREAK case 78: YY_RULE_SETUP #line 769 "loader.l" { if (IVAL) op->move_off |= MOVE_FLY_LOW; else op->move_off &= ~MOVE_FLY_LOW; } YY_BREAK case 79: YY_RULE_SETUP #line 770 "loader.l" { if (IVAL) op->move_type |= MOVE_FLY_LOW; else op->move_type &= ~MOVE_FLY_LOW; } YY_BREAK /* These are the new values */ case 80: YY_RULE_SETUP #line 774 "loader.l" op->move_block = IVAL; YY_BREAK case 81: YY_RULE_SETUP #line 775 "loader.l" op->move_type = IVAL; YY_BREAK case 82: YY_RULE_SETUP #line 776 "loader.l" op->move_on = IVAL; YY_BREAK case 83: YY_RULE_SETUP #line 777 "loader.l" op->move_off = IVAL; YY_BREAK case 84: YY_RULE_SETUP #line 778 "loader.l" op->move_slow = IVAL; YY_BREAK case 85: YY_RULE_SETUP #line 779 "loader.l" op->move_slow_penalty = FVAL; YY_BREAK case 86: YY_RULE_SETUP #line 782 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL); YY_BREAK case 87: YY_RULE_SETUP #line 783 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL); YY_BREAK case 88: YY_RULE_SETUP #line 784 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_ATTACK, IVAL); YY_BREAK case 89: YY_RULE_SETUP #line 785 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_DAMAGE, IVAL); YY_BREAK case 90: YY_RULE_SETUP #line 786 "loader.l" { if (IVAL) { SET_FLAG(op, FLAG_FRIENDLY); if (op->type != PLAYER) { LOG(llevDebug," Adding friendly object %s.\n",op->name); add_friendly_object(op); } } else CLEAR_FLAG(op, FLAG_FRIENDLY); } YY_BREAK case 91: YY_RULE_SETUP #line 795 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL); YY_BREAK case 92: YY_RULE_SETUP #line 796 "loader.l" SET_OR_CLEAR_FLAG (op,FLAG_CONTENT_ON_GEN, IVAL); YY_BREAK case 93: YY_RULE_SETUP #line 797 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_THROWN, IVAL); YY_BREAK case 94: YY_RULE_SETUP #line 798 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_AUTO_APPLY, IVAL); YY_BREAK case 95: YY_RULE_SETUP #line 799 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL); YY_BREAK case 96: YY_RULE_SETUP #line 800 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SEE_INVISIBLE, IVAL); YY_BREAK case 97: YY_RULE_SETUP #line 801 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CAN_ROLL, IVAL); YY_BREAK case 98: YY_RULE_SETUP #line 802 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_OVERLAY_FLOOR, IVAL); YY_BREAK case 99: YY_RULE_SETUP #line 803 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_TURNABLE, IVAL); YY_BREAK case 100: YY_RULE_SETUP #line 804 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_USED_UP, IVAL); YY_BREAK case 101: YY_RULE_SETUP #line 805 "loader.l" { if (IVAL) { SET_FLAG(op, FLAG_IDENTIFIED); CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL); } else CLEAR_FLAG(op, FLAG_IDENTIFIED); } YY_BREAK case 102: YY_RULE_SETUP #line 811 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL); YY_BREAK case 103: YY_RULE_SETUP #line 812 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL); YY_BREAK case 104: YY_RULE_SETUP #line 813 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL); YY_BREAK case 105: YY_RULE_SETUP #line 814 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL); YY_BREAK case 106: YY_RULE_SETUP #line 815 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL); YY_BREAK case 107: YY_RULE_SETUP #line 816 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL); YY_BREAK case 108: YY_RULE_SETUP #line 817 "loader.l" op->arch->editable = IVAL; YY_BREAK case 109: YY_RULE_SETUP #line 818 "loader.l" { } YY_BREAK case 110: YY_RULE_SETUP #line 819 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL); YY_BREAK case 111: YY_RULE_SETUP #line 820 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL); YY_BREAK case 112: YY_RULE_SETUP #line 821 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL); YY_BREAK case 113: YY_RULE_SETUP #line 822 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_REFL_MISSILE, IVAL); YY_BREAK case 114: YY_RULE_SETUP #line 823 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_REFL_SPELL, IVAL); YY_BREAK case 115: YY_RULE_SETUP #line 824 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_MAGIC, IVAL); YY_BREAK case 116: YY_RULE_SETUP #line 825 "loader.l" { if (IVAL) { SET_FLAG(op, FLAG_WIZ); SET_FLAG(op, FLAG_WAS_WIZ); SET_FLAG(op, FLAG_WIZPASS); SET_FLAG(op, FLAG_WIZCAST); } else { CLEAR_FLAG(op, FLAG_WIZ); CLEAR_FLAG(op, FLAG_WIZPASS); CLEAR_FLAG(op, FLAG_WIZCAST); } } YY_BREAK case 117: YY_RULE_SETUP #line 837 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_WAS_WIZ, IVAL); YY_BREAK case 118: YY_RULE_SETUP #line 838 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_FIX_PLAYER, IVAL); YY_BREAK case 119: YY_RULE_SETUP #line 839 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_LIGHTABLE, IVAL); YY_BREAK case 120: YY_RULE_SETUP #line 840 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_TEAR_DOWN, IVAL); YY_BREAK case 121: YY_RULE_SETUP #line 841 "loader.l" op->stats.luck = IVAL; YY_BREAK case 122: YY_RULE_SETUP #line 842 "loader.l" op->run_away = IVAL; YY_BREAK case 123: YY_RULE_SETUP #line 843 "loader.l" op->pick_up = IVAL; YY_BREAK case 124: YY_RULE_SETUP #line 844 "loader.l" op->item_power = IVAL; YY_BREAK case 125: YY_RULE_SETUP #line 845 "loader.l" op->gen_sp_armour = IVAL; YY_BREAK case 126: YY_RULE_SETUP #line 846 "loader.l" op->anim_speed = IVAL; YY_BREAK case 127: YY_RULE_SETUP #line 847 "loader.l" op->weight_limit = IVAL; YY_BREAK case 128: YY_RULE_SETUP #line 848 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_DROP, IVAL); YY_BREAK case 129: YY_RULE_SETUP #line 849 "loader.l" op->will_apply = IVAL; YY_BREAK case 130: YY_RULE_SETUP #line 850 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL); YY_BREAK case 131: YY_RULE_SETUP #line 851 "loader.l" { } YY_BREAK case 132: YY_RULE_SETUP #line 852 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_SHIELD, IVAL); YY_BREAK case 133: YY_RULE_SETUP #line 853 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CAST_SPELL, IVAL); YY_BREAK case 134: YY_RULE_SETUP #line 854 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_SCROLL, IVAL); YY_BREAK case 135: YY_RULE_SETUP #line 855 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL); YY_BREAK case 136: YY_RULE_SETUP #line 856 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_BOW, IVAL); YY_BREAK case 137: YY_RULE_SETUP #line 857 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_ARMOUR, IVAL); YY_BREAK case 138: YY_RULE_SETUP #line 858 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_WEAPON, IVAL); YY_BREAK case 139: YY_RULE_SETUP #line 859 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_RING, IVAL); YY_BREAK case 140: YY_RULE_SETUP #line 860 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_BOW, IVAL); YY_BREAK case 141: YY_RULE_SETUP #line 861 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL); YY_BREAK case 142: YY_RULE_SETUP #line 862 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_FLOOR, IVAL); YY_BREAK case 143: YY_RULE_SETUP #line 863 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL); YY_BREAK case 144: YY_RULE_SETUP #line 864 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_STRENGTH, IVAL); YY_BREAK case 145: YY_RULE_SETUP #line 865 "loader.l" { SET_OR_CLEAR_FLAG(op, FLAG_SLEEP, IVAL); /*(LOG(llevDebug," Warning: Object %s has sleep set in arch.\n",op->name);*/ } YY_BREAK case 146: YY_RULE_SETUP #line 869 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_STAND_STILL, IVAL); YY_BREAK case 147: YY_RULE_SETUP #line 870 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL); YY_BREAK case 148: YY_RULE_SETUP #line 871 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL); YY_BREAK case 149: YY_RULE_SETUP #line 873 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_PUSH, IVAL); YY_BREAK case 150: YY_RULE_SETUP #line 874 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_RELEASE, IVAL); YY_BREAK /* armour is loaded for compatiblity reasons */ case 151: YY_RULE_SETUP #line 877 "loader.l" SET_RESIST(op, ATNR_PHYSICAL, IVAL); YY_BREAK /* Start of various attacktypes */ case 152: YY_RULE_SETUP #line 879 "loader.l" SET_RESIST(op, ATNR_PHYSICAL, IVAL); YY_BREAK case 153: YY_RULE_SETUP #line 880 "loader.l" SET_RESIST(op, ATNR_MAGIC, IVAL); YY_BREAK case 154: YY_RULE_SETUP #line 881 "loader.l" SET_RESIST(op, ATNR_FIRE, IVAL); YY_BREAK case 155: YY_RULE_SETUP #line 882 "loader.l" SET_RESIST(op, ATNR_ELECTRICITY, IVAL); YY_BREAK case 156: YY_RULE_SETUP #line 883 "loader.l" SET_RESIST(op, ATNR_COLD, IVAL); YY_BREAK case 157: YY_RULE_SETUP #line 884 "loader.l" SET_RESIST(op, ATNR_CONFUSION, IVAL); YY_BREAK case 158: YY_RULE_SETUP #line 885 "loader.l" SET_RESIST(op, ATNR_ACID, IVAL); YY_BREAK case 159: YY_RULE_SETUP #line 886 "loader.l" SET_RESIST(op, ATNR_DRAIN, IVAL); YY_BREAK case 160: YY_RULE_SETUP #line 887 "loader.l" SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL); YY_BREAK case 161: YY_RULE_SETUP #line 888 "loader.l" SET_RESIST(op, ATNR_GHOSTHIT, IVAL); YY_BREAK case 162: YY_RULE_SETUP #line 889 "loader.l" SET_RESIST(op, ATNR_POISON, IVAL); YY_BREAK case 163: YY_RULE_SETUP #line 890 "loader.l" SET_RESIST(op, ATNR_SLOW, IVAL); YY_BREAK case 164: YY_RULE_SETUP #line 891 "loader.l" SET_RESIST(op, ATNR_PARALYZE, IVAL); YY_BREAK case 165: YY_RULE_SETUP #line 892 "loader.l" SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL); YY_BREAK case 166: YY_RULE_SETUP #line 893 "loader.l" SET_RESIST(op, ATNR_FEAR, IVAL); YY_BREAK case 167: YY_RULE_SETUP #line 894 "loader.l" SET_RESIST(op, ATNR_CANCELLATION, IVAL); YY_BREAK case 168: YY_RULE_SETUP #line 895 "loader.l" SET_RESIST(op, ATNR_DEPLETE, IVAL); YY_BREAK case 169: YY_RULE_SETUP #line 896 "loader.l" SET_RESIST(op, ATNR_DEATH, IVAL); YY_BREAK case 170: YY_RULE_SETUP #line 897 "loader.l" SET_RESIST(op, ATNR_CHAOS, IVAL); YY_BREAK case 171: YY_RULE_SETUP #line 898 "loader.l" SET_RESIST(op, ATNR_COUNTERSPELL, IVAL); YY_BREAK case 172: YY_RULE_SETUP #line 899 "loader.l" SET_RESIST(op, ATNR_GODPOWER, IVAL); YY_BREAK case 173: YY_RULE_SETUP #line 900 "loader.l" SET_RESIST(op, ATNR_HOLYWORD, IVAL); YY_BREAK case 174: YY_RULE_SETUP #line 901 "loader.l" SET_RESIST(op, ATNR_BLIND, IVAL); YY_BREAK case 175: YY_RULE_SETUP #line 902 "loader.l" SET_RESIST(op, ATNR_INTERNAL, IVAL); YY_BREAK case 176: YY_RULE_SETUP #line 903 "loader.l" SET_RESIST(op, ATNR_LIFE_STEALING, IVAL); YY_BREAK case 177: YY_RULE_SETUP #line 904 "loader.l" SET_RESIST(op, ATNR_DISEASE, IVAL); YY_BREAK /* Old style resistances */ case 178: YY_RULE_SETUP #line 907 "loader.l" set_protection(op, IVAL, RESIST_IMMUNE); YY_BREAK case 179: YY_RULE_SETUP #line 908 "loader.l" set_protection(op, IVAL, RESIST_PROT); YY_BREAK case 180: YY_RULE_SETUP #line 909 "loader.l" set_protection(op, IVAL, RESIST_VULN); YY_BREAK /* old values - keep them around for now, but they should be removed at some point */ case 181: YY_RULE_SETUP #line 912 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL); YY_BREAK case 182: YY_RULE_SETUP #line 913 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL); YY_BREAK case 183: YY_RULE_SETUP #line 914 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL); YY_BREAK case 184: YY_RULE_SETUP #line 915 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL); YY_BREAK case 185: YY_RULE_SETUP #line 917 "loader.l" op->attack_movement = IVAL; YY_BREAK case 186: YY_RULE_SETUP #line 918 "loader.l" op->move_status = IVAL; YY_BREAK case 187: YY_RULE_SETUP #line 919 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL); YY_BREAK case 188: YY_RULE_SETUP #line 920 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL); YY_BREAK case 189: YY_RULE_SETUP #line 921 "loader.l" add_button_link(op, op->map, IVAL); YY_BREAK case 190: YY_RULE_SETUP #line 922 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL); YY_BREAK case 191: YY_RULE_SETUP #line 923 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL); YY_BREAK case 192: YY_RULE_SETUP #line 924 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SEE_ANYWHERE, IVAL); YY_BREAK case 193: YY_RULE_SETUP #line 925 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL, IVAL); YY_BREAK case 194: YY_RULE_SETUP #line 926 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_CURSED, IVAL); YY_BREAK case 195: YY_RULE_SETUP #line 927 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_CAN_USE_SKILL, IVAL); YY_BREAK case 196: YY_RULE_SETUP #line 928 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BEEN_APPLIED, IVAL); YY_BREAK case 197: YY_RULE_SETUP #line 929 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_SCROLL, IVAL); YY_BREAK case 198: YY_RULE_SETUP #line 930 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_ROD, IVAL); YY_BREAK case 199: YY_RULE_SETUP #line 931 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_USE_HORN, IVAL); YY_BREAK case 200: YY_RULE_SETUP #line 932 "loader.l" op->expmul = FVAL; YY_BREAK case 201: YY_RULE_SETUP #line 933 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL); YY_BREAK case 202: YY_RULE_SETUP #line 934 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_MAKE_INVIS, IVAL); YY_BREAK case 203: YY_RULE_SETUP #line 935 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_INV_LOCKED, IVAL); YY_BREAK case 204: YY_RULE_SETUP #line 936 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_WOODED, IVAL); YY_BREAK case 205: YY_RULE_SETUP #line 937 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_HILLY, IVAL); YY_BREAK case 206: YY_RULE_SETUP #line 938 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_WATER, IVAL); YY_BREAK case 207: YY_RULE_SETUP #line 939 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_SKILL, IVAL); YY_BREAK case 208: YY_RULE_SETUP #line 940 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_READY_WEAPON, IVAL); YY_BREAK case 209: YY_RULE_SETUP #line 941 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_SKILL_IDENT, IVAL); YY_BREAK case 210: YY_RULE_SETUP #line 942 "loader.l" op->glow_radius = IVAL; YY_BREAK case 211: YY_RULE_SETUP #line 943 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL); YY_BREAK case 212: YY_RULE_SETUP #line 944 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_SEE_IN_DARK, IVAL); YY_BREAK case 213: YY_RULE_SETUP #line 945 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_IS_CAULDRON, IVAL); YY_BREAK case 214: YY_RULE_SETUP #line 946 "loader.l" op->randomitems = find_treasurelist(yval()); YY_BREAK case 215: YY_RULE_SETUP #line 947 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_NO_STEAL, IVAL); YY_BREAK case 216: YY_RULE_SETUP #line 948 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_ONE_HIT, IVAL); YY_BREAK case 217: YY_RULE_SETUP #line 949 "loader.l" SET_OR_CLEAR_FLAG(op, FLAG_BERSERK, IVAL); YY_BREAK case 218: YY_RULE_SETUP #line 951 "loader.l" { /* Some archetypes have these values in them */ } YY_BREAK case 219: YY_RULE_SETUP #line 952 "loader.l" { /* Probably the pupland archetypes - I imagined */ } YY_BREAK case 220: YY_RULE_SETUP #line 953 "loader.l" { /* That these are for the new combat code */ } YY_BREAK case 221: YY_RULE_SETUP #line 954 "loader.l" { /* just ignore for now */ } YY_BREAK case 222: YY_RULE_SETUP #line 955 "loader.l" { } YY_BREAK case 223: YY_RULE_SETUP #line 956 "loader.l" op->weapontype = IVAL; YY_BREAK case 224: YY_RULE_SETUP #line 957 "loader.l" op->tooltype = IVAL; YY_BREAK case 225: YY_RULE_SETUP #line 958 "loader.l" op->casting_time = FVAL; YY_BREAK case 226: YY_RULE_SETUP #line 959 "loader.l" op->elevation = IVAL; YY_BREAK case 227: YY_RULE_SETUP #line 960 "loader.l" op->smoothlevel = IVAL; YY_BREAK case 228: YY_RULE_SETUP #line 961 "loader.l" op->client_type = IVAL; YY_BREAK case 229: YY_RULE_SETUP #line 962 "loader.l" set_body_info(op, yytext); YY_BREAK case 230: YY_RULE_SETUP #line 963 "loader.l" op->duration = IVAL; YY_BREAK case 231: YY_RULE_SETUP #line 964 "loader.l" op->range = IVAL; YY_BREAK case 232: YY_RULE_SETUP #line 965 "loader.l" op->range_modifier = IVAL; YY_BREAK case 233: YY_RULE_SETUP #line 966 "loader.l" op->dam_modifier = IVAL; YY_BREAK case 234: YY_RULE_SETUP #line 967 "loader.l" op->duration_modifier = IVAL; YY_BREAK case 235: YY_RULE_SETUP #line 968 "loader.l" SET_OR_CLEAR_FLAG( op, FLAG_IS_BUILDABLE, IVAL ); YY_BREAK case 236: YY_RULE_SETUP #line 970 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (apply) without val\n"); else insert_event(op,EVENT_APPLY,yv,NULL,NULL); } YY_BREAK case 237: YY_RULE_SETUP #line 978 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (apply) without plugin\n"); else insert_event(op,EVENT_APPLY,NULL,yv,NULL); } YY_BREAK case 238: YY_RULE_SETUP #line 986 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (apply) without options\n"); else insert_event(op,EVENT_APPLY,NULL,NULL,yv); } YY_BREAK case 239: YY_RULE_SETUP #line 994 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (attack) without val\n"); else insert_event(op,EVENT_ATTACK,yv,NULL,NULL); } YY_BREAK case 240: YY_RULE_SETUP #line 1002 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (attack) without plugin\n"); else insert_event(op,EVENT_ATTACK,NULL,yv,NULL); } YY_BREAK case 241: YY_RULE_SETUP #line 1010 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (attack) without options\n"); else insert_event(op,EVENT_ATTACK,NULL,NULL,yv); } YY_BREAK case 242: YY_RULE_SETUP #line 1017 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (death) without val\n"); else insert_event(op,EVENT_DEATH,yv,NULL,NULL); } YY_BREAK case 243: YY_RULE_SETUP #line 1025 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (death) without plugin\n"); else insert_event(op,EVENT_DEATH,NULL,yv,NULL); } YY_BREAK case 244: YY_RULE_SETUP #line 1033 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (death) without options\n"); else insert_event(op,EVENT_DEATH,NULL,NULL,yv); } YY_BREAK case 245: YY_RULE_SETUP #line 1040 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (drop) without val\n"); else insert_event(op,EVENT_DROP,yv,NULL,NULL); } YY_BREAK case 246: YY_RULE_SETUP #line 1048 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (drop) without plugin\n"); else insert_event(op,EVENT_DROP,NULL,yv,NULL); } YY_BREAK case 247: YY_RULE_SETUP #line 1056 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (drop) without options\n"); else insert_event(op,EVENT_DROP,NULL,NULL,yv); } YY_BREAK case 248: YY_RULE_SETUP #line 1063 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (pickup) without val\n"); else insert_event(op,EVENT_PICKUP,yv,NULL,NULL); } YY_BREAK case 249: YY_RULE_SETUP #line 1071 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (pickup) without plugin\n"); else insert_event(op,EVENT_PICKUP,NULL,yv,NULL); } YY_BREAK case 250: YY_RULE_SETUP #line 1079 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (pickup) without options\n"); else insert_event(op,EVENT_PICKUP,NULL,NULL,yv); } YY_BREAK case 251: YY_RULE_SETUP #line 1086 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (say) without val\n"); else insert_event(op,EVENT_SAY,yv,NULL,NULL); } YY_BREAK case 252: YY_RULE_SETUP #line 1094 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (say) without plugin\n"); else insert_event(op,EVENT_SAY,NULL,yv,NULL); } YY_BREAK case 253: YY_RULE_SETUP #line 1102 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (say) without options\n"); else insert_event(op,EVENT_SAY,NULL,NULL,yv); } YY_BREAK case 254: YY_RULE_SETUP #line 1109 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (stop) without val\n"); else insert_event(op,EVENT_STOP,yv,NULL,NULL); } YY_BREAK case 255: YY_RULE_SETUP #line 1117 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (stop) without plugin\n"); else insert_event(op,EVENT_STOP,NULL,yv,NULL); } YY_BREAK case 256: YY_RULE_SETUP #line 1125 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (stop) without options\n"); else insert_event(op,EVENT_STOP,NULL,NULL,yv); } YY_BREAK case 257: YY_RULE_SETUP #line 1132 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (time) without val\n"); else insert_event(op,EVENT_TIME,yv,NULL,NULL); } YY_BREAK case 258: YY_RULE_SETUP #line 1140 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (time) without plugin\n"); else insert_event(op,EVENT_TIME,NULL,yv,NULL); } YY_BREAK case 259: YY_RULE_SETUP #line 1148 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (time) without options\n"); else insert_event(op,EVENT_TIME,NULL,NULL,yv); } YY_BREAK case 260: YY_RULE_SETUP #line 1155 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (throw) without val\n"); else insert_event(op,EVENT_THROW,yv,NULL,NULL); } YY_BREAK case 261: YY_RULE_SETUP #line 1163 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (throw) without plugin\n"); else insert_event(op,EVENT_THROW,NULL,yv,NULL); } YY_BREAK case 262: YY_RULE_SETUP #line 1171 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (apply) without options\n"); else insert_event(op,EVENT_THROW,NULL,NULL,yv); } YY_BREAK case 263: YY_RULE_SETUP #line 1178 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (trigger) without val\n"); else insert_event(op,EVENT_TRIGGER,yv,NULL,NULL); } YY_BREAK case 264: YY_RULE_SETUP #line 1186 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (trigger) without plugin\n"); else insert_event(op,EVENT_TRIGGER,NULL,yv,NULL); } YY_BREAK case 265: YY_RULE_SETUP #line 1194 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (trigger) without options\n"); else insert_event(op,EVENT_TRIGGER,NULL,NULL,yv); } YY_BREAK case 266: YY_RULE_SETUP #line 1201 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (close) without val\n"); else insert_event(op,EVENT_CLOSE,yv,NULL,NULL); } YY_BREAK case 267: YY_RULE_SETUP #line 1209 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (close) without plugin\n"); else insert_event(op,EVENT_CLOSE,NULL,yv,NULL); } YY_BREAK case 268: YY_RULE_SETUP #line 1217 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (close) without options\n"); else insert_event(op,EVENT_CLOSE,NULL,NULL,yv); } YY_BREAK case 269: YY_RULE_SETUP #line 1224 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (timer) without val\n"); else insert_event(op,EVENT_TIMER,yv,NULL,NULL); } YY_BREAK case 270: YY_RULE_SETUP #line 1232 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (timer) without plugin\n"); else insert_event(op,EVENT_TIMER,NULL,yv,NULL); } YY_BREAK case 271: YY_RULE_SETUP #line 1240 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Event (timer) without options\n"); else insert_event(op,EVENT_TIMER,NULL,NULL,yv); } YY_BREAK case 272: YY_RULE_SETUP #line 1248 "loader.l" { char *yv=yval(); if (*yv=='\0') LOG(llevError,"Script (current weapon) without val\n"); else { FREE_AND_COPY(op->current_weapon_script, yv); }; } YY_BREAK case 273: /* rule 273 can match eol */ YY_RULE_SETUP #line 1257 "loader.l" {/* ignore empty lines, newlines we don't do above */} YY_BREAK case 274: /* rule 274 can match eol */ YY_RULE_SETUP #line 1258 "loader.l" {} YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(MESSAGE): case YY_STATE_EOF(LORE): case YY_STATE_EOF(SCRIPT): #line 1260 "loader.l" {/* If we got an error, return the error. Otherwise, return that we got EOF */ if (lex_error!=0) return lex_error; else return LL_EOF;} YY_BREAK case 275: YY_RULE_SETUP #line 1262 "loader.l" { add_key_value(op); } YY_BREAK case 276: YY_RULE_SETUP #line 1263 "loader.l" ECHO; YY_BREAK #line 4529 "loader.c" 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 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 (void) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register 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 { size_t 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. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } 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; (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 (void) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = 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 >= 2471 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } 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 ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = 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 >= 2471 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 2470); return yy_is_jam ? 0 : yy_current_state; } static void yyunput (int c, register char * yy_bp ) { register 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. */ register int number_to_move = (yy_n_chars) + 2; register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; register 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) = 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; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #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 = (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 EOF; 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 (void) { (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(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 ); } #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ /* 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 = file ? (isatty( fileno(file) ) > 0) : 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 == NULL) 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 (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; 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 (void) { int 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; (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); 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. */ int 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*) ); /* 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 = 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 yy_str 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 (yyconst char * yy_str ) { return yy_scan_bytes(yy_str,strlen(yy_str) ); } /** 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 bytes the byte buffer to scan * @param 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 (yyconst char * bytes, int 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 = len + 2; buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < len; ++i ) buf[i] = bytes[i]; buf[len] = buf[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; } static void yy_push_state (int new_state ) { if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) ) { yy_size_t new_size; (yy_start_stack_depth) += YY_START_STACK_INCR; new_size = (yy_start_stack_depth) * sizeof( int ); if ( ! (yy_start_stack) ) (yy_start_stack) = (int *) yyalloc(new_size ); else (yy_start_stack) = (int *) yyrealloc((void *) (yy_start_stack),new_size ); if ( ! (yy_start_stack) ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START; BEGIN(new_state); } static void yy_pop_state (void) { if ( --(yy_start_stack_ptr) < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN((yy_start_stack)[(yy_start_stack_ptr)]); } static int yy_top_state (void) { return (yy_start_stack)[(yy_start_stack_ptr) - 1]; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) 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 (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ int yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param 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 (void) { return yy_flex_debug; } void yyset_debug (int bdebug ) { yy_flex_debug = bdebug ; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Destroy the start condition stack. */ yyfree((yy_start_stack) ); (yy_start_stack) = NULL; return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return (void *) 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 (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #undef YY_NEW_FILE #undef YY_FLUSH_BUFFER #undef yy_set_bol #undef yy_new_buffer #undef yy_set_interactive #undef yytext_ptr #undef YY_DO_BEFORE_ACTION #ifdef YY_DECL_IS_OURS #undef YY_DECL_IS_OURS #undef YY_DECL #endif #line 1263 "loader.l" int yyerror(char *s) { LOG(llevError, "%s: %s\n", s, yytext); return -1; } /* Our save file syntax is very simple, so we can use a very simple * processing mechanism here instead using something like bison * This skips over the space and returns the value, or "" if no value * is found. Modified 4/26/2000 to also strip spaces at end of * line */ static char *yval() { static char *em=""; char *cp,*end; /* First skip over start of line, like animation or name */ for (cp=yytext; *cp!=' '; cp++) { if (*cp=='\0') { return em; } } /* Skip over whitespace */ for (; *cp==' '; cp++) { if (*cp=='\0') { return em; } } /* Got last character before null and strip * off tailing whitespace */ for (end=cp+strlen(cp)-1; *end==' '; end--) { if (end==cp) return em; *end='\0'; } return cp; } /* * Loads an object from the given file-pointer. * Variables will be read and parsed and patched into the object * until the string "end" is reached, or the end of the file. * * bufstat is used to determine various file attributes: * LO_REPATE (0): We are reading from the same buffer as the last call. * LO_LINEMODE (1): file that is being read from is multi purpose (ie, other functions * will also be reading from this (treasure file, artifacts.) * LO_NEWFILE (2): This is the first read from a particular file, so the buffers should * be reset. * LO_NOREAD (3): Reset the buffers, but don't read from it. (op can be null) * */ int load_object(FILE *fp, object *op, int bufstate, int map_flags) { int retval; char inbuf[MAX_BUF]; strcpy(msgbuf, ""); strcpy(lorebuf, ""); if (bufstate==LO_NEWFILE || bufstate==LO_NOREAD) { /* LOG(llevDebug,"Switching lex buffers\n");*/ yy_delete_buffer(YY_CURRENT_BUFFER); yy_switch_to_buffer(yy_create_buffer(fp,YY_BUF_SIZE)); if (bufstate==LO_NOREAD) return LL_NORMAL; } if (bufstate==LO_LINEMODE) { YY_BUFFER_STATE yybufstate; while (fgets(inbuf, MAX_BUF-3, fp)) { yybufstate=yy_scan_string(inbuf); retval=lex_load(op, map_flags); yy_delete_buffer(yybufstate); if (retval==LL_NORMAL) return retval; } LOG(llevDebug,"Got eof while scanning strings\n"); return LL_EOF; } retval=lex_load(op, map_flags); if (op->current_weapon_script != NULL) { op->current_weapon = find_best_weapon_used_match(op, op->current_weapon_script); LOG(llevDebug, "CurrentWeapon Loaded !\n"); }; /* LOG(llevDebug," load completed, object=%s\n",op->name);*/ return retval; } /* This takes a buffer, scans it for variables, and sets those variables * as appropriate in op. * * This function appears to be used in only 2 places - in crossedit to * override values and in c_wiz to mutate values. */ int set_variable(object *op,char *buf) { YY_BUFFER_STATE yybufstate,yycurbuf=YY_CURRENT_BUFFER; int retval; strcpy(msgbuf, ""); strcpy(lorebuf, ""); yy_push_state(INITIAL); yybufstate=yy_scan_string(buf); retval=lex_load(op,0); yy_switch_to_buffer(yycurbuf); yy_delete_buffer(yybufstate); yy_pop_state(); return retval; } /* Start of C code */ /* This array equates the FLAG_ values with the V_ values. Use -1 to * put gaps in the array that should not be processed. * The order matches the order of the define values in 'define.h'. */ /* This is a list of pointers that correspond to the FLAG_.. values. * This is a simple 1:1 mapping - if FLAG_FRIENDLY is 15, then * the 15'th element of this array should match that name. * If an entry is NULL, that is a flag not to loaded/saved. */ static char *flag_names[NUM_FLAGS+1] = { "alive", "wiz", NULL, NULL, "was_wiz", "applied", "unpaid", "can_use_shield", "no_pick", NULL /* walk_on*/, NULL /* no_pass */, /* 10 */ "is_animated", NULL /* slow_move */, NULL /* flying */, "monster", "friendly", "generator", "is_thrown", "auto_apply", "treasure", "player sold", /* 20 */ "see_invisible", "can_roll", "overlay_floor", "is_turnable", NULL /* walk_off */, NULL /* fly_on */, NULL /*fly_off*/, "is_used_up", "identified", "reflecting", /* 30 */ "changing", "splitting", "hitback", "startequip", "blocksview", "undead", "scared", "unaggressive", "reflect_missile", "reflect_spell", /* 40 */ "no_magic", "no_fix_player", "is_lightable", "tear_down", "run_away", NULL /*pass_thru */, NULL /*can_pass_thru*/, "pick_up", "unique", "no_drop", /* 50 */ NULL /* wizcast*/, "can_cast_spell", "can_use_scroll", "can_use_range", "can_use_bow", "can_use_armour", "can_use_weapon", "can_use_ring", "has_ready_range", "has_ready_bow", /* 60 */ "xrays", NULL, "is_floor", "lifesave", "no_strength", "sleep", "stand_still", "random_move", "only_attack", "confused", /* 70 */ "stealth", NULL, NULL, "cursed", "damned", "see_anywhere", "known_magical", "known_cursed", "can_use_skill", "been_applied", /* 80 */ "has_ready_scroll", "can_use_rod", NULL, "can_use_horn", "make_invisible", "inv_locked", "is_wooded", "is_hilly", "has_ready_skill", "has_ready_weapon", /* 90 */ "no_skill_ident", "is_blind", "can_see_in_dark", "is_cauldron", "is_dust", "no_steal", "one_hit", NULL, "berserk", "neutral", /* 100 */ "no_attack", "no_damage", NULL, NULL, "activate_on_push", "activate_on_release", "is_water", "use_content_on_gen", NULL, "is_buildable", /* 110 */ NULL }; void save_double(char *buf,char *name,double v) { char tbuf[200]; sprintf(tbuf,"%s %f\n",name,v); strcat(buf,tbuf); } /* * Initialises the array of variable-names. Needed before any * objects can be loaded. Called by init_library(). */ void init_vars() { } /*For get_ob_diff speed reason*/ typedef struct { char* name; int length; }genericname; static genericname evtnames[13]= { {"event_none ",11}, {"event_apply ",12}, {"event_attack ",13}, {"event_death ",12}, {"event_drop ",11}, {"event_pickup ",13}, {"event_say ",10}, {"event_stop ",11}, {"event_time ",11}, {"event_throw ",12}, {"event_trigger ",14}, {"event_close ",12}, {"event_timer ",12} } ; static genericname plgnames[13]= { {"event_none_plugin ",18}, {"event_apply_plugin ",19}, {"event_attack_plugin ",20}, {"event_death_plugin ",19}, {"event_drop_plugin ",18}, {"event_pickup_plugin ",20}, {"event_say_plugin ",17}, {"event_stop_plugin ",18}, {"event_time_plugin ",18}, {"event_throw_plugin ",19}, {"event_trigger_plugin ",21}, {"event_close_plugin ",19}, {"event_timer_plugin ",19} }; static genericname plgoptions[13]= { {"event_none_options ",19}, {"event_apply_options ",20}, {"event_attack_options ",21}, {"event_death_options ",20}, {"event_drop_options ",19}, {"event_pickup_options ",21}, {"event_say_options ",18}, {"event_stop_options ",19}, {"event_time_options ",19}, {"event_throw_options ",20}, {"event_trigger_options ",22}, {"event_close_options ",20}, {"event_timer_options ",20} }; /* * Returns a pointer to a static string which contains all variables * which are different in the two given objects. op is the what object * the different values will be taken from. This function is * typically used to dump objects (op2=empty object), or to save objects * (op2 is the objects original archetype) * Note by MSW 2003-09-22: It's a bug that we need to pass entrysize - * we should use strlen entryname instead. Any smart compiler should * optimize that out. */ /*static int eol_size=strlen("\n");*/ static int eol_size=sizeof("\n")-1; /*Substract 1 to suppress terminal 0*/ #define ADD_STRINGLINE_ENTRY(buf__,entryname__,entryvalue__,entrysize__){\ FAST_STRNCAT(buf__,entryname__,entrysize__);\ FAST_STRCAT(buf__,entryvalue__);\ FAST_STRNCAT(buf__,"\n",eol_size);} #define FAST_SAVE_LONG(buf__,entryname__,entryvalue__,entrysize__) \ ADD_STRINGLINE_ENTRY(buf__,entryname__,ltostr10(entryvalue__),entrysize__) #define FAST_SAVE_DOUBLE(buf__,entryname__,entryvalue__,entrysize__) \ ADD_STRINGLINE_ENTRY(buf__,entryname__,doubletostr10(entryvalue__),entrysize__) char *get_ob_diff(object *op,object *op2) {/* I plan to optimize this heavily */ /* Too late, have done it already :P * Tchize */ /* * A bit of explantion on strings handling in this function: * buf is never null terminated until the end. So * works only with buf2 and fastbuf. What concern fastbuf, * use ONLY through the FAST macros. Classical C string handling * functions will fail since it is a pointer to the end of the * string. * NEVER touch buf between PREPARE_FASTCAT(buf) and * FINISH_FASTCAT(buf) */ static int already_run = 0; static int flag_lens[NUM_FLAGS]; static char buf2[HUGE_BUF]; static char buf[HUGE_BUF]; char* fastbuf; int tmp; int i; #if 0 /*Memory polluting code. Should help detect problems, very slow*/ for (i=0;ikey_values; my_field != NULL; my_field = my_field->next) { /* Find the field in the opposing member. */ arch_field = get_ob_key_link(op2, my_field->key); /* If there's no partnering field, or it's got a different value, save our field. */ if (arch_field == NULL || my_field->value != arch_field->value) { FAST_STRCAT(fastbuf, my_field->key); FAST_STRNCAT(fastbuf, " ", 1); /* If this is null, then saving it as a space should * cause it to be null again. */ if (my_field->value) FAST_STRCAT(fastbuf, my_field->value); FAST_STRNCAT(fastbuf, "\n", eol_size); } } /* We don't need to worry about the arch's extra fields - they * will get taken care of the copy_object function. */ if(op->name && op->name!=op2->name) { ADD_STRINGLINE_ENTRY(fastbuf,"name ",op->name,5); } if(op->name_pl && op->name_pl!=op2->name_pl) { ADD_STRINGLINE_ENTRY(fastbuf,"name_pl ",op->name_pl,8); } if(op->custom_name && op->custom_name!=op2->custom_name) { ADD_STRINGLINE_ENTRY(fastbuf,"custom_name ",op->custom_name,12); } if(op->title && op->title!=op2->title) { ADD_STRINGLINE_ENTRY(fastbuf,"title ",op->title,6); } if(op->race && op->race!=op2->race) { ADD_STRINGLINE_ENTRY(fastbuf,"race ",op->race,5); } if(op->slaying && op->slaying!=op2->slaying) { ADD_STRINGLINE_ENTRY(fastbuf,"slaying ",op->slaying,8); } if(op->skill && op->skill!=op2->skill) { ADD_STRINGLINE_ENTRY(fastbuf,"skill ",op->skill,6); } if(op->msg && op->msg!=op2->msg) { FAST_STRNCAT(fastbuf,"msg\n",3+eol_size); FAST_STRCAT(fastbuf,op->msg); FAST_STRNCAT(fastbuf,"endmsg\n",6+eol_size); } if(op->lore && op->lore!=op2->lore) { FAST_STRNCAT(fastbuf,"lore\n",4+eol_size); FAST_STRCAT(fastbuf,op->lore); FAST_STRNCAT(fastbuf,"endlore\n",7+eol_size); } if(op->other_arch!=op2->other_arch&&op->other_arch!=NULL && op->other_arch->name) { ADD_STRINGLINE_ENTRY(fastbuf,"other_arch ",op->other_arch->name,11); } if(op->face!=op2->face) { ADD_STRINGLINE_ENTRY(fastbuf,"face ",op->face->name,5); } for(etmp=op->events;etmp!=NULL;etmp=etmp->next) { /* First we find the event for the reference object */ etmp2=find_event(op2,etmp->type); if ((etmp->hook != NULL) && ((etmp2 == NULL) || (etmp2->hook == NULL) || (strcmp(etmp2->hook,etmp->hook)))) /* Either there's no matching event in the reference object, * or the hook is different */ { ADD_STRINGLINE_ENTRY(fastbuf,evtnames[etmp->type].name,etmp->hook,evtnames[etmp->type].length); } if ((etmp->plugin != NULL) && ((etmp2 == NULL) || (etmp2->plugin == NULL) || (strcmp(etmp2->plugin,etmp->plugin)))) { ADD_STRINGLINE_ENTRY(fastbuf,plgnames[etmp->type].name,etmp->plugin,plgnames[etmp->type].length); } if ((etmp->options != NULL) && ((etmp2 == NULL) || (etmp2->options == NULL) || (strcmp(etmp2->options,etmp->options)))) { ADD_STRINGLINE_ENTRY(fastbuf,plgoptions[etmp->type].name,etmp->options,plgoptions[etmp->type].length); } } if (op->animation_id != op2->animation_id) { if (op->animation_id) { ADD_STRINGLINE_ENTRY(fastbuf,"animation ",animations[GET_ANIM_ID(op)].name,10); if ( ! QUERY_FLAG (op, FLAG_ANIMATE)) { FAST_STRNCAT(fastbuf,"is_animated 0\n",13+eol_size); } } else { FAST_STRNCAT(fastbuf,"animation NONE\n",14+eol_size); } } if(op->stats.Str!=op2->stats.Str) FAST_SAVE_LONG(fastbuf,"Str ",op->stats.Str,4); if(op->stats.Dex!=op2->stats.Dex) FAST_SAVE_LONG(fastbuf,"Dex ",op->stats.Dex,4); if(op->stats.Con!=op2->stats.Con) FAST_SAVE_LONG(fastbuf,"Con ",op->stats.Con,4); if(op->stats.Wis!=op2->stats.Wis) FAST_SAVE_LONG(fastbuf,"Wis ",op->stats.Wis,4); if(op->stats.Pow!=op2->stats.Pow) FAST_SAVE_LONG(fastbuf,"Pow ",op->stats.Pow,4); if(op->stats.Cha!=op2->stats.Cha) FAST_SAVE_LONG(fastbuf,"Cha ",op->stats.Cha,4); if(op->stats.Int!=op2->stats.Int) FAST_SAVE_LONG(fastbuf,"Int ",op->stats.Int,4); if(op->stats.hp!=op2->stats.hp) FAST_SAVE_LONG(fastbuf,"hp ",op->stats.hp,3); if(op->stats.maxhp!=op2->stats.maxhp) FAST_SAVE_LONG(fastbuf,"maxhp ",op->stats.maxhp,6); if(op->stats.sp!=op2->stats.sp) FAST_SAVE_LONG(fastbuf,"sp ",op->stats.sp,3); if(op->stats.maxsp!=op2->stats.maxsp) FAST_SAVE_LONG(fastbuf,"maxsp ",op->stats.maxsp,6); if(op->stats.grace!=op2->stats.grace) FAST_SAVE_LONG(fastbuf,"grace ",op->stats.grace,6); if(op->stats.maxgrace!=op2->stats.maxgrace) FAST_SAVE_LONG(fastbuf,"maxgrace ",op->stats.maxgrace,9); if(op->stats.exp!=op2->stats.exp) { #ifndef WIN32 sprintf(buf2,"%lld\n", op->stats.exp); #else sprintf(buf2,"%I64d\n", op->stats.exp); #endif ADD_STRINGLINE_ENTRY(fastbuf,"exp ", buf2, 4); } if(op->perm_exp!=op2->perm_exp) { #ifndef WIN32 sprintf(buf2,"%lld\n", op->perm_exp); #else sprintf(buf2,"%I64d\n", op->perm_exp); #endif ADD_STRINGLINE_ENTRY(fastbuf,"perm_exp ", buf2, 9); } if(op->expmul!=op2->expmul) FAST_SAVE_DOUBLE(fastbuf,"expmul ",op->expmul,7); if(op->stats.food!=op2->stats.food) FAST_SAVE_LONG(fastbuf,"food ",op->stats.food,5); if(op->stats.dam!=op2->stats.dam) FAST_SAVE_LONG(fastbuf,"dam ",op->stats.dam,4); if(op->stats.luck!=op2->stats.luck) FAST_SAVE_LONG(fastbuf,"luck ",op->stats.luck,5); if(op->stats.wc!=op2->stats.wc) FAST_SAVE_LONG(fastbuf,"wc ",op->stats.wc,3); if(op->stats.ac!=op2->stats.ac) FAST_SAVE_LONG(fastbuf,"ac ",op->stats.ac,3); if(op->x!=op2->x) FAST_SAVE_LONG(fastbuf,"x ",op->x,2); if(op->y!=op2->y) FAST_SAVE_LONG(fastbuf,"y ",op->y,2); if(op->speed!=op2->speed) { FAST_SAVE_DOUBLE(fastbuf,"speed ",op->speed,6); } if(op->speed > 0 && op->speed_left!=op2->speed_left) { FAST_SAVE_DOUBLE(fastbuf,"speed_left ",op->speed_left,11); } if(op->move_status != op2->move_status) FAST_SAVE_LONG(fastbuf,"move_state ",op->move_status,11); if(op->attack_movement != op2->attack_movement) FAST_SAVE_LONG(fastbuf,"attack_movement ",op->attack_movement,16); if(op->nrof!=op2->nrof) FAST_SAVE_LONG(fastbuf,"nrof ",op->nrof,5); if(op->level!=op2->level) FAST_SAVE_LONG(fastbuf,"level ",op->level,6); if(op->direction!=op2->direction) FAST_SAVE_LONG(fastbuf,"direction ",op->direction,10); if(op->type!=op2->type) FAST_SAVE_LONG(fastbuf,"type ",op->type,5); if(op->subtype!=op2->subtype) FAST_SAVE_LONG(fastbuf,"subtype ",op->subtype,8); if(op->attacktype!=op2->attacktype) FAST_SAVE_LONG(fastbuf,"attacktype ",op->attacktype,11); for (tmp=0; tmp < NROFATTACKS; tmp++) { if (op->resist[tmp] != op2->resist[tmp]) { FAST_STRNCAT(fastbuf,"resist_",7); FAST_SAVE_LONG(fastbuf,resist_save[tmp],op->resist[tmp],strlen(resist_save[tmp])); } } if(op->path_attuned!=op2->path_attuned) FAST_SAVE_LONG(fastbuf,"path_attuned ",op->path_attuned,13); if(op->path_repelled!=op2->path_repelled) FAST_SAVE_LONG(fastbuf,"path_repelled ",op->path_repelled,14); if(op->path_denied!=op2->path_denied) FAST_SAVE_LONG(fastbuf,"path_denied ",op->path_denied,12); if(op->material!=op2->material) FAST_SAVE_LONG(fastbuf,"material ",op->material,9); if(op->materialname && op->materialname!=op2->materialname) { ADD_STRINGLINE_ENTRY(fastbuf,"materialname ",op->materialname,13); } if(op->value!=op2->value) FAST_SAVE_LONG(fastbuf,"value ",op->value,6); if(op->carrying!=op2->carrying) FAST_SAVE_LONG(fastbuf,"carrying ",op->carrying,9); if(op->weight!=op2->weight) FAST_SAVE_LONG(fastbuf,"weight ",op->weight,7); if(op->invisible!=op2->invisible) FAST_SAVE_LONG(fastbuf,"invisible ",op->invisible,10); if(op->state!=op2->state) FAST_SAVE_LONG(fastbuf,"state ",op->state,6); if(op->magic!=op2->magic) FAST_SAVE_LONG(fastbuf,"magic ",op->magic,6); if(op->last_heal!=op2->last_heal) FAST_SAVE_LONG(fastbuf,"last_heal ",op->last_heal,10); if(op->last_sp!=op2->last_sp) FAST_SAVE_LONG(fastbuf,"last_sp ",op->last_sp,8); if(op->last_grace!=op2->last_grace) FAST_SAVE_LONG(fastbuf,"last_grace ",op->last_grace,11); if(op->last_eat!=op2->last_eat) FAST_SAVE_LONG(fastbuf,"last_eat ",op->last_eat,9); if(QUERY_FLAG(op,FLAG_IS_LINKED) && (tmp = get_button_value(op))) FAST_SAVE_LONG(fastbuf,"connected ",tmp,10); if(op->glow_radius!=op2->glow_radius) FAST_SAVE_LONG(fastbuf,"glow_radius ",op->glow_radius,12); if (op->randomitems!=op2->randomitems) { ADD_STRINGLINE_ENTRY(fastbuf,"randomitems ",(op->randomitems?op->randomitems->name:"none"),12); } #ifdef NPC_PROG if(op->npc_status!=op2->npc_status) FAST_SAVE_LONG(fastbuf,"npc_status ",op->npc_status,11); if(op->npc_program!=op2->npc_program) FAST_SAVE_LONG(fastbuf,"npc_program ",op->npc_program,12); #endif if(op->run_away!=op2->run_away) FAST_SAVE_LONG(fastbuf,"run_away ",op->run_away,9); if(op->pick_up!=op2->pick_up) FAST_SAVE_LONG(fastbuf,"pick_up ",op->pick_up,8); if(op->weight_limit!=op2->weight_limit) FAST_SAVE_LONG(fastbuf,"container ",op->weight_limit,10); if (op->will_apply!=op2->will_apply) FAST_SAVE_LONG(fastbuf,"will_apply ",op->will_apply,11); if(op->smoothlevel!=op2->smoothlevel) FAST_SAVE_LONG(fastbuf,"smoothlevel ",op->smoothlevel,12); if (op->current_weapon_script!=op2->current_weapon_script){ ADD_STRINGLINE_ENTRY(fastbuf,"current_weapon_script ",op->current_weapon_script,22); }; if(op->weapontype && op->weapontype!=op2->weapontype) { FAST_SAVE_LONG(fastbuf,"weapontype ",op->weapontype,11); } if(op->tooltype && op->tooltype!=op2->tooltype) { FAST_SAVE_LONG(fastbuf,"tooltype ",op->tooltype,9); } if (op->elevation && op->elevation != op2->elevation) { FAST_SAVE_LONG(fastbuf,"elevation ",op->elevation,10); } if (op->client_type && op->client_type != op2->client_type) { FAST_SAVE_LONG(fastbuf,"client_type ",op->client_type,12); } if (op->item_power != op2->item_power) { FAST_SAVE_LONG(fastbuf,"item_power ",op->item_power,11); } if (op->duration != op2->duration) FAST_SAVE_LONG(fastbuf,"duration ",op->duration,9); if (op->range != op2->range) FAST_SAVE_LONG(fastbuf,"range ",op->range,6); if (op->range_modifier != op2->range_modifier) FAST_SAVE_LONG(fastbuf,"range_modifier ",op->range_modifier,15); if (op->duration_modifier != op2->duration_modifier) FAST_SAVE_LONG(fastbuf,"duration_modifier ", op->duration_modifier,18); if (op->dam_modifier != op2->dam_modifier) FAST_SAVE_LONG(fastbuf,"dam_modifier ", op->dam_modifier,13); if (op->gen_sp_armour != op2->gen_sp_armour) { FAST_SAVE_LONG(fastbuf,"gen_sp_armour ",op->gen_sp_armour,14); } if (op->move_type != op2->move_type) { FAST_SAVE_LONG(fastbuf,"move_type ",op->move_type,10); } if (op->move_block != op2->move_block) { FAST_SAVE_LONG(fastbuf,"move_block ",op->move_block,11); } if (op->move_on != op2->move_on) { FAST_SAVE_LONG(fastbuf,"move_on ",op->move_on,8); } if (op->move_off != op2->move_off) { FAST_SAVE_LONG(fastbuf,"move_off ",op->move_off,9); } if (op->move_slow != op2->move_slow) { FAST_SAVE_LONG(fastbuf,"move_slow ",op->move_slow,10); } if (op->move_slow_penalty != op2->move_slow_penalty) { FAST_SAVE_LONG(fastbuf,"move_slow_penalty ",op->move_slow_penalty,18); } if (!COMPARE_FLAGS(op,op2)) { for (tmp=0; tmp <= NUM_FLAGS; tmp++) { if (flag_names[tmp] && (QUERY_FLAG(op, tmp) != QUERY_FLAG(op2, tmp))) { ADD_STRINGLINE_ENTRY(fastbuf,flag_names[tmp],QUERY_FLAG(op, tmp)?" 1":" 0",flag_lens[tmp]); } } } /* Save body locations */ for (i=0; ibody_info[i] != op2->body_info[i]) { FAST_STRCAT(fastbuf,body_locations[i].save_name); FAST_SAVE_LONG(fastbuf," ",op->body_info[i],1); } } FINISH_FASTCAT(fastbuf); if(buf[0]=='\0') /*did not cat anything...*/ return NULL; return buf; } /* * Dumps all variables in an object to a file. * If bit 0 of flag is set, unpaid objects will be saved. As of now, * the only place this is not set is when saving the player. * If bit 1 of flag is set, don't remove the object after save. As of now, * all of the callers are setting this. */ void save_object(FILE *fp,object *op, int flag) { archetype *at; char *cp; object *tmp,*old; /* Even if the object does have an owner, it would seem that we should * still save it. */ if(op->owner!=NULL || fp == NULL) return; /* If it is unpaid and we don't want to save those, just return. */ if(!(flag&1)&&(QUERY_FLAG(op, FLAG_UNPAID))) { return; } if((at=op->arch)==NULL) at=empty_archetype; fprintf(fp,"arch %s\n",at->name); if((cp=get_ob_diff(op,&at->clone))!=NULL) fputs(cp,fp); /* We really should do some status checking on this */ /* Eneq(@csd.uu.se): Added this to allow containers being saved with contents*/ old=NULL; if (flag & 2 ) for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) save_object(fp,tmp,flag); /* Slightly different logic because tmp/op will be removed by * the save_object we call. So we just keep looking at op->inv * until there is nothing left. In theory, the variable old * should not be needed, as recursive loops shouldn't happen. */ else while ((tmp=op->inv)!=NULL) { if(old==tmp) { LOG(llevError," Recursive loop in inventory\n"); break; } save_object(fp,tmp,flag); old=tmp; } if (!(flag&2)) { remove_ob(op); free_object (op); } fprintf(fp,"end\n"); } void insert_event(object* op, int etype, char *ehook, char *eplug, char *eoptions) { event *evt; event *tmp; evt = find_event(op,etype); if (evt == NULL) { evt = (event *)malloc(sizeof(event)); evt->next = NULL; evt->type = etype; evt->hook = NULL; evt->plugin = NULL; evt->options = NULL; if (op->events==NULL) { op->events=evt; } else { for(tmp=op->events;;tmp=tmp->next) { if (tmp->next == NULL) { tmp->next = evt; break; } } } } if (ehook != NULL) FREE_AND_COPY(evt->hook,ehook); if (eplug != NULL) FREE_AND_COPY(evt->plugin,eplug); if (eoptions != NULL) FREE_AND_COPY(evt->options,eoptions); } event* find_event(object* op, int etype) { event *found; for(found=op->events;found!=NULL;found=found->next) { if (found->type == etype) return found; } return NULL; }