1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/*-------------------------------------------------------------------------
*
* c_kwlist_d.h
* List of keywords represented as a ScanKeywordList.
*
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* NOTES
* ******************************
* *** DO NOT EDIT THIS FILE! ***
* ******************************
*
* It has been GENERATED by src/tools/gen_keywordlist.pl
*
*-------------------------------------------------------------------------
*/
#ifndef C_KWLIST_D_H
#define C_KWLIST_D_H
#include "common/kwlookup.h"
static const char ScanCKeywords_kw_string[] =
"VARCHAR\0"
"auto\0"
"bool\0"
"char\0"
"const\0"
"enum\0"
"extern\0"
"float\0"
"hour\0"
"int\0"
"long\0"
"minute\0"
"month\0"
"register\0"
"second\0"
"short\0"
"signed\0"
"static\0"
"struct\0"
"to\0"
"typedef\0"
"union\0"
"unsigned\0"
"varchar\0"
"volatile\0"
"year";
static const uint16 ScanCKeywords_kw_offsets[] = {
0,
8,
13,
18,
23,
29,
34,
41,
47,
52,
56,
61,
68,
74,
83,
90,
96,
103,
110,
117,
120,
128,
134,
143,
151,
160,
};
#define SCANCKEYWORDS_NUM_KEYWORDS 26
static int
ScanCKeywords_hash_func(const void *key, size_t keylen)
{
static const int8 h[53] = {
-5, 0, 127, -9, 0, 127, 127, 3,
127, 15, 127, 127, 127, 127, 11, 16,
1, 0, 6, 16, 9, 5, 127, 0,
127, 20, 24, -5, 5, 18, 5, 18,
2, 127, 127, 127, 20, 127, -17, 0,
127, 2, 127, 6, 127, -10, 12, 19,
0, 0, 0, 127, 0
};
const unsigned char *k = (const unsigned char *) key;
uint32 a = 0;
uint32 b = 0;
while (keylen--)
{
unsigned char c = *k++;
a = a * 257 + c;
b = b * 17 + c;
}
return h[a % 53] + h[b % 53];
}
static const ScanKeywordList ScanCKeywords = {
ScanCKeywords_kw_string,
ScanCKeywords_kw_offsets,
ScanCKeywords_hash_func,
SCANCKEYWORDS_NUM_KEYWORDS,
8
};
#endif /* C_KWLIST_D_H */
|