#include "postgres_fe.h"
#include "c_kwlist_d.h"
#include "preproc_extern.h"
#include "preproc.h"
#include "c_kwlist.h"
Go to the source code of this file.
◆ PG_KEYWORD
◆ ScanCKeywordLookup()
int ScanCKeywordLookup |
( |
const char * |
text | ) |
|
Definition at line 36 of file c_keywords.c.
37{
39 int h;
40 const char *kw;
41
42
43
44
45
47 if (
len > ScanCKeywords.max_kw_len)
48 return -1;
49
50
51
52
53
54 h = ScanCKeywords_hash_func(
text,
len);
55
56
57 if (h < 0 || h >= ScanCKeywords.num_keywords)
58 return -1;
59
61
62 if (strcmp(kw,
text) == 0)
64
65 return -1;
66}
static const uint16 ScanCKeywordTokens[]
static const char * GetScanKeyword(int n, const ScanKeywordList *keywords)
References GetScanKeyword(), len, and ScanCKeywordTokens.
◆ ScanCKeywordTokens
const uint16 ScanCKeywordTokens[] |
|
static |