Lines Matching refs:info
116 #define info_compiled(info) ((void*)0)
118 #define info_compiled(info) ((info)->compiled)
148 clear_pattern(info)
149 struct pattern_info *info;
151 if (info->text != NULL)
152 free(info->text);
153 info->text = NULL;
155 uncompile_pattern(&info->compiled);
163 set_pattern(info, pattern, search_type, show_error)
164 struct pattern_info *info;
171 SET_NULL_PATTERN(info->compiled);
172 else if (compile_pattern(pattern, search_type, show_error, &info->compiled) < 0)
176 if (info->text != NULL)
177 free(info->text);
178 info->text = NULL;
181 info->text = (char *) ecalloc(1, strlen(pattern)+1);
182 strcpy(info->text, pattern);
184 info->search_type = search_type;
202 init_pattern(info)
203 struct pattern_info *info;
205 SET_NULL_PATTERN(info->compiled);
206 info->text = NULL;
207 info->search_type = 0;
208 info->next = NULL;
243 prev_pattern(info)
244 struct pattern_info *info;
247 if ((info->search_type & SRCH_NO_REGEX) == 0)
248 return (!is_null_pattern(info->compiled));
250 return (info->text != NULL);