Blame view

scripts/kconfig/zconf.hash.c_shipped 11.8 KB
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
1
2
  /* ANSI-C code produced by gperf version 3.0.4 */
  /* Command-line: gperf -t --output-file scripts/kconfig/zconf.hash.c_shipped -a -C -E -g -k '1,3,$' -p -t scripts/kconfig/zconf.gperf  */
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  
  #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
        && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
        && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
        && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
        && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
        && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
        && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
        && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
        && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
        && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
        && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
        && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
        && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
        && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
        && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
        && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
        && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
        && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
        && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
        && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
        && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
        && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
        && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
  /* The character set is not based on ISO-646.  */
  #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
  #endif
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
30
  #line 10 "scripts/kconfig/zconf.gperf"
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
31
  struct kconf_id;
651665718   Josh Triplett   kconfig: Mark var...
32

2f76b358f   Arnaud Lacombe   kconfig: regen pa...
33
34
  static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
  /* maximum key range = 71, duplicates = 0 */
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
35
36
37
38
39
40
41
42
43
44
45
  
  #ifdef __GNUC__
  __inline
  #else
  #ifdef __cplusplus
  inline
  #endif
  #endif
  static unsigned int
  kconf_id_hash (register const char *str, register unsigned int len)
  {
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
46
    static const unsigned char asso_values[] =
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
47
      {
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 25, 25,
         0,  0,  0,  5,  0,  0, 73, 73,  5,  0,
        10,  5, 45, 73, 20, 20,  0, 15, 15, 73,
        20, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
        73, 73, 73, 73, 73, 73
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
74
75
76
77
78
79
80
81
82
83
84
85
86
      };
    register int hval = len;
  
    switch (hval)
      {
        default:
          hval += asso_values[(unsigned char)str[2]];
        /*FALLTHROUGH*/
        case 2:
        case 1:
          hval += asso_values[(unsigned char)str[0]];
          break;
      }
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
87
    return hval + asso_values[(unsigned char)str[len - 1]];
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
88
89
90
91
  }
  
  struct kconf_id_strings_t
    {
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
92
93
      char kconf_id_strings_str2[sizeof("if")];
      char kconf_id_strings_str3[sizeof("int")];
14f31562d   Sam Ravnborg   kbuild: update _s...
94
      char kconf_id_strings_str5[sizeof("endif")];
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
95
96
      char kconf_id_strings_str7[sizeof("default")];
      char kconf_id_strings_str8[sizeof("tristate")];
14f31562d   Sam Ravnborg   kbuild: update _s...
97
      char kconf_id_strings_str9[sizeof("endchoice")];
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
98
      char kconf_id_strings_str12[sizeof("def_tristate")];
14f31562d   Sam Ravnborg   kbuild: update _s...
99
      char kconf_id_strings_str13[sizeof("def_bool")];
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
100
101
102
103
104
105
106
      char kconf_id_strings_str14[sizeof("defconfig_list")];
      char kconf_id_strings_str17[sizeof("on")];
      char kconf_id_strings_str18[sizeof("optional")];
      char kconf_id_strings_str21[sizeof("option")];
      char kconf_id_strings_str22[sizeof("endmenu")];
      char kconf_id_strings_str23[sizeof("mainmenu")];
      char kconf_id_strings_str25[sizeof("menuconfig")];
f6a88aa86   Roman Zippel   kconfig: add symb...
107
      char kconf_id_strings_str27[sizeof("modules")];
f6a88aa86   Roman Zippel   kconfig: add symb...
108
      char kconf_id_strings_str29[sizeof("menu")];
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
109
      char kconf_id_strings_str31[sizeof("select")];
14f31562d   Sam Ravnborg   kbuild: update _s...
110
      char kconf_id_strings_str32[sizeof("comment")];
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
111
112
113
114
115
116
117
118
      char kconf_id_strings_str33[sizeof("env")];
      char kconf_id_strings_str35[sizeof("range")];
      char kconf_id_strings_str36[sizeof("choice")];
      char kconf_id_strings_str39[sizeof("bool")];
      char kconf_id_strings_str41[sizeof("source")];
      char kconf_id_strings_str42[sizeof("visible")];
      char kconf_id_strings_str43[sizeof("hex")];
      char kconf_id_strings_str46[sizeof("config")];
09899c93b   Arnaud Lacombe   kconfig: regen pa...
119
      char kconf_id_strings_str47[sizeof("boolean")];
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
120
121
122
123
      char kconf_id_strings_str51[sizeof("string")];
      char kconf_id_strings_str54[sizeof("help")];
      char kconf_id_strings_str56[sizeof("prompt")];
      char kconf_id_strings_str72[sizeof("depends")];
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
124
    };
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
125
  static const struct kconf_id_strings_t kconf_id_strings_contents =
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
126
    {
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
127
128
      "if",
      "int",
14f31562d   Sam Ravnborg   kbuild: update _s...
129
      "endif",
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
130
      "default",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
131
132
      "tristate",
      "endchoice",
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
133
      "def_tristate",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
134
      "def_bool",
f6a88aa86   Roman Zippel   kconfig: add symb...
135
      "defconfig_list",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
136
137
138
139
140
141
      "on",
      "optional",
      "option",
      "endmenu",
      "mainmenu",
      "menuconfig",
14f31562d   Sam Ravnborg   kbuild: update _s...
142
      "modules",
14f31562d   Sam Ravnborg   kbuild: update _s...
143
      "menu",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
144
      "select",
f6a88aa86   Roman Zippel   kconfig: add symb...
145
      "comment",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
146
147
148
      "env",
      "range",
      "choice",
09899c93b   Arnaud Lacombe   kconfig: regen pa...
149
      "bool",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
150
151
152
153
      "source",
      "visible",
      "hex",
      "config",
09899c93b   Arnaud Lacombe   kconfig: regen pa...
154
      "boolean",
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
155
156
157
158
      "string",
      "help",
      "prompt",
      "depends"
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
159
160
161
162
    };
  #define kconf_id_strings ((const char *) &kconf_id_strings_contents)
  #ifdef __GNUC__
  __inline
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
163
  #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
9649ef878   Adrian Bunk   kconfig: remove "...
164
165
  __attribute__ ((__gnu_inline__))
  #endif
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
166
  #endif
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
167
  const struct kconf_id *
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
168
169
170
171
  kconf_id_lookup (register const char *str, register unsigned int len)
  {
    enum
      {
09899c93b   Arnaud Lacombe   kconfig: regen pa...
172
        TOTAL_KEYWORDS = 32,
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
173
        MIN_WORD_LENGTH = 2,
f6a88aa86   Roman Zippel   kconfig: add symb...
174
        MAX_WORD_LENGTH = 14,
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
175
        MIN_HASH_VALUE = 2,
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
176
        MAX_HASH_VALUE = 72
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
177
      };
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
178
    static const struct kconf_id wordlist[] =
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
179
180
      {
        {-1}, {-1},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
181
182
183
184
  #line 25 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str2,		T_IF,		TF_COMMAND|TF_PARAM},
  #line 36 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str3,		T_TYPE,		TF_COMMAND, S_INT},
93449082e   Roman Zippel   kconfig: environm...
185
        {-1},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
186
  #line 26 "scripts/kconfig/zconf.gperf"
14f31562d   Sam Ravnborg   kbuild: update _s...
187
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str5,		T_ENDIF,	TF_COMMAND},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
188
189
190
191
192
193
        {-1},
  #line 29 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str7,	T_DEFAULT,	TF_COMMAND, S_UNKNOWN},
  #line 31 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str8,	T_TYPE,		TF_COMMAND, S_TRISTATE},
  #line 20 "scripts/kconfig/zconf.gperf"
14f31562d   Sam Ravnborg   kbuild: update _s...
194
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str9,	T_ENDCHOICE,	TF_COMMAND},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
195
196
197
198
        {-1}, {-1},
  #line 32 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str12,	T_DEFAULT,	TF_COMMAND, S_TRISTATE},
  #line 35 "scripts/kconfig/zconf.gperf"
14f31562d   Sam Ravnborg   kbuild: update _s...
199
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str13,	T_DEFAULT,	TF_COMMAND, S_BOOLEAN},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
200
201
  #line 45 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str14,	T_OPT_DEFCONFIG_LIST,TF_OPTION},
09899c93b   Arnaud Lacombe   kconfig: regen pa...
202
        {-1}, {-1},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
  #line 43 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str17,		T_ON,		TF_PARAM},
  #line 28 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str18,	T_OPTIONAL,	TF_COMMAND},
        {-1}, {-1},
  #line 42 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str21,		T_OPTION,	TF_COMMAND},
  #line 17 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str22,	T_ENDMENU,	TF_COMMAND},
  #line 15 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str23,	T_MAINMENU,	TF_COMMAND},
        {-1},
  #line 23 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str25,	T_MENUCONFIG,	TF_COMMAND},
        {-1},
  #line 44 "scripts/kconfig/zconf.gperf"
f6a88aa86   Roman Zippel   kconfig: add symb...
219
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str27,	T_OPT_MODULES,	TF_OPTION},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
220
221
        {-1},
  #line 16 "scripts/kconfig/zconf.gperf"
f6a88aa86   Roman Zippel   kconfig: add symb...
222
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str29,		T_MENU,		TF_COMMAND},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
223
224
225
226
        {-1},
  #line 39 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str31,		T_SELECT,	TF_COMMAND},
  #line 21 "scripts/kconfig/zconf.gperf"
14f31562d   Sam Ravnborg   kbuild: update _s...
227
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str32,	T_COMMENT,	TF_COMMAND},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
228
229
  #line 46 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str33,		T_OPT_ENV,	TF_OPTION},
f6a88aa86   Roman Zippel   kconfig: add symb...
230
        {-1},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
231
232
233
234
235
236
237
  #line 40 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str35,		T_RANGE,	TF_COMMAND},
  #line 19 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str36,		T_CHOICE,	TF_COMMAND},
        {-1}, {-1},
  #line 33 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str39,		T_TYPE,		TF_COMMAND, S_BOOLEAN},
09899c93b   Arnaud Lacombe   kconfig: regen pa...
238
        {-1},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
239
240
241
242
243
244
245
246
247
248
  #line 18 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str41,		T_SOURCE,	TF_COMMAND},
  #line 41 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str42,	T_VISIBLE,	TF_COMMAND},
  #line 37 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str43,		T_TYPE,		TF_COMMAND, S_HEX},
        {-1}, {-1},
  #line 22 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str46,		T_CONFIG,	TF_COMMAND},
  #line 34 "scripts/kconfig/zconf.gperf"
09899c93b   Arnaud Lacombe   kconfig: regen pa...
249
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str47,	T_TYPE,		TF_COMMAND, S_BOOLEAN},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
250
251
252
        {-1}, {-1}, {-1},
  #line 38 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str51,		T_TYPE,		TF_COMMAND, S_STRING},
09899c93b   Arnaud Lacombe   kconfig: regen pa...
253
        {-1}, {-1},
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
254
255
256
257
258
259
260
261
262
  #line 24 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str54,		T_HELP,		TF_COMMAND},
        {-1},
  #line 30 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str56,		T_PROMPT,	TF_COMMAND},
        {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
        {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
  #line 27 "scripts/kconfig/zconf.gperf"
        {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str72,	T_DEPENDS,	TF_COMMAND}
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
      };
  
    if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
      {
        register int key = kconf_id_hash (str, len);
  
        if (key <= MAX_HASH_VALUE && key >= 0)
          {
            register int o = wordlist[key].name;
            if (o >= 0)
              {
                register const char *s = o + kconf_id_strings;
  
                if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
                  return &wordlist[key];
              }
          }
      }
    return 0;
  }
2f76b358f   Arnaud Lacombe   kconfig: regen pa...
283
  #line 47 "scripts/kconfig/zconf.gperf"
7a88488bb   Roman Zippel   [PATCH] kconfig: ...
284