1 /* ANSI-C code produced by gperf version 3.0.3 */
2 /* Command-line: gperf keywords.gperf */
3 /* Computed positions: -k'5,$' */
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 1 "keywords.gperf"
34 #line 4 "keywords.gperf"
38 void (*enhance_op)(char *filename[], struct op op[],
39 unsigned file, unsigned op_num, char *words[]);
41 /* maximum key range = 53, duplicates = 0 */
51 hash_keyword (register const char *str, register unsigned int len)
53 static const unsigned char asso_values[] =
55 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
56 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
57 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
58 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
59 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
60 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
61 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
62 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
63 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
64 61, 61, 61, 61, 61, 61, 61, 45, 61, 30,
65 5, 0, 0, 5, 5, 61, 61, 0, 0, 0,
66 20, 61, 20, 61, 25, 0, 5, 0, 61, 0,
67 61, 5, 61, 61, 61, 61, 61, 61, 61, 61,
68 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
69 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
70 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
71 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
72 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
73 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
74 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
75 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
76 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
77 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
78 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
79 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
80 61, 61, 61, 61, 61, 61
82 return len + asso_values[(unsigned char)str[4]] + asso_values[(unsigned char)str[len - 1]];
87 #ifdef __GNUC_STDC_INLINE__
88 __attribute__ ((__gnu_inline__))
91 const struct op_table *
92 find_keyword (register const char *str, register unsigned int len)
103 static const struct op_table wordlist[] =
105 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
106 #line 44 "keywords.gperf"
107 {"traverse", OP_TDB_TRAVERSE, op_add_traverse,},
108 #line 33 "keywords.gperf"
109 {"tdb_store", OP_TDB_STORE, op_add_store,},
110 #line 32 "keywords.gperf"
111 {"tdb_exists", OP_TDB_EXISTS, op_add_key_ret,},
112 #line 16 "keywords.gperf"
113 {"tdb_lockall", OP_TDB_LOCKALL, op_add_nothing,},
114 #line 36 "keywords.gperf"
115 {"tdb_wipe_all", OP_TDB_WIPE_ALL, op_add_wipe_all,},
116 #line 20 "keywords.gperf"
117 {"tdb_unlockall", OP_TDB_UNLOCKALL, op_add_nothing,},
118 #line 48 "keywords.gperf"
119 {"tdb_fetch", OP_TDB_FETCH, op_add_key_data,},
120 #line 49 "keywords.gperf"
121 {"tdb_delete", OP_TDB_DELETE, op_add_key_ret,},
122 #line 17 "keywords.gperf"
123 {"tdb_lockall_mark", OP_TDB_LOCKALL_MARK, op_add_nothing,},
124 #line 46 "keywords.gperf"
125 {"tdb_firstkey", OP_TDB_FIRSTKEY, op_add_key,},
126 #line 18 "keywords.gperf"
127 {"tdb_lockall_unmark", OP_TDB_LOCKALL_UNMARK, op_add_nothing,},
128 #line 35 "keywords.gperf"
129 {"tdb_get_seqnum", OP_TDB_GET_SEQNUM, op_add_seqnum,},
130 #line 19 "keywords.gperf"
131 {"tdb_lockall_nonblock", OP_TDB_LOCKALL_NONBLOCK, op_add_nothing,},
132 #line 21 "keywords.gperf"
133 {"tdb_lockall_read", OP_TDB_LOCKALL_READ, op_add_nothing,},
135 #line 23 "keywords.gperf"
136 {"tdb_unlockall_read", OP_TDB_UNLOCKALL_READ, op_add_nothing,},
138 #line 22 "keywords.gperf"
139 {"tdb_lockall_read_nonblock", OP_TDB_LOCKALL_READ_NONBLOCK, op_add_nothing,},
140 #line 43 "keywords.gperf"
141 {"tdb_traverse_end", OP_TDB_TRAVERSE_END, op_analyze_traverse,},
142 #line 38 "keywords.gperf"
143 {"tdb_transaction_cancel", OP_TDB_TRANSACTION_CANCEL, op_analyze_transaction,},
144 #line 42 "keywords.gperf"
145 {"tdb_traverse_start", OP_TDB_TRAVERSE_START, op_add_traverse_start,},
147 #line 45 "keywords.gperf"
148 {"traversefn", OP_TDB_TRAVERSE, op_add_traversefn,},
149 #line 37 "keywords.gperf"
150 {"tdb_transaction_start", OP_TDB_TRANSACTION_START, op_add_transaction,},
151 #line 39 "keywords.gperf"
152 {"tdb_transaction_commit", OP_TDB_TRANSACTION_COMMIT, op_analyze_transaction,},
153 #line 41 "keywords.gperf"
154 {"tdb_traverse_read_start", OP_TDB_TRAVERSE_READ_START, op_add_traverse_start,},
156 #line 50 "keywords.gperf"
157 {"tdb_repack", OP_TDB_REPACK, op_add_nothing,},
158 #line 47 "keywords.gperf"
159 {"tdb_nextkey", OP_TDB_NEXTKEY, op_add_key_data,},
161 #line 40 "keywords.gperf"
162 {"tdb_transaction_prepare_commit", OP_TDB_TRANSACTION_PREPARE_COMMIT, op_add_nothing,},
163 #line 31 "keywords.gperf"
164 {"tdb_parse_record", OP_TDB_PARSE_RECORD, op_add_key_ret,},
166 #line 24 "keywords.gperf"
167 {"tdb_chainlock", OP_TDB_CHAINLOCK, op_add_chainlock,},
169 #line 28 "keywords.gperf"
170 {"tdb_chainunlock", OP_TDB_CHAINUNLOCK, op_analyze_chainlock,},
172 #line 26 "keywords.gperf"
173 {"tdb_chainlock_mark", OP_TDB_CHAINLOCK_MARK, op_add_key,},
175 #line 27 "keywords.gperf"
176 {"tdb_chainlock_unmark", OP_TDB_CHAINLOCK_UNMARK, op_add_key,},
178 #line 25 "keywords.gperf"
179 {"tdb_chainlock_nonblock", OP_TDB_CHAINLOCK_NONBLOCK, op_add_chainlock_ret,},
180 #line 29 "keywords.gperf"
181 {"tdb_chainlock_read", OP_TDB_CHAINLOCK_READ, op_add_chainlock,},
183 #line 30 "keywords.gperf"
184 {"tdb_chainunlock_read", OP_TDB_CHAINUNLOCK_READ, op_analyze_chainlock,},
185 {""}, {""}, {""}, {""},
186 #line 34 "keywords.gperf"
187 {"tdb_append", OP_TDB_APPEND, op_add_append,}
190 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
192 register int key = hash_keyword (str, len);
194 if (key <= MAX_HASH_VALUE && key >= 0)
196 register const char *s = wordlist[key].name;
198 if (*str == *s && !strcmp (str + 1, s + 1))
199 return &wordlist[key];