1 /* ANSI-C code produced by gperf version 3.0.4 */
2 /* Command-line: gperf confitems.gperf */
3 /* Computed positions: -k'1-2' */
5 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
6 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
7 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
8 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
9 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
10 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
11 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
12 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
13 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
14 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
15 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
16 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
17 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
18 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
19 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
20 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
21 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
22 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
23 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
24 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
25 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
26 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
27 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
28 /* The character set is not based on ISO-646. */
29 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
32 #line 8 "confitems.gperf"
34 /* maximum key range = 45, duplicates = 0 */
44 confitems_hash (register const char *str, register unsigned int len)
46 static const unsigned char asso_values[] =
48 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
49 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
50 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
51 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
52 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
53 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
54 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
55 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
56 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
57 50, 50, 50, 50, 50, 50, 50, 20, 5, 0,
58 10, 0, 50, 50, 15, 5, 50, 50, 20, 10,
59 0, 0, 10, 50, 0, 0, 0, 5, 50, 50,
60 30, 50, 50, 50, 50, 50, 50, 50, 50, 50,
61 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
62 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
63 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
64 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
65 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
66 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
67 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
68 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
69 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
70 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
71 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
72 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
73 50, 50, 50, 50, 50, 50
75 return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]];
81 #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
82 __attribute__ ((__gnu_inline__))
85 const struct conf_item *
86 confitems_get (register const char *str, register unsigned int len)
97 static const struct conf_item wordlist[] =
99 {"",0,NULL,0,NULL}, {"",0,NULL,0,NULL},
100 {"",0,NULL,0,NULL}, {"",0,NULL,0,NULL},
102 #line 33 "confitems.gperf"
103 {"stats", 23, ITEM(stats, bool)},
105 #line 30 "confitems.gperf"
106 {"recache", 20, ITEM(recache, bool)},
107 #line 13 "confitems.gperf"
108 {"compiler", 3, ITEM(compiler, string)},
109 #line 28 "confitems.gperf"
110 {"read_only", 18, ITEM(read_only, bool)},
111 #line 36 "confitems.gperf"
112 {"unify", 26, ITEM(unify, bool)},
113 #line 15 "confitems.gperf"
114 {"compression", 5, ITEM(compression, bool)},
116 #line 34 "confitems.gperf"
117 {"temporary_dir", 24, ITEM(temporary_dir, env_string)},
118 #line 14 "confitems.gperf"
119 {"compiler_check", 4, ITEM(compiler_check, string)},
121 #line 29 "confitems.gperf"
122 {"read_only_direct", 19, ITEM(read_only_direct, bool)},
123 #line 16 "confitems.gperf"
124 {"compression_level", 6, ITEM(compression_level, unsigned)},
126 #line 31 "confitems.gperf"
127 {"run_second_cpp", 21, ITEM(run_second_cpp, bool)},
128 #line 35 "confitems.gperf"
129 {"umask", 25, ITEM(umask, umask)},
131 #line 19 "confitems.gperf"
132 {"disable", 9, ITEM(disable, bool)},
133 #line 17 "confitems.gperf"
134 {"cpp_extension", 7, ITEM(cpp_extension, string)},
135 #line 27 "confitems.gperf"
136 {"prefix_command", 17, ITEM(prefix_command, env_string)},
138 #line 18 "confitems.gperf"
139 {"direct_mode", 8, ITEM(direct_mode, bool)},
141 #line 23 "confitems.gperf"
142 {"log_file", 13, ITEM(log_file, env_string)},
143 #line 11 "confitems.gperf"
144 {"cache_dir", 1, ITEM(cache_dir, env_string)},
145 #line 32 "confitems.gperf"
146 {"sloppiness", 22, ITEM(sloppiness, sloppiness)},
147 {"",0,NULL,0,NULL}, {"",0,NULL,0,NULL},
148 #line 10 "confitems.gperf"
149 {"base_dir", 0, ITEM_V(base_dir, env_string, absolute_path)},
150 #line 26 "confitems.gperf"
151 {"path", 16, ITEM(path, env_string)},
153 #line 12 "confitems.gperf"
154 {"cache_dir_levels", 2, ITEM_V(cache_dir_levels, unsigned, dir_levels)},
156 #line 25 "confitems.gperf"
157 {"max_size", 15, ITEM(max_size, size)},
158 #line 24 "confitems.gperf"
159 {"max_files", 14, ITEM(max_files, unsigned)},
160 {"",0,NULL,0,NULL}, {"",0,NULL,0,NULL},
162 #line 22 "confitems.gperf"
163 {"hash_dir", 12, ITEM(hash_dir, bool)},
164 #line 21 "confitems.gperf"
165 {"hard_link", 11, ITEM(hard_link, bool)},
166 {"",0,NULL,0,NULL}, {"",0,NULL,0,NULL},
167 {"",0,NULL,0,NULL}, {"",0,NULL,0,NULL},
168 #line 20 "confitems.gperf"
169 {"extra_files_to_hash", 10, ITEM(extra_files_to_hash, env_string)}
172 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
174 register int key = confitems_hash (str, len);
176 if (key <= MAX_HASH_VALUE && key >= 0)
178 register const char *s = wordlist[key].name;
180 if (*str == *s && !strcmp (str + 1, s + 1))
181 return &wordlist[key];
186 static const size_t CONFITEMS_TOTAL_KEYWORDS = 27;