|
PostgreSQL Source Code git master
|
#include "common/keywords.h"

Go to the source code of this file.
Data Structures | |
| union | core_YYSTYPE |
| struct | core_yy_extra_type |
| struct | ScannerCallbackState |
Macros | |
| #define | YYLTYPE int |
Typedefs | |
| typedef union core_YYSTYPE | core_YYSTYPE |
| typedef struct core_yy_extra_type | core_yy_extra_type |
| typedef void * | core_yyscan_t |
| typedef struct ScannerCallbackState | ScannerCallbackState |
Functions | |
| core_yyscan_t | scanner_init (const char *str, core_yy_extra_type *yyext, const ScanKeywordList *keywordlist, const uint16 *keyword_tokens) |
| void | scanner_finish (core_yyscan_t yyscanner) |
| int | core_yylex (core_YYSTYPE *yylval_param, YYLTYPE *yylloc_param, core_yyscan_t yyscanner) |
| int | scanner_errposition (int location, core_yyscan_t yyscanner) |
| void | setup_scanner_errposition_callback (ScannerCallbackState *scbstate, core_yyscan_t yyscanner, int location) |
| void | cancel_scanner_errposition_callback (ScannerCallbackState *scbstate) |
| pg_noreturn void | scanner_yyerror (const char *message, core_yyscan_t yyscanner) |
Variables | |
| PGDLLIMPORT const uint16 | ScanKeywordTokens [] |
| typedef struct core_yy_extra_type core_yy_extra_type |
| typedef void* core_yyscan_t |
| typedef union core_YYSTYPE core_YYSTYPE |
| typedef struct ScannerCallbackState ScannerCallbackState |
| void cancel_scanner_errposition_callback | ( | ScannerCallbackState * | scbstate | ) |
Definition at line 1203 of file scan.l.
References ScannerCallbackState::errcallback, error_context_stack, and ErrorContextCallback::previous.
Referenced by addunicode(), and str_udeescape().
| int core_yylex | ( | core_YYSTYPE * | yylval_param, |
| YYLTYPE * | yylloc_param, | ||
| core_yyscan_t | yyscanner | ||
| ) |
Referenced by base_yylex(), fill_in_constant_lengths(), and internal_yylex().
| int scanner_errposition | ( | int | location, |
| core_yyscan_t | yyscanner | ||
| ) |
Definition at line 1140 of file scan.l.
References errposition(), pg_mbstrlen_with_len(), and yyextra.
Referenced by scb_error_callback(), and str_udeescape().
| void scanner_finish | ( | core_yyscan_t | yyscanner | ) |
Definition at line 1291 of file scan.l.
References pfree(), and yyextra.
Referenced by fill_in_constant_lengths(), plpgsql_scanner_finish(), and raw_parser().
| core_yyscan_t scanner_init | ( | const char * | str, |
| core_yy_extra_type * | yyext, | ||
| const ScanKeywordList * | keywordlist, | ||
| const uint16 * | keyword_tokens | ||
| ) |
Definition at line 1249 of file scan.l.
References backslash_quote, core_yy_extra_type::backslash_quote, elog, ERROR, escape_string_warning, core_yy_extra_type::escape_string_warning, core_yy_extra_type::keyword_tokens, core_yy_extra_type::keywordlist, core_yy_extra_type::literalalloc, core_yy_extra_type::literalbuf, core_yy_extra_type::literallen, palloc(), core_yy_extra_type::scanbuf, core_yy_extra_type::scanbuflen, standard_conforming_strings, core_yy_extra_type::standard_conforming_strings, and str.
Referenced by fill_in_constant_lengths(), plpgsql_scanner_init(), and raw_parser().
| pg_noreturn void scanner_yyerror | ( | const char * | message, |
| core_yyscan_t | yyscanner | ||
| ) |
Definition at line 1222 of file scan.l.
References _, ereport, errcode(), errmsg(), ERROR, lexer_errposition, yyextra, and yylloc.
Referenced by base_yylex().
| void setup_scanner_errposition_callback | ( | ScannerCallbackState * | scbstate, |
| core_yyscan_t | yyscanner, | ||
| int | location | ||
| ) |
Definition at line 1186 of file scan.l.
References ErrorContextCallback::arg, ErrorContextCallback::callback, ScannerCallbackState::errcallback, error_context_stack, ScannerCallbackState::location, ErrorContextCallback::previous, scb_error_callback(), and ScannerCallbackState::yyscanner.
Referenced by addunicode(), and str_udeescape().
|
extern |
Definition at line 81 of file scan.l.
Referenced by fill_in_constant_lengths(), and raw_parser().