Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-06-19 0cfc87bd32822e5ba22d8c2b1a26fa60f63ad7fa
contrib/postgis/liblwgeom/lwin_wkt_lex.c
@@ -1,6 +1,6 @@
#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
@@ -293,7 +293,7 @@
#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
@@ -310,7 +310,7 @@
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;
@@ -421,10 +421,10 @@
#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 \
@@ -903,10 +903,10 @@
#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
@@ -966,7 +966,7 @@
#endif
#ifndef YY_NO_UNPUT
#endif
#ifndef yytext_ptr
@@ -1093,7 +1093,7 @@
   yy_state_type yy_current_state;
   char *yy_cp, *yy_bp;
   int yy_act;
   if ( !(yy_init) )
      {
      (yy_init) = 1;
@@ -1124,7 +1124,7 @@
#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 */
      {
@@ -1337,7 +1337,7 @@
#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();
@@ -1621,7 +1621,7 @@
{
   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 )
@@ -1685,7 +1685,7 @@
{
   int c;
   *(yy_c_buf_p) = (yy_hold_char);
   if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
@@ -1752,12 +1752,12 @@
/** 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 =
@@ -1770,11 +1770,11 @@
/** 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();
@@ -1814,13 +1814,13 @@
/** 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()" );
@@ -1843,11 +1843,11 @@
/** Destroy the buffer.
 * @param b a buffer created with yy_create_buffer()
 *
 *
 */
    void yy_delete_buffer (YY_BUFFER_STATE  b )
{
   if ( ! b )
      return;
@@ -1868,7 +1868,7 @@
{
   int oerrno = errno;
   yy_flush_buffer( b );
   b->yy_input_file = file;
@@ -1884,13 +1884,13 @@
    }
        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 )
{
@@ -1919,7 +1919,7 @@
 *  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 )
{
@@ -1949,7 +1949,7 @@
/** Removes and deletes the top of the stack, if present.
 *  The next element becomes the new top.
 *
 *
 */
void yypop_buffer_state (void)
{
@@ -1973,7 +1973,7 @@
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
@@ -2016,13 +2016,13 @@
/** 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 )
@@ -2051,14 +2051,14 @@
/** 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) );
}
@@ -2066,7 +2066,7 @@
 * 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 )
@@ -2075,7 +2075,7 @@
   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  );
@@ -2129,16 +2129,16 @@
/* 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)
{
@@ -2146,7 +2146,7 @@
}
/** Get the output stream.
 *
 *
 */
FILE *yyget_out  (void)
{
@@ -2154,7 +2154,7 @@
}
/** Get the length of the current token.
 *
 *
 */
int yyget_leng  (void)
{
@@ -2162,7 +2162,7 @@
}
/** Get the current token.
 *
 *
 */
char *yyget_text  (void)
@@ -2172,18 +2172,18 @@
/** 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 )
@@ -2237,7 +2237,7 @@
/* 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  );
@@ -2263,7 +2263,7 @@
#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];
@@ -2317,5 +2317,3 @@
{
   wkt_yy_delete_buffer(wkt_yy_buf_state);
}