1.1 --- a/kconfig/zconf.hash.c Sat Jan 14 18:22:06 2012 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,245 +0,0 @@
1.4 -/* ANSI-C code produced by gperf version 3.0.3 */
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 -
1.37 -static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
1.38 -/* maximum key range = 50, duplicates = 0 */
1.39 -
1.40 -#ifdef __GNUC__
1.41 -__inline
1.42 -#else
1.43 -#ifdef __cplusplus
1.44 -inline
1.45 -#endif
1.46 -#endif
1.47 -static unsigned int
1.48 -kconf_id_hash (register const char *str, register unsigned int len)
1.49 -{
1.50 - static unsigned char asso_values[] =
1.51 - {
1.52 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.53 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.54 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.55 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.56 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.57 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.58 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.59 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.60 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.61 - 52, 52, 52, 52, 52, 52, 52, 52, 40, 5,
1.62 - 0, 0, 5, 52, 0, 20, 52, 52, 10, 20,
1.63 - 5, 0, 35, 52, 0, 30, 0, 15, 0, 52,
1.64 - 15, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.65 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.66 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.67 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.68 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.69 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.70 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.71 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.72 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.73 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.74 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.75 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.76 - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
1.77 - 52, 52, 52, 52, 52, 52
1.78 - };
1.79 - register int hval = len;
1.80 -
1.81 - switch (hval)
1.82 - {
1.83 - default:
1.84 - hval += asso_values[(unsigned char)str[2]];
1.85 - /*FALLTHROUGH*/
1.86 - case 2:
1.87 - case 1:
1.88 - hval += asso_values[(unsigned char)str[0]];
1.89 - break;
1.90 - }
1.91 - return hval;
1.92 -}
1.93 -
1.94 -struct kconf_id_strings_t
1.95 - {
1.96 - char kconf_id_strings_str2[sizeof("on")];
1.97 - char kconf_id_strings_str3[sizeof("env")];
1.98 - char kconf_id_strings_str5[sizeof("endif")];
1.99 - char kconf_id_strings_str6[sizeof("option")];
1.100 - char kconf_id_strings_str7[sizeof("endmenu")];
1.101 - char kconf_id_strings_str8[sizeof("optional")];
1.102 - char kconf_id_strings_str9[sizeof("endchoice")];
1.103 - char kconf_id_strings_str10[sizeof("range")];
1.104 - char kconf_id_strings_str11[sizeof("choice")];
1.105 - char kconf_id_strings_str12[sizeof("default")];
1.106 - char kconf_id_strings_str13[sizeof("def_bool")];
1.107 - char kconf_id_strings_str14[sizeof("help")];
1.108 - char kconf_id_strings_str16[sizeof("config")];
1.109 - char kconf_id_strings_str17[sizeof("def_tristate")];
1.110 - char kconf_id_strings_str18[sizeof("hex")];
1.111 - char kconf_id_strings_str19[sizeof("defconfig_list")];
1.112 - char kconf_id_strings_str22[sizeof("if")];
1.113 - char kconf_id_strings_str23[sizeof("int")];
1.114 - char kconf_id_strings_str27[sizeof("modules")];
1.115 - char kconf_id_strings_str28[sizeof("tristate")];
1.116 - char kconf_id_strings_str29[sizeof("menu")];
1.117 - char kconf_id_strings_str32[sizeof("comment")];
1.118 - char kconf_id_strings_str35[sizeof("menuconfig")];
1.119 - char kconf_id_strings_str36[sizeof("string")];
1.120 - char kconf_id_strings_str37[sizeof("visible")];
1.121 - char kconf_id_strings_str41[sizeof("prompt")];
1.122 - char kconf_id_strings_str42[sizeof("depends")];
1.123 - char kconf_id_strings_str44[sizeof("bool")];
1.124 - char kconf_id_strings_str46[sizeof("select")];
1.125 - char kconf_id_strings_str47[sizeof("boolean")];
1.126 - char kconf_id_strings_str48[sizeof("mainmenu")];
1.127 - char kconf_id_strings_str51[sizeof("source")];
1.128 - };
1.129 -static struct kconf_id_strings_t kconf_id_strings_contents =
1.130 - {
1.131 - "on",
1.132 - "env",
1.133 - "endif",
1.134 - "option",
1.135 - "endmenu",
1.136 - "optional",
1.137 - "endchoice",
1.138 - "range",
1.139 - "choice",
1.140 - "default",
1.141 - "def_bool",
1.142 - "help",
1.143 - "config",
1.144 - "def_tristate",
1.145 - "hex",
1.146 - "defconfig_list",
1.147 - "if",
1.148 - "int",
1.149 - "modules",
1.150 - "tristate",
1.151 - "menu",
1.152 - "comment",
1.153 - "menuconfig",
1.154 - "string",
1.155 - "visible",
1.156 - "prompt",
1.157 - "depends",
1.158 - "bool",
1.159 - "select",
1.160 - "boolean",
1.161 - "mainmenu",
1.162 - "source"
1.163 - };
1.164 -#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
1.165 -#ifdef __GNUC__
1.166 -__inline
1.167 -#ifdef __GNUC_STDC_INLINE__
1.168 -__attribute__ ((__gnu_inline__))
1.169 -#endif
1.170 -#endif
1.171 -struct kconf_id *
1.172 -kconf_id_lookup (register const char *str, register unsigned int len)
1.173 -{
1.174 - enum
1.175 - {
1.176 - TOTAL_KEYWORDS = 32,
1.177 - MIN_WORD_LENGTH = 2,
1.178 - MAX_WORD_LENGTH = 14,
1.179 - MIN_HASH_VALUE = 2,
1.180 - MAX_HASH_VALUE = 51
1.181 - };
1.182 -
1.183 - static struct kconf_id wordlist[] =
1.184 - {
1.185 - {-1}, {-1},
1.186 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str2, T_ON, TF_PARAM},
1.187 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str3, T_OPT_ENV, TF_OPTION},
1.188 - {-1},
1.189 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str5, T_ENDIF, TF_COMMAND},
1.190 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str6, T_OPTION, TF_COMMAND},
1.191 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str7, T_ENDMENU, TF_COMMAND},
1.192 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str8, T_OPTIONAL, TF_COMMAND},
1.193 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str9, T_ENDCHOICE, TF_COMMAND},
1.194 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str10, T_RANGE, TF_COMMAND},
1.195 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str11, T_CHOICE, TF_COMMAND},
1.196 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str12, T_DEFAULT, TF_COMMAND, S_UNKNOWN},
1.197 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str13, T_DEFAULT, TF_COMMAND, S_BOOLEAN},
1.198 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str14, T_HELP, TF_COMMAND},
1.199 - {-1},
1.200 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str16, T_CONFIG, TF_COMMAND},
1.201 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str17, T_DEFAULT, TF_COMMAND, S_TRISTATE},
1.202 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str18, T_TYPE, TF_COMMAND, S_HEX},
1.203 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str19, T_OPT_DEFCONFIG_LIST,TF_OPTION},
1.204 - {-1}, {-1},
1.205 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str22, T_IF, TF_COMMAND|TF_PARAM},
1.206 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str23, T_TYPE, TF_COMMAND, S_INT},
1.207 - {-1}, {-1}, {-1},
1.208 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str27, T_OPT_MODULES, TF_OPTION},
1.209 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str28, T_TYPE, TF_COMMAND, S_TRISTATE},
1.210 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str29, T_MENU, TF_COMMAND},
1.211 - {-1}, {-1},
1.212 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str32, T_COMMENT, TF_COMMAND},
1.213 - {-1}, {-1},
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_TYPE, TF_COMMAND, S_STRING},
1.216 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str37, T_VISIBLE, TF_COMMAND},
1.217 - {-1}, {-1}, {-1},
1.218 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str41, T_PROMPT, TF_COMMAND},
1.219 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str42, T_DEPENDS, TF_COMMAND},
1.220 - {-1},
1.221 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str44, T_TYPE, TF_COMMAND, S_BOOLEAN},
1.222 - {-1},
1.223 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str46, T_SELECT, TF_COMMAND},
1.224 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str47, T_TYPE, TF_COMMAND, S_BOOLEAN},
1.225 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str48, T_MAINMENU, TF_COMMAND},
1.226 - {-1}, {-1},
1.227 - {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str51, T_SOURCE, TF_COMMAND}
1.228 - };
1.229 -
1.230 - if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
1.231 - {
1.232 - register int key = kconf_id_hash (str, len);
1.233 -
1.234 - if (key <= MAX_HASH_VALUE && key >= 0)
1.235 - {
1.236 - register int o = wordlist[key].name;
1.237 - if (o >= 0)
1.238 - {
1.239 - register const char *s = o + kconf_id_strings;
1.240 -
1.241 - if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
1.242 - return &wordlist[key];
1.243 - }
1.244 - }
1.245 - }
1.246 - return 0;
1.247 -}
1.248 -