Lines Matching refs:listp
119 static void add_rule(struct filter_list_struct *listp, const char *pat,
131 listp->debug_type);
239 if (!listp->tail) {
240 ret->next = listp->head;
241 listp->head = listp->tail = ret;
243 ret->next = listp->tail->next;
244 listp->tail->next = ret;
245 listp->tail = ret;
249 static void clear_filter_list(struct filter_list_struct *listp)
251 if (listp->tail) {
254 listp->tail->next = NULL;
256 for (ent = listp->head; ent; ent = next) {
262 listp->head = listp->tail = NULL;
599 int check_filter(struct filter_list_struct *listp, char *name, int name_is_dir)
603 for (ent = listp->head; ent; ent = ent->next) {
620 listp->debug_type);
893 void parse_rule(struct filter_list_struct *listp, const char *pattern,
922 who_am_i(), listp->debug_type);
924 clear_filter_list(listp);
939 add_rule(listp, name, len, 0, 0);
948 add_rule(listp, p, len, new_mflags, 0);
954 parse_filter_file(listp, p, new_mflags,
960 add_rule(listp, cp, pat_len, new_mflags, xflags);
969 void parse_filter_file(struct filter_list_struct *listp, const char *fname,
1038 parse_rule(listp, line, mflags, xflags);