1 /* ANSI-C code produced by gperf version 3.1 */
2 /* Command-line: 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 #warning "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
32 #include "confitems.h"
36 #define ITEM_ENTRY(name, type, verify_fn) \
37 offsetof(struct conf, name), confitem_parse_ ## type, \
38 confitem_format_ ## type, verify_fn
39 #define ITEM(name, type) \
40 ITEM_ENTRY(name, type, NULL)
41 #define ITEM_V(name, type, verification) \
42 ITEM_ENTRY(name, type, confitem_verify_ ## verification)
44 /* maximum key range = 46, duplicates = 0 */
54 confitems_hash (register const char *str, register size_t len)
56 static const unsigned char asso_values[] =
58 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
59 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
60 50, 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, 0, 35, 0,
68 5, 10, 50, 0, 30, 20, 50, 0, 10, 20,
69 15, 0, 0, 50, 5, 10, 10, 15, 50, 50,
70 20, 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, 50, 50, 50, 50,
74 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
75 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
76 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
77 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
78 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
79 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
80 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
81 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
82 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
83 50, 50, 50, 50, 50, 50
85 return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]];
88 const struct conf_item *
89 confitems_get (register const char *str, register size_t len)
100 static const struct conf_item wordlist[] =
102 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
103 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
104 {"path", 21, ITEM(path, env_string)},
105 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
106 {"",0,0,NULL,NULL,NULL},
107 {"compiler", 3, ITEM(compiler, string)},
108 {"cache_dir", 1, ITEM(cache_dir, env_string)},
109 {"",0,0,NULL,NULL,NULL},
110 {"compression", 5, ITEM(compression, bool)},
111 {"",0,0,NULL,NULL,NULL},
112 {"cpp_extension", 7, ITEM(cpp_extension, string)},
113 {"compiler_check", 4, ITEM(compiler_check, string)},
114 {"",0,0,NULL,NULL,NULL},
115 {"cache_dir_levels", 2, ITEM_V(cache_dir_levels, unsigned, dir_levels)},
116 {"compression_level", 6, ITEM(compression_level, unsigned)},
117 {"log_file", 18, ITEM(log_file, env_string)},
118 {"prefix_command", 23, ITEM(prefix_command, env_string)},
119 {"debug", 8, ITEM(debug, bool)},
120 {"pch_external_checksum", 22, ITEM(pch_external_checksum, bool)},
121 {"recache", 27, ITEM(recache, bool)},
122 {"prefix_command_cpp", 24, ITEM(prefix_command_cpp, env_string)},
123 {"read_only", 25, ITEM(read_only, bool)},
124 {"stats", 30, ITEM(stats, bool)},
125 {"depend_mode", 9, ITEM(depend_mode, bool)},
126 {"keep_comments_cpp", 16, ITEM(keep_comments_cpp, bool)},
127 {"max_size", 20, ITEM(max_size, size)},
128 {"max_files", 19, ITEM(max_files, unsigned)},
129 {"sloppiness", 29, ITEM(sloppiness, sloppiness)},
130 {"read_only_direct", 26, ITEM(read_only_direct, bool)},
131 {"disable", 11, ITEM(disable, bool)},
132 {"temporary_dir", 31, ITEM(temporary_dir, env_string)},
133 {"run_second_cpp", 28, ITEM(run_second_cpp, bool)},
134 {"unify", 33, ITEM(unify, bool)},
135 {"direct_mode", 10, ITEM(direct_mode, bool)},
136 {"",0,0,NULL,NULL,NULL},
137 {"hash_dir", 14, ITEM(hash_dir, bool)},
138 {"hard_link", 13, ITEM(hard_link, bool)},
139 {"umask", 32, ITEM(umask, umask)},
140 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
141 {"base_dir", 0, ITEM_V(base_dir, env_string, absolute_path)},
142 {"limit_multiple", 17, ITEM(limit_multiple, double)},
143 {"",0,0,NULL,NULL,NULL},
144 {"ignore_headers_in_manifest", 15, ITEM(ignore_headers_in_manifest, env_string)},
145 {"",0,0,NULL,NULL,NULL}, {"",0,0,NULL,NULL,NULL},
146 {"extra_files_to_hash", 12, ITEM(extra_files_to_hash, env_string)}
149 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
151 register unsigned int key = confitems_hash (str, len);
153 if (key <= MAX_HASH_VALUE)
155 register const char *s = wordlist[key].name;
157 if (*str == *s && !strcmp (str + 1, s + 1))
158 return &wordlist[key];
163 size_t confitems_count(void) { return 34; }