1 /* ANSI-C code produced by gperf version 3.1 */
2 /* Command-line: gperf src/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-gperf@gnu.org>."
32 #line 8 "src/confitems.gperf"
34 #include "confitems.h"
38 #define ITEM_ENTRY(name, type, verify_fn) \
39 offsetof(struct conf, name), confitem_parse_ ## type, \
40 confitem_format_ ## type, verify_fn
41 #define ITEM(name, type) \
42 ITEM_ENTRY(name, type, NULL)
43 #define ITEM_V(name, type, verification) \
44 ITEM_ENTRY(name, type, confitem_verify_ ## verification)
45 #line 21 "src/confitems.gperf"
47 /* maximum key range = 48, duplicates = 0 */
57 confitems_hash (register const char *str, register size_t len)
59 static const unsigned char asso_values[] =
61 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
62 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
63 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
64 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
65 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
66 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
67 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
68 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
69 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
70 52, 52, 52, 52, 52, 52, 52, 0, 35, 0,
71 0, 10, 52, 0, 30, 25, 52, 0, 10, 20,
72 10, 0, 0, 52, 5, 5, 10, 15, 52, 52,
73 15, 52, 52, 52, 52, 52, 52, 52, 52, 52,
74 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
75 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
76 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
77 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
78 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
79 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
80 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
81 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
82 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
83 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
84 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
85 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
86 52, 52, 52, 52, 52, 52
88 return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]];
91 const struct conf_item *
92 confitems_get (register const char *str, register size_t len)
103 static const struct conf_item wordlist[] =
105 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
106 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
107 #line 43 "src/confitems.gperf"
108 {"path", 20, ITEM(path, env_string)},
109 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
110 {"",0,0,NULL,NULL,NULL},
111 #line 26 "src/confitems.gperf"
112 {"compiler", 3, ITEM(compiler, string)},
113 #line 24 "src/confitems.gperf"
114 {"cache_dir", 1, ITEM(cache_dir, env_string)},
115 {"",0,0,NULL,NULL,NULL},
116 #line 28 "src/confitems.gperf"
117 {"compression", 5, ITEM(compression, bool)},
118 {"",0,0,NULL,NULL,NULL},
119 #line 30 "src/confitems.gperf"
120 {"cpp_extension", 7, ITEM(cpp_extension, string)},
121 #line 27 "src/confitems.gperf"
122 {"compiler_check", 4, ITEM(compiler_check, string)},
123 #line 31 "src/confitems.gperf"
124 {"debug", 8, ITEM(debug, bool)},
125 #line 25 "src/confitems.gperf"
126 {"cache_dir_levels", 2, ITEM_V(cache_dir_levels, unsigned, dir_levels)},
127 #line 29 "src/confitems.gperf"
128 {"compression_level", 6, ITEM(compression_level, unsigned)},
129 #line 40 "src/confitems.gperf"
130 {"log_file", 17, ITEM(log_file, env_string)},
131 #line 45 "src/confitems.gperf"
132 {"prefix_command", 22, ITEM(prefix_command, env_string)},
133 #line 52 "src/confitems.gperf"
134 {"stats", 29, ITEM(stats, bool)},
135 #line 44 "src/confitems.gperf"
136 {"pch_external_checksum", 21, ITEM(pch_external_checksum, bool)},
137 #line 49 "src/confitems.gperf"
138 {"recache", 26, ITEM(recache, bool)},
139 #line 46 "src/confitems.gperf"
140 {"prefix_command_cpp", 23, ITEM(prefix_command_cpp, env_string)},
141 #line 47 "src/confitems.gperf"
142 {"read_only", 24, ITEM(read_only, bool)},
143 #line 51 "src/confitems.gperf"
144 {"sloppiness", 28, ITEM(sloppiness, sloppiness)},
145 {"",0,0,NULL,NULL,NULL},
146 #line 38 "src/confitems.gperf"
147 {"keep_comments_cpp", 15, ITEM(keep_comments_cpp, bool)},
148 #line 42 "src/confitems.gperf"
149 {"max_size", 19, ITEM(max_size, size)},
150 #line 41 "src/confitems.gperf"
151 {"max_files", 18, ITEM(max_files, unsigned)},
152 #line 55 "src/confitems.gperf"
153 {"unify", 32, ITEM(unify, bool)},
154 #line 48 "src/confitems.gperf"
155 {"read_only_direct", 25, ITEM(read_only_direct, bool)},
156 #line 33 "src/confitems.gperf"
157 {"disable", 10, ITEM(disable, bool)},
158 #line 53 "src/confitems.gperf"
159 {"temporary_dir", 30, ITEM(temporary_dir, env_string)},
160 #line 50 "src/confitems.gperf"
161 {"run_second_cpp", 27, ITEM(run_second_cpp, bool)},
162 {"",0,0,NULL,NULL,NULL},
163 #line 32 "src/confitems.gperf"
164 {"direct_mode", 9, ITEM(direct_mode, bool)},
165 {"",0,0,NULL,NULL,NULL},
166 #line 36 "src/confitems.gperf"
167 {"hash_dir", 13, ITEM(hash_dir, bool)},
168 #line 35 "src/confitems.gperf"
169 {"hard_link", 12, ITEM(hard_link, bool)},
170 #line 54 "src/confitems.gperf"
171 {"umask", 31, ITEM(umask, umask)},
172 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
173 #line 23 "src/confitems.gperf"
174 {"base_dir", 0, ITEM_V(base_dir, env_string, absolute_path)},
175 #line 34 "src/confitems.gperf"
176 {"extra_files_to_hash", 11, ITEM(extra_files_to_hash, env_string)},
177 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
178 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
179 #line 39 "src/confitems.gperf"
180 {"limit_multiple", 16, ITEM(limit_multiple, double)},
181 {"",0,0,NULL,NULL,NULL},
182 #line 37 "src/confitems.gperf"
183 {"ignore_headers_in_manifest", 14, ITEM(ignore_headers_in_manifest, env_string)}
186 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
188 register unsigned int key = confitems_hash (str, len);
190 if (key <= MAX_HASH_VALUE)
192 register const char *s = wordlist[key].name;
194 if (*str == *s && !strcmp (str + 1, s + 1))
195 return &wordlist[key];
200 size_t confitems_count(void) { return 33; }