10f66f451Sopenharmony_ci/* ANSI-C code produced by gperf version 3.0.1 */ 20f66f451Sopenharmony_ci/* Command-line: gperf */ 30f66f451Sopenharmony_ci/* Computed positions: -k'1,3' */ 40f66f451Sopenharmony_ci 50f66f451Sopenharmony_ci#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ 60f66f451Sopenharmony_ci && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ 70f66f451Sopenharmony_ci && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ 80f66f451Sopenharmony_ci && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ 90f66f451Sopenharmony_ci && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ 100f66f451Sopenharmony_ci && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ 110f66f451Sopenharmony_ci && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ 120f66f451Sopenharmony_ci && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ 130f66f451Sopenharmony_ci && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ 140f66f451Sopenharmony_ci && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ 150f66f451Sopenharmony_ci && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ 160f66f451Sopenharmony_ci && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ 170f66f451Sopenharmony_ci && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ 180f66f451Sopenharmony_ci && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ 190f66f451Sopenharmony_ci && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ 200f66f451Sopenharmony_ci && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ 210f66f451Sopenharmony_ci && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ 220f66f451Sopenharmony_ci && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ 230f66f451Sopenharmony_ci && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ 240f66f451Sopenharmony_ci && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ 250f66f451Sopenharmony_ci && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ 260f66f451Sopenharmony_ci && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ 270f66f451Sopenharmony_ci && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) 280f66f451Sopenharmony_ci/* The character set is not based on ISO-646. */ 290f66f451Sopenharmony_ci#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>." 300f66f451Sopenharmony_ci#endif 310f66f451Sopenharmony_ci 320f66f451Sopenharmony_cistruct kconf_id; 330f66f451Sopenharmony_ci/* maximum key range = 45, duplicates = 0 */ 340f66f451Sopenharmony_ci 350f66f451Sopenharmony_ci#ifdef __GNUC__ 360f66f451Sopenharmony_ci__inline 370f66f451Sopenharmony_ci#else 380f66f451Sopenharmony_ci#ifdef __cplusplus 390f66f451Sopenharmony_ciinline 400f66f451Sopenharmony_ci#endif 410f66f451Sopenharmony_ci#endif 420f66f451Sopenharmony_cistatic unsigned int 430f66f451Sopenharmony_cikconf_id_hash (register const char *str, register unsigned int len) 440f66f451Sopenharmony_ci{ 450f66f451Sopenharmony_ci static unsigned char asso_values[] = 460f66f451Sopenharmony_ci { 470f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 480f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 490f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 500f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 510f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 520f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 530f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 540f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 550f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 560f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 25, 30, 15, 570f66f451Sopenharmony_ci 0, 15, 0, 47, 5, 15, 47, 47, 30, 20, 580f66f451Sopenharmony_ci 5, 0, 25, 15, 0, 0, 10, 35, 47, 47, 590f66f451Sopenharmony_ci 5, 47, 47, 47, 47, 47, 47, 47, 47, 47, 600f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 610f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 620f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 630f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 640f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 650f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 660f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 670f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 680f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 690f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 700f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 710f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 720f66f451Sopenharmony_ci 47, 47, 47, 47, 47, 47 730f66f451Sopenharmony_ci }; 740f66f451Sopenharmony_ci register int hval = len; 750f66f451Sopenharmony_ci 760f66f451Sopenharmony_ci switch (hval) 770f66f451Sopenharmony_ci { 780f66f451Sopenharmony_ci default: 790f66f451Sopenharmony_ci hval += asso_values[(unsigned char)str[2]]; 800f66f451Sopenharmony_ci /*FALLTHROUGH*/ 810f66f451Sopenharmony_ci case 2: 820f66f451Sopenharmony_ci case 1: 830f66f451Sopenharmony_ci hval += asso_values[(unsigned char)str[0]]; 840f66f451Sopenharmony_ci break; 850f66f451Sopenharmony_ci } 860f66f451Sopenharmony_ci return hval; 870f66f451Sopenharmony_ci} 880f66f451Sopenharmony_ci 890f66f451Sopenharmony_cistruct kconf_id_strings_t 900f66f451Sopenharmony_ci { 910f66f451Sopenharmony_ci char kconf_id_strings_str2[sizeof("on")]; 920f66f451Sopenharmony_ci char kconf_id_strings_str6[sizeof("string")]; 930f66f451Sopenharmony_ci char kconf_id_strings_str7[sizeof("default")]; 940f66f451Sopenharmony_ci char kconf_id_strings_str8[sizeof("def_bool")]; 950f66f451Sopenharmony_ci char kconf_id_strings_str10[sizeof("range")]; 960f66f451Sopenharmony_ci char kconf_id_strings_str11[sizeof("def_boolean")]; 970f66f451Sopenharmony_ci char kconf_id_strings_str12[sizeof("def_tristate")]; 980f66f451Sopenharmony_ci char kconf_id_strings_str13[sizeof("hex")]; 990f66f451Sopenharmony_ci char kconf_id_strings_str14[sizeof("defconfig_list")]; 1000f66f451Sopenharmony_ci char kconf_id_strings_str16[sizeof("option")]; 1010f66f451Sopenharmony_ci char kconf_id_strings_str17[sizeof("if")]; 1020f66f451Sopenharmony_ci char kconf_id_strings_str18[sizeof("optional")]; 1030f66f451Sopenharmony_ci char kconf_id_strings_str20[sizeof("endif")]; 1040f66f451Sopenharmony_ci char kconf_id_strings_str21[sizeof("choice")]; 1050f66f451Sopenharmony_ci char kconf_id_strings_str22[sizeof("endmenu")]; 1060f66f451Sopenharmony_ci char kconf_id_strings_str23[sizeof("requires")]; 1070f66f451Sopenharmony_ci char kconf_id_strings_str24[sizeof("endchoice")]; 1080f66f451Sopenharmony_ci char kconf_id_strings_str26[sizeof("config")]; 1090f66f451Sopenharmony_ci char kconf_id_strings_str27[sizeof("modules")]; 1100f66f451Sopenharmony_ci char kconf_id_strings_str28[sizeof("int")]; 1110f66f451Sopenharmony_ci char kconf_id_strings_str29[sizeof("menu")]; 1120f66f451Sopenharmony_ci char kconf_id_strings_str31[sizeof("prompt")]; 1130f66f451Sopenharmony_ci char kconf_id_strings_str32[sizeof("depends")]; 1140f66f451Sopenharmony_ci char kconf_id_strings_str33[sizeof("tristate")]; 1150f66f451Sopenharmony_ci char kconf_id_strings_str34[sizeof("bool")]; 1160f66f451Sopenharmony_ci char kconf_id_strings_str35[sizeof("menuconfig")]; 1170f66f451Sopenharmony_ci char kconf_id_strings_str36[sizeof("select")]; 1180f66f451Sopenharmony_ci char kconf_id_strings_str37[sizeof("boolean")]; 1190f66f451Sopenharmony_ci char kconf_id_strings_str39[sizeof("help")]; 1200f66f451Sopenharmony_ci char kconf_id_strings_str41[sizeof("source")]; 1210f66f451Sopenharmony_ci char kconf_id_strings_str42[sizeof("comment")]; 1220f66f451Sopenharmony_ci char kconf_id_strings_str43[sizeof("mainmenu")]; 1230f66f451Sopenharmony_ci char kconf_id_strings_str46[sizeof("enable")]; 1240f66f451Sopenharmony_ci }; 1250f66f451Sopenharmony_cistatic struct kconf_id_strings_t kconf_id_strings_contents = 1260f66f451Sopenharmony_ci { 1270f66f451Sopenharmony_ci "on", 1280f66f451Sopenharmony_ci "string", 1290f66f451Sopenharmony_ci "default", 1300f66f451Sopenharmony_ci "def_bool", 1310f66f451Sopenharmony_ci "range", 1320f66f451Sopenharmony_ci "def_boolean", 1330f66f451Sopenharmony_ci "def_tristate", 1340f66f451Sopenharmony_ci "hex", 1350f66f451Sopenharmony_ci "defconfig_list", 1360f66f451Sopenharmony_ci "option", 1370f66f451Sopenharmony_ci "if", 1380f66f451Sopenharmony_ci "optional", 1390f66f451Sopenharmony_ci "endif", 1400f66f451Sopenharmony_ci "choice", 1410f66f451Sopenharmony_ci "endmenu", 1420f66f451Sopenharmony_ci "requires", 1430f66f451Sopenharmony_ci "endchoice", 1440f66f451Sopenharmony_ci "config", 1450f66f451Sopenharmony_ci "modules", 1460f66f451Sopenharmony_ci "int", 1470f66f451Sopenharmony_ci "menu", 1480f66f451Sopenharmony_ci "prompt", 1490f66f451Sopenharmony_ci "depends", 1500f66f451Sopenharmony_ci "tristate", 1510f66f451Sopenharmony_ci "bool", 1520f66f451Sopenharmony_ci "menuconfig", 1530f66f451Sopenharmony_ci "select", 1540f66f451Sopenharmony_ci "boolean", 1550f66f451Sopenharmony_ci "help", 1560f66f451Sopenharmony_ci "source", 1570f66f451Sopenharmony_ci "comment", 1580f66f451Sopenharmony_ci "mainmenu", 1590f66f451Sopenharmony_ci "enable" 1600f66f451Sopenharmony_ci }; 1610f66f451Sopenharmony_ci#define kconf_id_strings ((const char *) &kconf_id_strings_contents) 1620f66f451Sopenharmony_cistruct kconf_id * 1630f66f451Sopenharmony_cikconf_id_lookup (register const char *str, register unsigned int len) 1640f66f451Sopenharmony_ci{ 1650f66f451Sopenharmony_ci enum 1660f66f451Sopenharmony_ci { 1670f66f451Sopenharmony_ci TOTAL_KEYWORDS = 33, 1680f66f451Sopenharmony_ci MIN_WORD_LENGTH = 2, 1690f66f451Sopenharmony_ci MAX_WORD_LENGTH = 14, 1700f66f451Sopenharmony_ci MIN_HASH_VALUE = 2, 1710f66f451Sopenharmony_ci MAX_HASH_VALUE = 46 1720f66f451Sopenharmony_ci }; 1730f66f451Sopenharmony_ci 1740f66f451Sopenharmony_ci static struct kconf_id wordlist[] = 1750f66f451Sopenharmony_ci { 1760f66f451Sopenharmony_ci {-1}, {-1}, 1770f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str2, T_ON, TF_PARAM}, 1780f66f451Sopenharmony_ci {-1}, {-1}, {-1}, 1790f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str6, T_TYPE, TF_COMMAND, S_STRING}, 1800f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str7, T_DEFAULT, TF_COMMAND, S_UNKNOWN}, 1810f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str8, T_DEFAULT, TF_COMMAND, S_BOOLEAN}, 1820f66f451Sopenharmony_ci {-1}, 1830f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str10, T_RANGE, TF_COMMAND}, 1840f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str11, T_DEFAULT, TF_COMMAND, S_BOOLEAN}, 1850f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str12, T_DEFAULT, TF_COMMAND, S_TRISTATE}, 1860f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str13, T_TYPE, TF_COMMAND, S_HEX}, 1870f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str14, T_OPT_DEFCONFIG_LIST,TF_OPTION}, 1880f66f451Sopenharmony_ci {-1}, 1890f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str16, T_OPTION, TF_COMMAND}, 1900f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str17, T_IF, TF_COMMAND|TF_PARAM}, 1910f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str18, T_OPTIONAL, TF_COMMAND}, 1920f66f451Sopenharmony_ci {-1}, 1930f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str20, T_ENDIF, TF_COMMAND}, 1940f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str21, T_CHOICE, TF_COMMAND}, 1950f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str22, T_ENDMENU, TF_COMMAND}, 1960f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str23, T_REQUIRES, TF_COMMAND}, 1970f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str24, T_ENDCHOICE, TF_COMMAND}, 1980f66f451Sopenharmony_ci {-1}, 1990f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str26, T_CONFIG, TF_COMMAND}, 2000f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str27, T_OPT_MODULES, TF_OPTION}, 2010f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str28, T_TYPE, TF_COMMAND, S_INT}, 2020f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str29, T_MENU, TF_COMMAND}, 2030f66f451Sopenharmony_ci {-1}, 2040f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str31, T_PROMPT, TF_COMMAND}, 2050f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str32, T_DEPENDS, TF_COMMAND}, 2060f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str33, T_TYPE, TF_COMMAND, S_TRISTATE}, 2070f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str34, T_TYPE, TF_COMMAND, S_BOOLEAN}, 2080f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str35, T_MENUCONFIG, TF_COMMAND}, 2090f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str36, T_SELECT, TF_COMMAND}, 2100f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str37, T_TYPE, TF_COMMAND, S_BOOLEAN}, 2110f66f451Sopenharmony_ci {-1}, 2120f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str39, T_HELP, TF_COMMAND}, 2130f66f451Sopenharmony_ci {-1}, 2140f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str41, T_SOURCE, TF_COMMAND}, 2150f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str42, T_COMMENT, TF_COMMAND}, 2160f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str43, T_MAINMENU, TF_COMMAND}, 2170f66f451Sopenharmony_ci {-1}, {-1}, 2180f66f451Sopenharmony_ci {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str46, T_SELECT, TF_COMMAND} 2190f66f451Sopenharmony_ci }; 2200f66f451Sopenharmony_ci 2210f66f451Sopenharmony_ci if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) 2220f66f451Sopenharmony_ci { 2230f66f451Sopenharmony_ci register int key = kconf_id_hash (str, len); 2240f66f451Sopenharmony_ci 2250f66f451Sopenharmony_ci if (key <= MAX_HASH_VALUE && key >= 0) 2260f66f451Sopenharmony_ci { 2270f66f451Sopenharmony_ci register int o = wordlist[key].name; 2280f66f451Sopenharmony_ci if (o >= 0) 2290f66f451Sopenharmony_ci { 2300f66f451Sopenharmony_ci register const char *s = o + kconf_id_strings; 2310f66f451Sopenharmony_ci 2320f66f451Sopenharmony_ci if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') 2330f66f451Sopenharmony_ci return &wordlist[key]; 2340f66f451Sopenharmony_ci } 2350f66f451Sopenharmony_ci } 2360f66f451Sopenharmony_ci } 2370f66f451Sopenharmony_ci return 0; 2380f66f451Sopenharmony_ci} 2390f66f451Sopenharmony_ci 240