* doc/install.texi: Update details of what components are included
[official-gcc.git] / gcc / cp / cfns.h
blobc7e6a9d9412d506e59d8c86b65f4774acbd4ecb4
1 /* C code produced by gperf version 2.7 */
2 /* Command-line: gperf -o -C -E -k 1-6,$ -j1 -D -N libc_name_p ../../../egcs-CVS20000404/gcc/cp/cfns.gperf */
3 #ifdef __GNUC__
4 __inline
5 #endif
6 static unsigned int hash PARAMS ((const char *, unsigned int));
7 #ifdef __GNUC__
8 __inline
9 #endif
10 const char * libc_name_p PARAMS ((const char *, unsigned int));
11 /* maximum key range = 1020, duplicates = 1 */
13 #ifdef __GNUC__
14 __inline
15 #endif
16 static unsigned int
17 hash (str, len)
18 register const char *str;
19 register unsigned int len;
21 static const unsigned short asso_values[] =
23 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
24 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
25 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
26 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
27 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 0, 1,
28 0, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
29 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
30 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
31 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
32 1038, 1038, 1038, 1038, 1038, 1038, 1038, 247, 218, 144,
33 0, 0, 40, 7, 126, 184, 2, 15, 146, 67,
34 9, 60, 0, 0, 3, 0, 7, 8, 197, 1,
35 40, 8, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
36 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
37 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
38 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
39 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
40 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
41 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
42 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
43 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
44 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
45 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
46 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
47 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038,
48 1038, 1038, 1038, 1038, 1038, 1038
50 register int hval = len;
52 switch (hval)
54 default:
55 case 6:
56 hval += asso_values[(unsigned char)str[5]];
57 case 5:
58 hval += asso_values[(unsigned char)str[4]];
59 case 4:
60 hval += asso_values[(unsigned char)str[3]];
61 case 3:
62 hval += asso_values[(unsigned char)str[2]];
63 case 2:
64 hval += asso_values[(unsigned char)str[1]];
65 case 1:
66 hval += asso_values[(unsigned char)str[0]];
67 break;
69 return hval + asso_values[(unsigned char)str[len - 1]];
72 #ifdef __GNUC__
73 __inline
74 #endif
75 const char *
76 libc_name_p (str, len)
77 register const char *str;
78 register unsigned int len;
80 enum
82 TOTAL_KEYWORDS = 207,
83 MIN_WORD_LENGTH = 3,
84 MAX_WORD_LENGTH = 10,
85 MIN_HASH_VALUE = 18,
86 MAX_HASH_VALUE = 1037
89 static const char * const wordlist[] =
91 "gets",
92 "puts",
93 "sqrt",
94 "strerror",
95 "strstr",
96 "strspn",
97 "exp",
98 "free",
99 "fgets",
100 "fputs",
101 "fgetws",
102 "fputws",
103 "pow",
104 "fseek",
105 "perror",
106 "strtod",
107 "toupper",
108 "towupper",
109 "frexp",
110 "strtok",
111 "fsetpos",
112 "ferror",
113 "freopen",
114 "fgetpos",
115 "fopen",
116 "wmemset",
117 "memset",
118 "system",
119 "wcsstr",
120 "wctype",
121 "strxfrm",
122 "wcsspn",
123 "strcspn",
124 "fmod",
125 "strcpy",
126 "strncpy",
127 "strlen",
128 "ungetwc",
129 "feof",
130 "ldexp",
131 "isupper",
132 "rewind",
133 "iswupper",
134 "sin",
135 "cos",
136 "modf",
137 "iswpunct",
138 "wcstod",
139 "log10",
140 "log",
141 "wcsrtombs",
142 "strcmp",
143 "fwide",
144 "towctrans",
145 "strncmp",
146 "strtoul",
147 "fwrite",
148 "exit",
149 "swprintf",
150 "wcstok",
151 "strftime",
152 "sprintf",
153 "wprintf",
154 "strpbrk",
155 "time",
156 "rand",
157 "srand",
158 "wmemmove",
159 "tan",
160 "tolower",
161 "fwprintf",
162 "towlower",
163 "wcstombs",
164 "printf",
165 "fprintf",
166 "strchr",
167 "strrchr",
168 "wmemcpy",
169 "fread",
170 "getwchar",
171 "putwchar",
172 "longjmp",
173 "memcpy",
174 "wcsxfrm",
175 "wcscspn",
176 "getc",
177 "putc",
178 "getwc",
179 "putwc",
180 "wcscpy",
181 "wcsncpy",
182 "wcslen",
183 "floor",
184 "setbuf",
185 "ungetc",
186 "rename",
187 "remove",
188 "gmtime",
189 "mktime",
190 "fgetc",
191 "fputc",
192 "fgetwc",
193 "fputwc",
194 "memcmp",
195 "iswctype",
196 "wmemcmp",
197 "ispunct",
198 "mbstowcs",
199 "wcscmp",
200 "mbsrtowcs",
201 "setlocale",
202 "wcsncmp",
203 "wcstoul",
204 "strtol",
205 "wcsftime",
206 "iswprint",
207 "wcspbrk",
208 "iswdigit",
209 "isprint",
210 "fclose",
211 "atof",
212 "islower",
213 "iswlower",
214 "ctime",
215 "wmemchr",
216 "memchr",
217 "wctrans",
218 "strcat",
219 "getenv",
220 "strncat",
221 "iswxdigit",
222 "wcschr",
223 "wcsrchr",
224 "isxdigit",
225 "vswprintf",
226 "raise",
227 "iswspace",
228 "vsprintf",
229 "vwprintf",
230 "vprintf",
231 "swscanf",
232 "sinh",
233 "tmpfile",
234 "asin",
235 "mblen",
236 "acos",
237 "mbrlen",
238 "cosh",
239 "difftime",
240 "memmove",
241 "abs",
242 "tmpnam",
243 "vfwprintf",
244 "setvbuf",
245 "vfprintf",
246 "scanf",
247 "sscanf",
248 "wscanf",
249 "fwscanf",
250 "ftell",
251 "fflush",
252 "atexit",
253 "iswcntrl",
254 "iscntrl",
255 "mbrtowc",
256 "wcrtomb",
257 "fabs",
258 "wcstol",
259 "strcoll",
260 "atan2",
261 "tanh",
262 "atan",
263 "fscanf",
264 "clock",
265 "getchar",
266 "putchar",
267 "abort",
268 "clearerr",
269 "wcscat",
270 "wcsncat",
271 "isdigit",
272 "isgraph",
273 "iswgraph",
274 "btowc",
275 "div",
276 "isspace",
277 "atol",
278 "labs",
279 "ceil",
280 "mbtowc",
281 "wcscoll",
282 "wctob",
283 "asctime",
284 "iswalnum",
285 "isalnum",
286 "mbsinit",
287 "atoi",
288 "wctomb",
289 "ldiv",
290 "signal",
291 "realloc",
292 "localtime",
293 "iswalpha",
294 "localeconv",
295 "isalpha",
296 "malloc",
297 "calloc"
300 static const short lookup[] =
302 -1, -1, -1, -1, -1, -1, -1, -1,
303 -1, -1, -1, -1, -1, -1, -1, -1,
304 -1, -1, 0, 1, -1, 2, -1, -1,
305 -1, -1, -1, 3, -1, 4, -1, -1,
306 -1, -1, 5, -1, -1, -1, -1, -1,
307 -1, -1, -1, 6, -1, -1, -1, 7,
308 -1, -1, -1, -1, -1, -1, -1, -1,
309 -1, -1, -1, 8, 9, 10, 11, -1,
310 -1, 12, -1, -1, -1, -1, -1, -1,
311 -1, -1, -1, 13, -1, -1, 14, -1,
312 -1, -1, -1, 15, -1, 16, -1, 17,
313 18, -1, -1, -1, -1, -1, -1, -1,
314 -1, -1, -1, -1, -1, -1, -1, -1,
315 -1, -1, -1, -1, -1, -1, -1, -1,
316 -1, 19, 20, -1, -1, -1, 21, 22,
317 -1, 23, -1, 24, -1, -1, -1, -1,
318 -1, -1, -1, -1, -1, -1, -1, -1,
319 -1, -1, -1, -1, -1, -1, -1, -1,
320 -1, -1, -1, -1, -1, 25, -1, -1,
321 -1, -1, 26, 27, -1, -1, -1, -1,
322 -1, -1, -1, -1, 28, -1, 29, 30,
323 -1, 31, 32, 33, -1, -1, -1, -1,
324 34, -1, 35, -1, 36, -1, -1, 37,
325 38, -1, -1, -1, -1, -1, -1, 39,
326 -1, -1, -1, -1, -1, -1, -1, -1,
327 -1, -1, 40, 41, 42, 43, -1, 44,
328 -1, -1, -1, 45, -1, -1, -1, -1,
329 -1, 46, 47, 48, -1, -1, -1, 49,
330 50, -1, -1, 51, -1, -1, 52, 53,
331 -1, -1, -1, -1, -1, 54, 55, -1,
332 -1, 56, 57, -1, -1, 58, -1, -1,
333 59, 60, 61, 62, -1, 63, -1, -1,
334 -1, -1, -1, -1, -1, -1, 64, 65,
335 66, -1, -1, -1, -1, -1, 67, -1,
336 -1, -1, -1, 68, -1, -1, -1, -1,
337 -1, -1, -1, -1, 69, 70, 71, 72,
338 -1, 73, 74, -1, 75, 76, 77, 78,
339 79, 80, 81, -1, 82, -1, 83, -1,
340 -1, 84, 85, 86, 87, 88, -1, 89,
341 -1, 90, -1, 91, -1, 92, -1, 93,
342 -1, -1, -1, -1, -1, 94, -1, -1,
343 -1, -1, -1, -1, 95, 96, -1, -1,
344 -1, -1, 97, -1, -1, -1, -1, -1,
345 -1, -1, 98, 99, 100, 101, 102, 103,
346 104, 105, -1, -1, -1, -1, -1, 106,
347 -1, 107, 108, -1, 109, -1, 110, -1,
348 -1, -1, -1, -1, 111, 112, -1, 113,
349 -1, -1, -1, -1, -1, -1, -1, -1,
350 114, -1, -1, 115, 116, -1, -1, 117,
351 -1, -1, 118, -1, 119, -1, 120, -1,
352 -1, 121, -1, 122, -1, -1, -1, 123,
353 -1, -1, -1, -1, -1, -1, -1, 124,
354 125, -1, 126, -1, -1, 127, -1, 128,
355 129, 130, -1, 131, 132, -1, 133, -1,
356 -1, -1, 134, -1, -1, -1, -1, 135,
357 136, 137, 138, -1, -1, -1, -1, 139,
358 140, 141, -1, 142, -1, 143, 144, 145,
359 -1, -1, 146, -1, 147, -1, -1, 148,
360 -1, 149, -1, -1, 150, -1, 151, -1,
361 -1, -1, 152, -1, -1, 153, -1, -1,
362 -1, 154, -1, -1, -1, 155, 156, 157,
363 158, -1, 159, -1, 160, -1, -1, -1,
364 -1, -1, 161, 162, 163, -1, -1, -1,
365 -1, -1, -1, -719, -1, 166, 167, -43,
366 -2, 168, -1, 169, -1, -1, -1, 170,
367 -1, -1, -1, 171, -1, -1, 172, -1,
368 -1, 173, -1, -1, -1, -1, -1, -1,
369 -1, -1, -1, -1, -1, 174, 175, -1,
370 -1, -1, -1, 176, -1, -1, -1, 177,
371 -1, -1, -1, -1, 178, -1, -1, 179,
372 -1, -1, -1, -1, -1, -1, -1, -1,
373 -1, -1, -1, -1, -1, 180, 181, -1,
374 182, -1, -1, 183, -1, 184, 185, -1,
375 -1, -1, -1, -1, -1, -1, -1, -1,
376 -1, -1, -1, -1, -1, -1, -1, -1,
377 -1, -1, -1, -1, -1, -1, -1, -1,
378 -1, -1, 186, -1, -1, -1, -1, 187,
379 -1, -1, -1, -1, -1, -1, -1, -1,
380 188, -1, -1, -1, -1, -1, -1, -1,
381 -1, -1, -1, -1, -1, -1, -1, -1,
382 -1, -1, -1, -1, -1, -1, -1, 189,
383 190, -1, -1, -1, -1, 191, -1, -1,
384 192, -1, -1, -1, -1, -1, 193, -1,
385 -1, -1, -1, -1, 194, -1, -1, -1,
386 -1, -1, -1, -1, 195, -1, -1, -1,
387 -1, -1, -1, -1, -1, -1, 196, -1,
388 -1, -1, -1, -1, -1, -1, -1, -1,
389 -1, -1, -1, -1, -1, -1, -1, -1,
390 -1, -1, -1, -1, -1, -1, -1, -1,
391 -1, -1, -1, -1, -1, -1, -1, -1,
392 -1, 197, -1, -1, -1, -1, -1, -1,
393 198, -1, -1, -1, -1, -1, -1, -1,
394 -1, -1, -1, -1, -1, -1, -1, -1,
395 -1, 199, -1, -1, -1, -1, -1, -1,
396 -1, 200, -1, -1, -1, -1, -1, 201,
397 -1, -1, -1, -1, -1, -1, -1, -1,
398 -1, -1, -1, -1, -1, -1, -1, -1,
399 -1, -1, -1, -1, -1, -1, -1, -1,
400 -1, -1, -1, -1, -1, -1, -1, -1,
401 -1, -1, -1, -1, -1, -1, -1, -1,
402 -1, -1, -1, -1, -1, -1, -1, -1,
403 -1, -1, -1, -1, -1, -1, -1, -1,
404 -1, -1, -1, -1, -1, -1, -1, -1,
405 -1, -1, -1, -1, -1, -1, -1, -1,
406 -1, 202, -1, -1, -1, -1, -1, -1,
407 -1, -1, -1, -1, -1, -1, -1, -1,
408 -1, -1, -1, -1, -1, -1, -1, -1,
409 -1, -1, -1, -1, -1, -1, -1, -1,
410 -1, -1, -1, -1, -1, -1, -1, -1,
411 -1, -1, -1, -1, -1, -1, -1, -1,
412 -1, -1, -1, -1, -1, -1, -1, -1,
413 -1, -1, -1, -1, -1, -1, -1, -1,
414 -1, -1, -1, -1, -1, -1, -1, -1,
415 -1, -1, -1, -1, -1, -1, -1, -1,
416 -1, -1, -1, -1, -1, -1, -1, -1,
417 -1, -1, -1, -1, -1, -1, -1, -1,
418 -1, -1, -1, -1, -1, -1, -1, -1,
419 -1, -1, -1, -1, -1, -1, -1, -1,
420 -1, -1, -1, -1, -1, -1, 203, -1,
421 -1, -1, -1, -1, -1, 204, -1, -1,
422 205, -1, -1, -1, -1, -1, -1, -1,
423 -1, -1, -1, -1, -1, -1, -1, -1,
424 -1, -1, -1, -1, -1, -1, -1, -1,
425 -1, -1, -1, -1, -1, -1, -1, -1,
426 -1, -1, -1, -1, -1, -1, -1, -1,
427 -1, -1, -1, -1, -1, -1, -1, -1,
428 -1, -1, -1, -1, -1, -1, -1, -1,
429 -1, -1, -1, -1, -1, -1, -1, -1,
430 -1, -1, -1, -1, -1, -1, -1, -1,
431 -1, -1, -1, -1, -1, 206
434 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
436 register int key = hash (str, len);
438 if (key <= MAX_HASH_VALUE && key >= 0)
440 register int index = lookup[key];
442 if (index >= 0)
444 register const char *s = wordlist[index];
446 if (*str == *s && !strcmp (str + 1, s + 1))
447 return s;
449 else if (index < -TOTAL_KEYWORDS)
451 register int offset = - 1 - TOTAL_KEYWORDS - index;
452 register const char * const *wordptr = &wordlist[TOTAL_KEYWORDS + lookup[offset]];
453 register const char * const *wordendptr = wordptr + -lookup[offset + 1];
455 while (wordptr < wordendptr)
457 register const char *s = *wordptr;
459 if (*str == *s && !strcmp (str + 1, s + 1))
460 return s;
461 wordptr++;
466 return 0;