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

Lines Matching defs:stem

77   unsigned char had_stem;         /* had % substituted with stem */
95 && (f->stem < f->name || f->stem > f->name + strlen (f->name)))
96 free (f->stem);
230 /* The start and length of the stem of FILENAME for the current rule. */
231 register char *stem = 0;
273 PATH_VAR (stem_str); /* @@ Need to get rid of stem, stemlen, etc. */
342 find the stem: the part of the filename that matches the %. */
343 stem = filename + (suffix - target - 1);
369 /* If so, don't include the directory prefix in STEM here. */
374 stem += difference;
377 /* Check that the rule pattern matches the text before the stem. */
380 if (stem > (lastslash + 1)
381 && !strneq (target, lastslash + 1, stem - lastslash - 1))
384 else if (stem > filename
385 && !strneq (target, filename, stem - filename))
388 /* Check that the rule pattern matches the text after the stem.
393 if (*suffix != stem[stemlen]
394 || (*suffix != '\0' && !streq (&suffix[1], &stem[stemlen + 1])))
467 find the stem: the part of the filename that matches the %. */
468 stem = filename
474 stem += lastslash - filename + 1;
478 DBS (DB_IMPLICIT, (_("Trying pattern rule with stem `%.*s'.\n"),
479 (int) stemlen, stem));
481 strncpy (stem_str, stem, stemlen);
484 /* Temporary assign STEM to file->stem (needed to set file
486 file->stem = stem_str;
497 substitute the stem, re-expand the whole line and chop it
501 word we will substitute the stem, re-expand, chop it up, and,
522 /* If the dependency name has %, substitute the stem.
525 here. If we just replace % with the stem value,
527 re-expand this stem value once again. This is not
529 your stem
534 additional re-expansion of the stem. */
556 at the beginning of the function because of the stem
651 /* Reset the stem in FILE. */
653 file->stem = 0;
851 f->stem = imf->stem;
916 /* Always allocate new storage, since STEM might be
918 file->stem = savestring (stem, stemlen);
926 the original FILENAME onto the stem. */
928 file->stem = (char *) xmalloc (fullstemlen + 1);
929 bcopy (filename, file->stem, dirlen);
930 bcopy (stem, file->stem + dirlen, stemlen);
931 file->stem[fullstemlen] = '\0';
959 bcopy (file->stem, p, fullstemlen);