Lines Matching refs:spec_arr
30 spec_t *spec_arr; member
58 data->spec_arr[data->nspec].key = key; in process_line()
59 data->spec_arr[data->nspec].lr.ctx_raw = context; in process_line()
129 data->spec_arr = malloc(sizeof(spec_t)*data->nspec); in init()
130 if (data->spec_arr == NULL) in init()
132 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec); in init()
156 struct spec *spec, *spec_arr = data->spec_arr; in close() local
160 spec = &spec_arr[i]; in close()
166 if (spec_arr) in close()
167 free(spec_arr); in close()
177 spec_t *spec_arr = data->spec_arr; in lookup() local
181 if (!strncmp(spec_arr[i].key, key, strlen(key) + 1)) in lookup()
183 if (!strncmp(spec_arr[i].key, "*", 2)) in lookup()
193 spec_arr[i].matches++; in lookup()
194 return &spec_arr[i].lr; in lookup()
203 total += data->spec_arr[i].matches; in stats()