• Home
  • Raw
  • Download

Lines Matching refs:name

76 lookup_file (char *name)  in lookup_file()  argument
84 assert (*name != '\0'); in lookup_file()
91 if (*name != '.') in lookup_file()
94 lname = (char *) malloc (strlen (name) + 1); in lookup_file()
95 for (n = name, ln = lname; *n != '\0'; ++n, ++ln) in lookup_file()
98 name = lname; in lookup_file()
102 while (name[0] == '[' && name[1] == ']' && name[2] != '\0') in lookup_file()
103 name += 2; in lookup_file()
105 while (name[0] == '.' && name[1] == '/' && name[2] != '\0') in lookup_file()
107 name += 2; in lookup_file()
108 while (*name == '/') in lookup_file()
110 ++name; in lookup_file()
113 if (*name == '\0') in lookup_file()
116 name = "[]"; in lookup_file()
119 name = ""; in lookup_file()
121 name = "./"; in lookup_file()
125 file_key.hname = name; in lookup_file()
128 if (*name != '.') in lookup_file()
135 enter_file (char *name) in enter_file() argument
145 assert (*name != '\0'); in enter_file()
148 if (*name != '.') in enter_file()
151 lname = (char *) malloc (strlen (name) + 1); in enter_file()
152 for (n = name, ln = lname; *n != '\0'; ++n, ++ln) in enter_file()
163 name = lname; in enter_file()
167 file_key.hname = name; in enter_file()
173 if (*name != '.') in enter_file()
181 new->name = new->hname = name; in enter_file()
210 from_file->name = from_file->hname; in rename_file()
271 from_file->name, to_file->cmds->fileinfo.filenm, in rehash_file()
276 from_file->name); in rehash_file()
279 from_file->name, to_hname); in rehash_file()
282 to_hname, from_file->name); in rehash_file()
302 from_file->name, to_hname); in rehash_file()
307 from_file->name, to_hname); in rehash_file()
374 status = unlink (f->name); in remove_intermediates()
381 error (NILF, _("*** Deleting intermediate file `%s'"), f->name); in remove_intermediates()
395 fputs (f->name, stdout); in remove_intermediates()
400 perror_with_name ("unlink: ", f->name); in remove_intermediates()
475 if (! d->name) in expand_deps()
481 p = d->name; in expand_deps()
491 o = subst_expand (buffer, d->name, "%", "$*", 1, 2, 0); in expand_deps()
493 free (d->name); in expand_deps()
494 d->name = savestring (buffer, o - buffer); in expand_deps()
514 p = variable_expand_for_file (d->name, f); in expand_deps()
534 char *percent = find_percent (dp->name); in expand_deps()
546 dp->name, pattern+1, in expand_deps()
549 dp->name[0] = '\0'; in expand_deps()
552 free (dp->name); in expand_deps()
553 dp->name = savestring (buffer, o - buffer); in expand_deps()
558 if (dp->name[0] == '\0') in expand_deps()
566 df->name = 0; in expand_deps()
579 d1->file = lookup_file (d1->name); in expand_deps()
581 d1->file = enter_file (d1->name); in expand_deps()
583 free (d1->name); in expand_deps()
584 d1->name = 0; in expand_deps()
654 if (strcmp (f->name, ".SUFFIXES") != 0) in snap_deps()
882 printf ("%s:%s", f->name, f->double_colon ? ":" : ""); in print_file()
1021 int l = strlen (f->name); in build_target_list()
1033 bcopy (f->name, p, l); in build_target_list()