#include "postgres_fe.h"#include <ctype.h>#include "extern.h"#include "preproc.h"
Go to the source code of this file.
Functions | |
| const ScanKeyword * | ScanECPGKeywordLookup (const char *text) |
Variables | |
| const ScanKeyword | SQLScanKeywords [] |
| const int | NumSQLScanKeywords |
| static const ScanKeyword | ECPGScanKeywords [] |
| const ScanKeyword* ScanECPGKeywordLookup | ( | const char * | text | ) |
Definition at line 89 of file ecpg_keywords.c.
References lengthof, NumSQLScanKeywords, and ScanKeywordLookup().
{
const ScanKeyword *res;
/* First check SQL symbols defined by the backend. */
res = ScanKeywordLookup(text, SQLScanKeywords, NumSQLScanKeywords);
if (res)
return res;
/* Try ECPG-specific keywords. */
res = ScanKeywordLookup(text, ECPGScanKeywords, lengthof(ECPGScanKeywords));
if (res)
return res;
return NULL;
}
const ScanKeyword ECPGScanKeywords[] [static] |
Definition at line 29 of file ecpg_keywords.c.
| const int NumSQLScanKeywords |
Definition at line 29 of file keywords.c.
Referenced by ScanECPGKeywordLookup().
| const ScanKeyword SQLScanKeywords[] |
Definition at line 25 of file keywords.c.
1.7.1