Home | History | Annotate | Download | only in make-3.81

Lines Matching refs:pattern

1 /* Implementation of pattern-matching file search paths for GNU Make.
32 char *pattern; /* The pattern to match. */
33 char *percent; /* Pointer into `pattern' where the `%' is. */
34 unsigned int patlen;/* Length of the pattern. */
141 /* Construct the VPATH listing for the pattern and searchpath given.
150 pattern. If PATTERN is nil, remove all VPATH listings. Existing
154 and put in the VPATH searchpath for the given pattern with trailing
161 construct_vpath_list (char *pattern, char *dirpath)
170 if (pattern != 0)
172 pattern = xstrdup (pattern);
173 percent = find_percent (pattern);
187 if (pattern == 0
189 || (percent - pattern == path->percent - path->pattern))
190 && streq (pattern, path->pattern)))
199 free (path->pattern);
209 if (pattern != 0)
210 free (pattern);
303 path->pattern = pattern;
305 path->patlen = strlen (pattern);
311 if (pattern != 0)
312 free (pattern);
334 /* Search the VPATH list whose pattern matches *FILE for a directory
357 if (pattern_matches (v->pattern, v->percent, *file))
585 printf ("vpath %s ", v->pattern);