|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include <grass/sqlp.h>#include "sqlp.tab.h"#include <unistd.h>
Go to the source code of this file.
Variables | |
| int | yyleng |
| FILE * | yyin = NULL |
| FILE * | yyout = NULL |
| int | yylineno = 1 |
| char * | yytext |
| int | yy_flex_debug = 0 |
| #define REJECT reject_used_but_not_detected |
| #define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| #define YY_CURRENT_BUFFER |
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define YY_DO_BEFORE_ACTION |
| #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) |
| #define yy_new_buffer yy_create_buffer |
| #define YY_RULE_SETUP YY_USER_ACTION |
| #define yy_set_interactive | ( | is_interactive | ) |
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
| #define yyless | ( | n | ) |
| #define yyless | ( | n | ) |
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 2260 of file sqlp.yy.c.
References SQLPSTMT::cur, sqlpStmt, and SQLPSTMT::stmt.
| YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
| int | size | ||
| ) |
Allocate and initialize an input buffer state.
| file | A readable stream. |
| size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE. |
Definition at line 1755 of file sqlp.yy.c.
References b, file, YY_FATAL_ERROR, and yyalloc().
Referenced by yylex(), and yyrestart().
| void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
| b | a buffer created with yy_create_buffer() |
Definition at line 1783 of file sqlp.yy.c.
References b, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyfree().
Referenced by yylex_destroy(), and yypop_buffer_state().
| void yy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
| b | the buffer state to be flushed, usually YY_CURRENT_BUFFER. |
Definition at line 1830 of file sqlp.yy.c.
References b, YY_BUFFER_NEW, YY_CURRENT_BUFFER, and YY_END_OF_BUFFER_CHAR.
Referenced by yyerror().
| YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
| yy_size_t | size | ||
| ) |
Setup the input buffer state to scan directly from a user-specified character buffer.
| base | the character buffer |
| size | the size in bytes of the character buffer |
Definition at line 1957 of file sqlp.yy.c.
References b, NULL, YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_switch_to_buffer(), and yyalloc().
Referenced by yy_scan_bytes().
| YY_BUFFER_STATE yy_scan_bytes | ( | const char * | yybytes, |
| int | _yybytes_len | ||
| ) |
Setup the input buffer state to scan the given bytes. The next call to yylex() will scan from a copy of bytes.
| yybytes | the byte buffer to scan |
| _yybytes_len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 2007 of file sqlp.yy.c.
References b, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer(), and yyalloc().
Referenced by yy_scan_string().
| YY_BUFFER_STATE yy_scan_string | ( | const char * | yystr | ) |
Setup the input buffer state to scan a string. The next call to yylex() will scan from a copy of str.
| yystr | a NUL-terminated string to scan |
Definition at line 1994 of file sqlp.yy.c.
References yy_scan_bytes().
| void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
| new_buffer | The new input buffer. |
Definition at line 1710 of file sqlp.yy.c.
References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by yy_scan_buffer().
Definition at line 2219 of file sqlp.yy.c.
References malloc(), and yyalloc().
Referenced by free(), yy_create_buffer(), yy_scan_buffer(), yy_scan_bytes(), yyalloc(), and yyparse().
Definition at line 2283 of file sqlp.yy.c.
References SQLPSTMT::errmsg, sqlpStmt, YY_CURRENT_BUFFER, yy_flush_buffer(), and yytext.
Definition at line 2237 of file sqlp.yy.c.
References free().
Referenced by yy_delete_buffer(), and yylex_destroy().
Definition at line 2134 of file sqlp.yy.c.
References yy_flex_debug.
The main scanner function which does all the work.
Definition at line 769 of file sqlp.yy.c.
References ADD, ALTER, AND, ASC, BY, COLUMN, COMPARISON_OPERATOR, CREATE, DATE, DELETE, DESC, DOUBLE, DROP, ECHO, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EQUAL, FLOATNUM, YYSTYPE::floatval, free(), FROM, INITIAL, INSERT, INT, INTEGER, INTNUM, INTO, YYSTYPE::intval, IS, NAME, NOT, NULL, NULL_VALUE, OR, ORDER, PRECISION, SELECT, SET, STRING, YYSTYPE::strval, TABLE, TIME, unput, UPDATE, VALUES, VARCHAR, WHERE, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, YY_MORE_ADJ, YY_NEW_FILE, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, YY_STATE_EOF, yyerror(), yyin, yylval, yymore, yyout, yyterminate, yytext, yytext_ptr, and yywrap().
Referenced by yyparse().
Definition at line 2173 of file sqlp.yy.c.
References NULL, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yyfree(), and yypop_buffer_state().
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Definition at line 1889 of file sqlp.yy.c.
References NULL, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_delete_buffer().
Referenced by yylex_destroy().
| void yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
| new_buffer | The new state. |
Definition at line 1859 of file sqlp.yy.c.
References NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Immediately switch to a different input stream.
| input_file | A readable stream. |
INITIAL . Definition at line 1693 of file sqlp.yy.c.
References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyin.
Definition at line 2139 of file sqlp.yy.c.
References yy_flex_debug.
Set the input stream. This does not discard the current input buffer.
| _in_str | A readable stream. |
Definition at line 2124 of file sqlp.yy.c.
References yyin.
| int yy_flex_debug = 0 |
Definition at line 534 of file sqlp.yy.c.
Referenced by yyget_debug(), and yyset_debug().
Definition at line 327 of file sqlp.yy.c.
Referenced by yyget_in(), yylex(), yyrestart(), and yyset_in().
| int yyleng |
Definition at line 270 of file sqlp.yy.c.
Referenced by yyget_leng().
| int yylineno = 1 |
Definition at line 332 of file sqlp.yy.c.
Referenced by yyget_lineno(), and yyset_lineno().
Definition at line 159 of file sqlp.yy.c.
Referenced by yyget_out(), yylex(), and yyset_out().