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-2025, 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 : "execute\0"
57 : "exit\0"
58 : "fetch\0"
59 : "first\0"
60 : "forward\0"
61 : "get\0"
62 : "hint\0"
63 : "import\0"
64 : "info\0"
65 : "insert\0"
66 : "is\0"
67 : "last\0"
68 : "log\0"
69 : "merge\0"
70 : "message\0"
71 : "message_text\0"
72 : "move\0"
73 : "next\0"
74 : "no\0"
75 : "notice\0"
76 : "open\0"
77 : "option\0"
78 : "perform\0"
79 : "pg_context\0"
80 : "pg_datatype_name\0"
81 : "pg_exception_context\0"
82 : "pg_exception_detail\0"
83 : "pg_exception_hint\0"
84 : "pg_routine_oid\0"
85 : "print_strict_params\0"
86 : "prior\0"
87 : "query\0"
88 : "raise\0"
89 : "relative\0"
90 : "return\0"
91 : "returned_sqlstate\0"
92 : "reverse\0"
93 : "rollback\0"
94 : "row_count\0"
95 : "rowtype\0"
96 : "schema\0"
97 : "schema_name\0"
98 : "scroll\0"
99 : "slice\0"
100 : "sqlstate\0"
101 : "stacked\0"
102 : "strict\0"
103 : "table\0"
104 : "table_name\0"
105 : "type\0"
106 : "use_column\0"
107 : "use_variable\0"
108 : "variable_conflict\0"
109 : "warning";
110 :
111 : static const uint16 UnreservedPLKeywords_kw_offsets[] = {
112 : 0,
113 : 9,
114 : 15,
115 : 19,
116 : 25,
117 : 32,
118 : 41,
119 : 46,
120 : 52,
121 : 58,
122 : 66,
123 : 73,
124 : 85,
125 : 92,
126 : 101,
127 : 112,
128 : 128,
129 : 137,
130 : 145,
131 : 152,
132 : 161,
133 : 167,
134 : 175,
135 : 182,
136 : 194,
137 : 197,
138 : 202,
139 : 209,
140 : 215,
141 : 223,
142 : 229,
143 : 239,
144 : 247,
145 : 252,
146 : 258,
147 : 264,
148 : 272,
149 : 276,
150 : 281,
151 : 288,
152 : 293,
153 : 300,
154 : 303,
155 : 308,
156 : 312,
157 : 318,
158 : 326,
159 : 339,
160 : 344,
161 : 349,
162 : 352,
163 : 359,
164 : 364,
165 : 371,
166 : 379,
167 : 390,
168 : 407,
169 : 428,
170 : 448,
171 : 466,
172 : 481,
173 : 501,
174 : 507,
175 : 513,
176 : 519,
177 : 528,
178 : 535,
179 : 553,
180 : 561,
181 : 570,
182 : 580,
183 : 588,
184 : 595,
185 : 607,
186 : 614,
187 : 620,
188 : 629,
189 : 637,
190 : 644,
191 : 650,
192 : 661,
193 : 666,
194 : 677,
195 : 690,
196 : 708,
197 : };
198 :
199 : #define UNRESERVEDPLKEYWORDS_NUM_KEYWORDS 85
200 :
201 : static int
202 111726 : UnreservedPLKeywords_hash_func(const void *key, size_t keylen)
203 : {
204 : static const int16 h[171] = {
205 : 83, 27, 32767, 32767, 28, 32767, 32767, 0,
206 : 12, 59, -22, 51, 39, 32767, 32767, 0,
207 : 20, 14, 7, 23, 76, 32767, 32767, 32767,
208 : 43, 32767, 32767, 32767, 28, 32767, 79, -19,
209 : 19, -33, 32767, 25, 24, 32767, 0, 32767,
210 : 0, 32767, 17, 32767, 34, 0, 32767, 27,
211 : 54, 6, 32767, -61, 0, 27, 32767, -18,
212 : 12, 55, 0, 32767, 0, 32767, 0, 49,
213 : -12, 0, 32767, 32767, 73, 32767, 26, 32767,
214 : 0, 12, 32767, 26, 32767, 32767, 46, 32767,
215 : 25, -59, 13, 14, -10, 32767, -56, 32767,
216 : 68, 32767, 32767, 54, 33, 0, -17, -68,
217 : 0, 0, -34, 0, 43, 59, 32767, 61,
218 : 0, 0, 78, 1, 44, 32767, 32767, 32767,
219 : 63, 32767, 1, 0, 3, 32767, 69, 32767,
220 : -9, 28, 32767, 69, 38, 32767, 25, 32767,
221 : 32767, 0, 0, 79, 32767, 0, 32767, 32767,
222 : 0, 84, 32767, 32767, 2, 70, 83, 48,
223 : 14, 32767, 9, 32, -30, 32767, 32767, 72,
224 : 32767, 32767, 82, 0, 0, 40, 9, -3,
225 : 32767, 24, 0, 0, 0, -7, -10, 32767,
226 : 0, 0, 32767
227 : };
228 :
229 111726 : const unsigned char *k = (const unsigned char *) key;
230 111726 : uint32 a = 0;
231 111726 : uint32 b = 0;
232 :
233 739486 : while (keylen--)
234 : {
235 627760 : unsigned char c = *k++ | 0x20;
236 :
237 627760 : a = a * 257 + c;
238 627760 : b = b * 31 + c;
239 : }
240 111726 : return h[a % 171] + h[b % 171];
241 : }
242 :
243 : static const ScanKeywordList UnreservedPLKeywords = {
244 : UnreservedPLKeywords_kw_string,
245 : UnreservedPLKeywords_kw_offsets,
246 : UnreservedPLKeywords_hash_func,
247 : UNRESERVEDPLKEYWORDS_NUM_KEYWORDS,
248 : 20
249 : };
250 :
251 : #endif /* PL_UNRESERVED_KWLIST_D_H */
|