GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72274
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sqlp.yy.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <grass/sqlp.h>
#include "sqlp.tab.h"
#include <unistd.h>
Include dependency graph for sqlp.yy.c:

Go to the source code of this file.

Macros

#define YY_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   39
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart(yyin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_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)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   54
 
#define YY_END_OF_BUFFER   55
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   ((yy_more_flag) = 1)
 
#define YY_MORE_ADJ   (yy_more_len)
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_INPUT(b, r, ms)   (r = my_yyinput(b, ms))
 
#define INITIAL   0
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

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
 
typedef struct yy_buffer_state * YY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

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)
 
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, yy_size_t len)
 
void * yyalloc (yy_size_t)
 
void * yyrealloc (void *, yy_size_t)
 
void yyfree (void *)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
YY_EXTRA_TYPE yyget_extra (void)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * yyget_in (void)
 
void yyset_in (FILE *in_str)
 
FILE * yyget_out (void)
 
void yyset_out (FILE *out_str)
 
yy_size_t yyget_leng (void)
 
char * yyget_text (void)
 
int yyget_lineno (void)
 
void yyset_lineno (int line_number)
 
int yywrap (void)
 
int yylex (void)
 
 if (!YY_CURRENT_BUFFER)
 

Variables

yy_size_t yyleng
 
FILE * yyin = (FILE *) 0
 
FILE * yyout = (FILE *) 0
 
int yylineno = 1
 
char * yytext
 
int yy_flex_debug = 0
 
YY_DECL register yy_state_type yy_current_state
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 125 of file sqlp.yy.c.

#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)

Definition at line 693 of file sqlp.yy.c.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 173 of file sqlp.yy.c.

#define EOB_ACT_END_OF_FILE   1

Definition at line 174 of file sqlp.yy.c.

#define EOB_ACT_LAST_MATCH   2

Definition at line 175 of file sqlp.yy.c.

#define FLEX_BETA

Definition at line 13 of file sqlp.yy.c.

#define FLEX_SCANNER

Definition at line 8 of file sqlp.yy.c.

#define FLEXINT_H

Definition at line 29 of file sqlp.yy.c.

#define INITIAL   0

Definition at line 601 of file sqlp.yy.c.

#define INT16_MAX   (32767)

Definition at line 71 of file sqlp.yy.c.

#define INT16_MIN   (-32767-1)

Definition at line 62 of file sqlp.yy.c.

#define INT32_MAX   (2147483647)

Definition at line 74 of file sqlp.yy.c.

#define INT32_MIN   (-2147483647-1)

Definition at line 65 of file sqlp.yy.c.

#define INT8_MAX   (127)

Definition at line 68 of file sqlp.yy.c.

#define INT8_MIN   (-128)

Definition at line 59 of file sqlp.yy.c.

#define REJECT   reject_used_but_not_detected

Definition at line 557 of file sqlp.yy.c.

#define UINT16_MAX   (65535U)

Definition at line 80 of file sqlp.yy.c.

#define UINT32_MAX   (4294967295U)

Definition at line 83 of file sqlp.yy.c.

#define UINT8_MAX   (255U)

Definition at line 77 of file sqlp.yy.c.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 194 of file sqlp.yy.c.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 340 of file sqlp.yy.c.

#define YY_BREAK   break;

Definition at line 772 of file sqlp.yy.c.

#define YY_BUF_SIZE   16384

Definition at line 151 of file sqlp.yy.c.

Referenced by if().

#define YY_BUFFER_EOF_PENDING   2

Definition at line 256 of file sqlp.yy.c.

#define YY_BUFFER_NEW   0

Definition at line 244 of file sqlp.yy.c.

#define YY_BUFFER_NORMAL   1

Definition at line 245 of file sqlp.yy.c.

#define YY_CURRENT_BUFFER
Value:
( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
#define NULL
Definition: ccmath.h:32

Definition at line 272 of file sqlp.yy.c.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 279 of file sqlp.yy.c.

Referenced by if().

#define YY_DECL   int yylex (void)

Definition at line 760 of file sqlp.yy.c.

#define YY_DECL_IS_OURS   1

Definition at line 756 of file sqlp.yy.c.

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) -= (yy_more_len); \
yyleng = (size_t) (yy_cp - (yytext_ptr)); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define yytext_ptr
Definition: sqlp.yy.c:355
register char * yy_cp
Definition: sqlp.yy.c:783
register char * yy_bp
Definition: sqlp.yy.c:783
yy_size_t yyleng
Definition: sqlp.yy.c:284

Definition at line 365 of file sqlp.yy.c.

#define YY_END_OF_BUFFER   55

Definition at line 374 of file sqlp.yy.c.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 140 of file sqlp.yy.c.

#define YY_EXIT_FAILURE   2
#define YY_EXTRA_TYPE   void *

Definition at line 612 of file sqlp.yy.c.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 747 of file sqlp.yy.c.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file sqlp.yy.c.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file sqlp.yy.c.

#define YY_FLEX_SUBMINOR_VERSION   39

Definition at line 11 of file sqlp.yy.c.

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 308 of file sqlp.yy.c.

#define YY_INPUT (   b,
  r,
  ms 
)    (r = my_yyinput(b, ms))

Definition at line 593 of file sqlp.yy.c.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file sqlp.yy.c.

#define YY_LESS_LINENO (   n)

Definition at line 177 of file sqlp.yy.c.

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 178 of file sqlp.yy.c.

#define YY_MORE_ADJ   (yy_more_len)

Definition at line 561 of file sqlp.yy.c.

#define yy_new_buffer   yy_create_buffer

Definition at line 318 of file sqlp.yy.c.

#define YY_NEW_FILE   yyrestart(yyin )

Definition at line 138 of file sqlp.yy.c.

#define YY_NULL   0

Definition at line 112 of file sqlp.yy.c.

#define YY_NUM_RULES   54

Definition at line 373 of file sqlp.yy.c.

#define YY_READ_BUF_SIZE   8192

Definition at line 684 of file sqlp.yy.c.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 562 of file sqlp.yy.c.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 775 of file sqlp.yy.c.

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 119 of file sqlp.yy.c.

#define yy_set_bol (   at_bol)
Value:
{ \
yyensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
FILE * yyin
Definition: sqlp.yy.c:346
#define YY_BUF_SIZE
Definition: sqlp.yy.c:151
if(!YY_CURRENT_BUFFER)
Definition: sqlp.yy.c:803
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
#define YY_CURRENT_BUFFER
Definition: sqlp.yy.c:272
#define YY_CURRENT_BUFFER_LVALUE
Definition: sqlp.yy.c:279

Definition at line 330 of file sqlp.yy.c.

#define yy_set_interactive (   is_interactive)
Value:
{ \
yyensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
FILE * yyin
Definition: sqlp.yy.c:346
#define YY_BUF_SIZE
Definition: sqlp.yy.c:151
if(!YY_CURRENT_BUFFER)
Definition: sqlp.yy.c:803
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
#define YY_CURRENT_BUFFER
Definition: sqlp.yy.c:272
#define YY_CURRENT_BUFFER_LVALUE
Definition: sqlp.yy.c:279

Definition at line 320 of file sqlp.yy.c.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 131 of file sqlp.yy.c.

#define YY_START_STACK_INCR   25

Definition at line 742 of file sqlp.yy.c.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 157 of file sqlp.yy.c.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 135 of file sqlp.yy.c.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 197 of file sqlp.yy.c.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 160 of file sqlp.yy.c.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 165 of file sqlp.yy.c.

#define YY_USER_ACTION

Definition at line 767 of file sqlp.yy.c.

#define yyconst

Definition at line 108 of file sqlp.yy.c.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
(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 YY_RESTORE_YY_MORE_OFFSET
Definition: sqlp.yy.c:562
#define YY_MORE_ADJ
Definition: sqlp.yy.c:561
register char * yy_cp
Definition: sqlp.yy.c:783
#define YY_LESS_LINENO(n)
Definition: sqlp.yy.c:177
register char * yy_bp
Definition: sqlp.yy.c:783
#define YY_DO_BEFORE_ACTION
Definition: sqlp.yy.c:365
int
Reads the categories file for map name in mapset and stores the categories in the pcats structure...

Definition at line 181 of file sqlp.yy.c.

#define yyless (   n)
Value:
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 )
char * yytext
Definition: sqlp.yy.c:563
#define YY_LESS_LINENO(n)
Definition: sqlp.yy.c:177
yy_size_t yyleng
Definition: sqlp.yy.c:284
int
Reads the categories file for map name in mapset and stores the categories in the pcats structure...

Definition at line 181 of file sqlp.yy.c.

#define yymore ( )    ((yy_more_flag) = 1)

Definition at line 560 of file sqlp.yy.c.

#define YYSTATE   YY_START

Definition at line 132 of file sqlp.yy.c.

#define YYTABLES_NAME   "yytables"
#define yyterminate ( )    return YY_NULL

Definition at line 737 of file sqlp.yy.c.

#define yytext_ptr   yytext

Definition at line 355 of file sqlp.yy.c.

Typedef Documentation

typedef short int flex_int16_t

Definition at line 51 of file sqlp.yy.c.

typedef int flex_int32_t

Definition at line 52 of file sqlp.yy.c.

typedef signed char flex_int8_t

Definition at line 50 of file sqlp.yy.c.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file sqlp.yy.c.

typedef unsigned int flex_uint32_t

Definition at line 55 of file sqlp.yy.c.

typedef unsigned char flex_uint8_t

Definition at line 53 of file sqlp.yy.c.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 161 of file sqlp.yy.c.

typedef unsigned char YY_CHAR

Definition at line 344 of file sqlp.yy.c.

typedef size_t yy_size_t

Definition at line 166 of file sqlp.yy.c.

typedef int yy_state_type

Definition at line 348 of file sqlp.yy.c.

Function Documentation

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Referenced by if().

void yy_delete_buffer ( YY_BUFFER_STATE  b)
void yy_flush_buffer ( YY_BUFFER_STATE  b)
YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size 
)
YY_BUFFER_STATE yy_scan_bytes ( yyconst char *  bytes,
yy_size_t  len 
)
YY_BUFFER_STATE yy_scan_string ( yyconst char *  yy_str)
void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)
void* yyalloc ( yy_size_t  )

Referenced by yyparse().

void yyfree ( void *  )
int yyget_debug ( void  )
YY_EXTRA_TYPE yyget_extra ( void  )
FILE* yyget_in ( void  )
yy_size_t yyget_leng ( void  )
int yyget_lineno ( void  )
FILE* yyget_out ( void  )
char* yyget_text ( void  )
int yylex ( void  )
int yylex_destroy ( void  )
void yypop_buffer_state ( void  )
void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)
void* yyrealloc ( void *  ,
yy_size_t   
)
void yyrestart ( FILE *  input_file)
void yyset_debug ( int  debug_flag)
void yyset_extra ( YY_EXTRA_TYPE  user_defined)
void yyset_in ( FILE *  in_str)
void yyset_lineno ( int  line_number)
void yyset_out ( FILE *  out_str)
int yywrap ( void  )

Variable Documentation

register int yy_act

Definition at line 784 of file sqlp.yy.c.

register char * yy_bp

Definition at line 783 of file sqlp.yy.c.

register char* yy_cp

Definition at line 783 of file sqlp.yy.c.

YY_DECL register yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 782 of file sqlp.yy.c.

int yy_flex_debug = 0

Definition at line 552 of file sqlp.yy.c.

FILE * yyin = (FILE *) 0

Definition at line 346 of file sqlp.yy.c.

Referenced by if().

yy_size_t yyleng

Definition at line 284 of file sqlp.yy.c.

int yylineno = 1

Definition at line 352 of file sqlp.yy.c.

FILE * yyout = (FILE *) 0

Definition at line 346 of file sqlp.yy.c.

char * yytext

Definition at line 563 of file sqlp.yy.c.