1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/kconfig/zconf.hash.c_shipped Wed Aug 15 21:24:02 2007 +0000
1.3 @@ -0,0 +1,242 @@
1.4 +/* ANSI-C code produced by gperf version 3.0.1 */
1.5 +/* Command-line: gperf */
1.6 +/* Computed positions: -k'1,3' */
1.7 +
1.8 +#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
1.9 + && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
1.10 + && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
1.11 + && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
1.12 + && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
1.13 + && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
1.14 + && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
1.15 + && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
1.16 + && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
1.17 + && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
1.18 + && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
1.19 + && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
1.20 + && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
1.21 + && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
1.22 + && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
1.23 + && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
1.24 + && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
1.25 + && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
1.26 + && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
1.27 + && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
1.28 + && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
1.29 + && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
1.30 + && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
1.31 +/* The character set is not based on ISO-646. */
1.32 +#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
1.33 +#endif
1.34 +
1.35 +struct kconf_id;
1.36 +/* maximum key range = 45, duplicates = 0 */
1.37 +
1.38 +#ifdef __GNUC__
1.39 +__inline
1.40 +#else
1.41 +#ifdef __cplusplus
1.42 +inline
1.43 +#endif
1.44 +#endif
1.45 +static unsigned int
1.46 +kconf_id_hash (register const char *str, register unsigned int len)
1.47 +{
1.48 + static unsigned char asso_values[] =
1.49 + {
1.50 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.51 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.52 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.53 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.54 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.55 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.56 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.57 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.58 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.59 + 47, 47, 47, 47, 47, 47, 47, 25, 30, 15,
1.60 + 0, 15, 0, 47, 5, 15, 47, 47, 30, 20,
1.61 + 5, 0, 25, 15, 0, 0, 10, 35, 47, 47,
1.62 + 5, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.63 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.64 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.65 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.66 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.67 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.68 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.69 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.70 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.71 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.72 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.73 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.74 + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
1.75 + 47, 47, 47, 47, 47, 47
1.76 + };
1.77 + register int hval = len;
1.78 +
1.79 + switch (hval)
1.80 + {
1.81 + default:
1.82 + hval += asso_values[(unsigned char)str[2]];
1.83 + /*FALLTHROUGH*/
1.84 + case 2:
1.85 + case 1:
1.86 + hval += asso_values[(unsigned char)str[0]];
1.87 + break;
1.88 + }
1.89 + return hval;
1.90 +}
1.91 +
1.92 +struct kconf_id_strings_t
1.93 + {
1.94 + char kconf_id_strings_str2[sizeof("on")];
1.95 + char kconf_id_strings_str6[sizeof("string")];
1.96 + char kconf_id_strings_str7[sizeof("default")];
1.97 + char kconf_id_strings_str8[sizeof("def_bool")];
1.98 + char kconf_id_strings_str10[sizeof("range")];
1.99 + char kconf_id_strings_str11[sizeof("def_boolean")];
1.100 + char kconf_id_strings_str12[sizeof("def_tristate")];
1.101 + char kconf_id_strings_str13[sizeof("hex")];
1.102 + char kconf_id_strings_str14[sizeof("defconfig_list")];
1.103 + char kconf_id_strings_str16[sizeof("option")];
1.104 + char kconf_id_strings_str17[sizeof("if")];
1.105 + char kconf_id_strings_str18[sizeof("optional")];
1.106 + char kconf_id_strings_str20[sizeof("endif")];
1.107 + char kconf_id_strings_str21[sizeof("choice")];
1.108 + char kconf_id_strings_str22[sizeof("endmenu")];
1.109 + char kconf_id_strings_str23[sizeof("requires")];
1.110 + char kconf_id_strings_str24[sizeof("endchoice")];
1.111 + char kconf_id_strings_str26[sizeof("config")];
1.112 + char kconf_id_strings_str27[sizeof("modules")];
1.113 + char kconf_id_strings_str28[sizeof("int")];
1.114 + char kconf_id_strings_str29[sizeof("menu")];
1.115 + char kconf_id_strings_str31[sizeof("prompt")];
1.116 + char kconf_id_strings_str32[sizeof("depends")];
1.117 + char kconf_id_strings_str33[sizeof("tristate")];
1.118 + char kconf_id_strings_str34[sizeof("bool")];
1.119 + char kconf_id_strings_str35[sizeof("menuconfig")];
1.120 + char kconf_id_strings_str36[sizeof("select")];
1.121 + char kconf_id_strings_str37[sizeof("boolean")];
1.122 + char kconf_id_strings_str39[sizeof("help")];
1.123 + char kconf_id_strings_str41[sizeof("source")];
1.124 + char kconf_id_strings_str42[sizeof("comment")];
1.125 + char kconf_id_strings_str43[sizeof("mainmenu")];
1.126 + char kconf_id_strings_str46[sizeof("enable")];
1.127 + };
1.128 +static struct kconf_id_strings_t kconf_id_strings_contents =
1.129 + {
1.130 + "on",
1.131 + "string",
1.132 + "default",
1.133 + "def_bool",
1.134 + "range",
1.135 + "def_boolean",
1.136 + "def_tristate",
1.137 + "hex",
1.138 + "defconfig_list",
1.139 + "option",
1.140 + "if",
1.141 + "optional",
1.142 + "endif",
1.143 + "choice",
1.144 + "endmenu",
1.145 + "requires",
1.146 + "endchoice",
1.147 + "config",
1.148 + "modules",
1.149 + "int",
1.150 + "menu",
1.151 + "prompt",
1.152 + "depends",
1.153 + "tristate",
1.154 + "bool",
1.155 + "menuconfig",
1.156 + "select",
1.157 + "boolean",
1.158 + "help",
1.159 + "source",
1.160 + "comment",
1.161 + "mainmenu",
1.162 + "enable"
1.163 + };
1.164 +#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
1.165 +#ifdef __GNUC__
1.166 +__inline
1.167 +#endif
1.168 +struct kconf_id *
1.169 +kconf_id_lookup (register const char *str, register unsigned int len)
1.170 +{
1.171 + enum
1.172 + {
1.173 + TOTAL_KEYWORDS = 33,
1.174 + MIN_WORD_LENGTH = 2,
1.175 + MAX_WORD_LENGTH = 14,
1.176 + MIN_HASH_VALUE = 2,
1.177 + MAX_HASH_VALUE = 46
1.178 + };
1.179 +
1.180 + static struct kconf_id wordlist[] =
1.181 + {
1.182 + {-1}, {-1},
1.183 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str2, T_ON, TF_PARAM},
1.184 + {-1}, {-1}, {-1},
1.185 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str6, T_TYPE, TF_COMMAND, S_STRING},
1.186 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str7, T_DEFAULT, TF_COMMAND, S_UNKNOWN},
1.187 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str8, T_DEFAULT, TF_COMMAND, S_BOOLEAN},
1.188 + {-1},
1.189 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str10, T_RANGE, TF_COMMAND},
1.190 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str11, T_DEFAULT, TF_COMMAND, S_BOOLEAN},
1.191 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str12, T_DEFAULT, TF_COMMAND, S_TRISTATE},
1.192 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str13, T_TYPE, TF_COMMAND, S_HEX},
1.193 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str14, T_OPT_DEFCONFIG_LIST,TF_OPTION},
1.194 + {-1},
1.195 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str16, T_OPTION, TF_COMMAND},
1.196 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str17, T_IF, TF_COMMAND|TF_PARAM},
1.197 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str18, T_OPTIONAL, TF_COMMAND},
1.198 + {-1},
1.199 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str20, T_ENDIF, TF_COMMAND},
1.200 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str21, T_CHOICE, TF_COMMAND},
1.201 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str22, T_ENDMENU, TF_COMMAND},
1.202 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str23, T_REQUIRES, TF_COMMAND},
1.203 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str24, T_ENDCHOICE, TF_COMMAND},
1.204 + {-1},
1.205 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str26, T_CONFIG, TF_COMMAND},
1.206 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str27, T_OPT_MODULES, TF_OPTION},
1.207 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str28, T_TYPE, TF_COMMAND, S_INT},
1.208 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str29, T_MENU, TF_COMMAND},
1.209 + {-1},
1.210 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str31, T_PROMPT, TF_COMMAND},
1.211 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str32, T_DEPENDS, TF_COMMAND},
1.212 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str33, T_TYPE, TF_COMMAND, S_TRISTATE},
1.213 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str34, T_TYPE, TF_COMMAND, S_BOOLEAN},
1.214 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str35, T_MENUCONFIG, TF_COMMAND},
1.215 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str36, T_SELECT, TF_COMMAND},
1.216 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str37, T_TYPE, TF_COMMAND, S_BOOLEAN},
1.217 + {-1},
1.218 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str39, T_HELP, TF_COMMAND},
1.219 + {-1},
1.220 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str41, T_SOURCE, TF_COMMAND},
1.221 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str42, T_COMMENT, TF_COMMAND},
1.222 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str43, T_MAINMENU, TF_COMMAND},
1.223 + {-1}, {-1},
1.224 + {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str46, T_SELECT, TF_COMMAND}
1.225 + };
1.226 +
1.227 + if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
1.228 + {
1.229 + register int key = kconf_id_hash (str, len);
1.230 +
1.231 + if (key <= MAX_HASH_VALUE && key >= 0)
1.232 + {
1.233 + register int o = wordlist[key].name;
1.234 + if (o >= 0)
1.235 + {
1.236 + register const char *s = o + kconf_id_strings;
1.237 +
1.238 + if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
1.239 + return &wordlist[key];
1.240 + }
1.241 + }
1.242 + }
1.243 + return 0;
1.244 +}
1.245 +