Line data Source code
1 : /*-------------------------------------------------------------------------
2 : *
3 : * pl_unreserved_kwlist_d.h
4 : * List of keywords represented as a ScanKeywordList.
5 : *
6 : * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7 : * Portions Copyright (c) 1994, Regents of the University of California
8 : *
9 : * NOTES
10 : * ******************************
11 : * *** DO NOT EDIT THIS FILE! ***
12 : * ******************************
13 : *
14 : * It has been GENERATED by src/tools/gen_keywordlist.pl
15 : *
16 : *-------------------------------------------------------------------------
17 : */
18 :
19 : #ifndef PL_UNRESERVED_KWLIST_D_H
20 : #define PL_UNRESERVED_KWLIST_D_H
21 :
22 : #include "common/kwlookup.h"
23 :
24 : static const char UnreservedPLKeywords_kw_string[] =
25 : "absolute\0"
26 : "alias\0"
27 : "and\0"
28 : "array\0"
29 : "assert\0"
30 : "backward\0"
31 : "call\0"
32 : "chain\0"
33 : "close\0"
34 : "collate\0"
35 : "column\0"
36 : "column_name\0"
37 : "commit\0"
38 : "constant\0"
39 : "constraint\0"
40 : "constraint_name\0"
41 : "continue\0"
42 : "current\0"
43 : "cursor\0"
44 : "datatype\0"
45 : "debug\0"
46 : "default\0"
47 : "detail\0"
48 : "diagnostics\0"
49 : "do\0"
50 : "dump\0"
51 : "elseif\0"
52 : "elsif\0"
53 : "errcode\0"
54 : "error\0"
55 : "exception\0"
56 : "exit\0"
57 : "fetch\0"
58 : "first\0"
59 : "forward\0"
60 : "get\0"
61 : "hint\0"
62 : "import\0"
63 : "info\0"
64 : "insert\0"
65 : "is\0"
66 : "last\0"
67 : "log\0"
68 : "merge\0"
69 : "message\0"
70 : "message_text\0"
71 : "move\0"
72 : "next\0"
73 : "no\0"
74 : "notice\0"
75 : "open\0"
76 : "option\0"
77 : "perform\0"
78 : "pg_context\0"
79 : "pg_datatype_name\0"
80 : "pg_exception_context\0"
81 : "pg_exception_detail\0"
82 : "pg_exception_hint\0"
83 : "pg_routine_oid\0"
84 : "print_strict_params\0"
85 : "prior\0"
86 : "query\0"
87 : "raise\0"
88 : "relative\0"
89 : "return\0"
90 : "returned_sqlstate\0"
91 : "reverse\0"
92 : "rollback\0"
93 : "row_count\0"
94 : "rowtype\0"
95 : "schema\0"
96 : "schema_name\0"
97 : "scroll\0"
98 : "slice\0"
99 : "sqlstate\0"
100 : "stacked\0"
101 : "table\0"
102 : "table_name\0"
103 : "type\0"
104 : "use_column\0"
105 : "use_variable\0"
106 : "variable_conflict\0"
107 : "warning";
108 :
109 : static const uint16 UnreservedPLKeywords_kw_offsets[] = {
110 : 0,
111 : 9,
112 : 15,
113 : 19,
114 : 25,
115 : 32,
116 : 41,
117 : 46,
118 : 52,
119 : 58,
120 : 66,
121 : 73,
122 : 85,
123 : 92,
124 : 101,
125 : 112,
126 : 128,
127 : 137,
128 : 145,
129 : 152,
130 : 161,
131 : 167,
132 : 175,
133 : 182,
134 : 194,
135 : 197,
136 : 202,
137 : 209,
138 : 215,
139 : 223,
140 : 229,
141 : 239,
142 : 244,
143 : 250,
144 : 256,
145 : 264,
146 : 268,
147 : 273,
148 : 280,
149 : 285,
150 : 292,
151 : 295,
152 : 300,
153 : 304,
154 : 310,
155 : 318,
156 : 331,
157 : 336,
158 : 341,
159 : 344,
160 : 351,
161 : 356,
162 : 363,
163 : 371,
164 : 382,
165 : 399,
166 : 420,
167 : 440,
168 : 458,
169 : 473,
170 : 493,
171 : 499,
172 : 505,
173 : 511,
174 : 520,
175 : 527,
176 : 545,
177 : 553,
178 : 562,
179 : 572,
180 : 580,
181 : 587,
182 : 599,
183 : 606,
184 : 612,
185 : 621,
186 : 629,
187 : 635,
188 : 646,
189 : 651,
190 : 662,
191 : 675,
192 : 693,
193 : };
194 :
195 : #define UNRESERVEDPLKEYWORDS_NUM_KEYWORDS 83
196 :
197 : static int
198 98902 : UnreservedPLKeywords_hash_func(const void *key, size_t keylen)
199 : {
200 : static const int16 h[167] = {
201 : 0, -26, 32767, 0, 74, -36, 32767, 32767,
202 : 93, 0, 35, 14, 34, -65, -42, 78,
203 : -22, 8, 10, 0, 5, 32767, 10, 26,
204 : 32767, 4, 32767, 32767, -81, -9, -25, 32767,
205 : -17, 11, 0, -43, 11, 8, 45, 0,
206 : 32767, 32767, 32767, 12, 0, 32767, 32, 32767,
207 : 0, 32767, -18, 64, 32767, -2, 31, 32767,
208 : 50, 80, -75, 32767, 32767, 32767, 0, 32767,
209 : 32767, 0, 54, 82, 32767, 32767, 69, 60,
210 : 43, 32767, 0, 95, 21, 1, 27, 0,
211 : 120, 32767, -46, 32767, -57, 32767, 32767, 55,
212 : 70, 32767, 28, 32767, 0, -14, -38, 32767,
213 : 57, 0, 32767, 19, 98, 0, 32767, 68,
214 : 32767, 32767, 32767, 32767, -26, 13, 27, 35,
215 : 37, 32767, 49, -44, 65, -35, 0, 32767,
216 : 32767, 32767, 30, 0, 0, 32767, 26, 42,
217 : 7, 32767, 72, -43, 32767, 0, 32767, 89,
218 : 36, 48, 32767, 32, 38, 3, 32767, 49,
219 : 32767, 0, 51, 0, 32767, 73, 32767, 32767,
220 : 79, 32767, 30, 32767, 0, 0, 50, 32767,
221 : 0, 32767, 32767, 32767, 0, 32767, 32767
222 : };
223 :
224 98902 : const unsigned char *k = (const unsigned char *) key;
225 98902 : uint32 a = 0;
226 98902 : uint32 b = 1;
227 :
228 651484 : while (keylen--)
229 : {
230 552582 : unsigned char c = *k++ | 0x20;
231 :
232 552582 : a = a * 257 + c;
233 552582 : b = b * 8191 + c;
234 : }
235 98902 : return h[a % 167] + h[b % 167];
236 : }
237 :
238 : static const ScanKeywordList UnreservedPLKeywords = {
239 : UnreservedPLKeywords_kw_string,
240 : UnreservedPLKeywords_kw_offsets,
241 : UnreservedPLKeywords_hash_func,
242 : UNRESERVEDPLKEYWORDS_NUM_KEYWORDS,
243 : 20
244 : };
245 :
246 : #endif /* PL_UNRESERVED_KWLIST_D_H */
|