| | |
| | | #line 1 "lwin_wkt_lex.c" |
| | | #line 2 "lwin_wkt_lex.c" |
| | | |
| | | #line 3 "lwin_wkt_lex.c" |
| | | #line 4 "lwin_wkt_lex.c" |
| | | |
| | | #define YY_INT_ALIGNED short int |
| | | |
| | |
| | | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| | | |
| | | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
| | | * if you want the limit (max/min) macros for int types. |
| | | * if you want the limit (max/min) macros for int types. |
| | | */ |
| | | #ifndef __STDC_LIMIT_MACROS |
| | | #define __STDC_LIMIT_MACROS 1 |
| | |
| | | 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 char flex_uint8_t; |
| | | typedef unsigned short int flex_uint16_t; |
| | | typedef unsigned int flex_uint32_t; |
| | | |
| | |
| | | #define EOB_ACT_CONTINUE_SCAN 0 |
| | | #define EOB_ACT_END_OF_FILE 1 |
| | | #define EOB_ACT_LAST_MATCH 2 |
| | | |
| | | |
| | | #define YY_LESS_LINENO(n) |
| | | #define YY_LINENO_REWIND_TO(ptr) |
| | | |
| | | |
| | | /* Return all but the first "n" matched characters back to the input stream. */ |
| | | #define yyless(n) \ |
| | | do \ |
| | |
| | | #define NAN 0.0/0.0 |
| | | #endif |
| | | |
| | | #line 906 "lwin_wkt_lex.c" |
| | | #line 907 "lwin_wkt_lex.c" |
| | | #define YY_NO_INPUT 1 |
| | | /* Suppress the default implementations. */ |
| | | #line 909 "lwin_wkt_lex.c" |
| | | #line 910 "lwin_wkt_lex.c" |
| | | |
| | | #define INITIAL 0 |
| | | |
| | |
| | | #endif |
| | | |
| | | #ifndef YY_NO_UNPUT |
| | | |
| | | |
| | | #endif |
| | | |
| | | #ifndef yytext_ptr |
| | |
| | | yy_state_type yy_current_state; |
| | | char *yy_cp, *yy_bp; |
| | | int yy_act; |
| | | |
| | | |
| | | if ( !(yy_init) ) |
| | | { |
| | | (yy_init) = 1; |
| | |
| | | #line 60 "lwin_wkt_lex.l" |
| | | |
| | | |
| | | #line 1127 "lwin_wkt_lex.c" |
| | | #line 1128 "lwin_wkt_lex.c" |
| | | |
| | | while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ |
| | | { |
| | |
| | | #line 118 "lwin_wkt_lex.l" |
| | | ECHO; |
| | | YY_BREAK |
| | | #line 1340 "lwin_wkt_lex.c" |
| | | #line 1341 "lwin_wkt_lex.c" |
| | | case YY_STATE_EOF(INITIAL): |
| | | yyterminate(); |
| | | |
| | |
| | | { |
| | | yy_state_type yy_current_state; |
| | | char *yy_cp; |
| | | |
| | | |
| | | yy_current_state = (yy_start); |
| | | |
| | | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
| | |
| | | |
| | | { |
| | | int c; |
| | | |
| | | |
| | | *(yy_c_buf_p) = (yy_hold_char); |
| | | |
| | | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
| | |
| | | |
| | | /** 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 = |
| | |
| | | |
| | | /** 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(); |
| | |
| | | /** 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()" ); |
| | |
| | | |
| | | /** Destroy the buffer. |
| | | * @param b a buffer created with yy_create_buffer() |
| | | * |
| | | * |
| | | */ |
| | | void yy_delete_buffer (YY_BUFFER_STATE b ) |
| | | { |
| | | |
| | | |
| | | if ( ! b ) |
| | | return; |
| | | |
| | |
| | | |
| | | { |
| | | int oerrno = errno; |
| | | |
| | | |
| | | yy_flush_buffer( b ); |
| | | |
| | | b->yy_input_file = file; |
| | |
| | | } |
| | | |
| | | b->yy_is_interactive = 0; |
| | | |
| | | |
| | | errno = oerrno; |
| | | } |
| | | |
| | | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
| | | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
| | | * |
| | | * |
| | | */ |
| | | void yy_flush_buffer (YY_BUFFER_STATE b ) |
| | | { |
| | |
| | | * 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 ) |
| | | { |
| | |
| | | |
| | | /** Removes and deletes the top of the stack, if present. |
| | | * The next element becomes the new top. |
| | | * |
| | | * |
| | | */ |
| | | void yypop_buffer_state (void) |
| | | { |
| | |
| | | static void yyensure_buffer_stack (void) |
| | | { |
| | | yy_size_t num_to_alloc; |
| | | |
| | | |
| | | if (!(yy_buffer_stack)) { |
| | | |
| | | /* First allocation is just for 2 elements, since we don't know if this |
| | |
| | | /** 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 ) |
| | |
| | | /** Setup the input buffer state to scan a string. The next call to yylex() will |
| | | * scan from a @e copy of @a str. |
| | | * @param yystr a NUL-terminated string to scan |
| | | * |
| | | * |
| | | * @return the newly allocated buffer state object. |
| | | * @note If you want to scan bytes that may contain NUL values, then use |
| | | * yy_scan_bytes() instead. |
| | | */ |
| | | YY_BUFFER_STATE yy_scan_string (const char * yystr ) |
| | | { |
| | | |
| | | |
| | | return yy_scan_bytes( yystr, (int) strlen(yystr) ); |
| | | } |
| | | |
| | |
| | | * scan from a @e copy of @a bytes. |
| | | * @param yybytes the byte buffer to scan |
| | | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
| | | * |
| | | * |
| | | * @return the newly allocated buffer state object. |
| | | */ |
| | | YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len ) |
| | |
| | | char *buf; |
| | | yy_size_t n; |
| | | int i; |
| | | |
| | | |
| | | /* Get memory for full buffer, including space for trailing EOB's. */ |
| | | n = (yy_size_t) (_yybytes_len + 2); |
| | | buf = (char *) yyalloc( n ); |
| | |
| | | /* 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) |
| | | { |
| | |
| | | } |
| | | |
| | | /** Get the output stream. |
| | | * |
| | | * |
| | | */ |
| | | FILE *yyget_out (void) |
| | | { |
| | |
| | | } |
| | | |
| | | /** Get the length of the current token. |
| | | * |
| | | * |
| | | */ |
| | | int yyget_leng (void) |
| | | { |
| | |
| | | } |
| | | |
| | | /** Get the current token. |
| | | * |
| | | * |
| | | */ |
| | | |
| | | char *yyget_text (void) |
| | |
| | | |
| | | /** Set the current line number. |
| | | * @param _line_number line number |
| | | * |
| | | * |
| | | */ |
| | | void yyset_lineno (int _line_number ) |
| | | { |
| | | |
| | | |
| | | yylineno = _line_number; |
| | | } |
| | | |
| | | /** Set the input stream. This does not discard the current |
| | | * input buffer. |
| | | * @param _in_str A readable stream. |
| | | * |
| | | * |
| | | * @see yy_switch_to_buffer |
| | | */ |
| | | void yyset_in (FILE * _in_str ) |
| | |
| | | /* 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 ); |
| | |
| | | #ifndef yytext_ptr |
| | | static void yy_flex_strncpy (char* s1, const char * s2, int n ) |
| | | { |
| | | |
| | | |
| | | int i; |
| | | for ( i = 0; i < n; ++i ) |
| | | s1[i] = s2[i]; |
| | |
| | | { |
| | | wkt_yy_delete_buffer(wkt_yy_buf_state); |
| | | } |
| | | |
| | | |