| 1140 | } *arg_cache[ARG_CACHE_SIZE]; |
| 1141 | |
| 1142 | static int lookup_arg_cache(char *code) |
| 1143 | { |
| 1144 | struct arg_cache *entry; |
| 1145 | |
| 1146 | entry = arg_cache[strnshash(code) % ARG_CACHE_SIZE]; |
| 1147 | while (entry) { |
| 1148 | if (!strnscmp(entry->code, code)) return entry->rule; |
| 1149 | entry = entry->next; } |
| 1150 | return -1; |
| 1151 | } |
| 1152 | |
| 1153 | static void insert_arg_cache(char *code, int rule) |
| 1154 | { |
no test coverage detected