• Home
  • Raw
  • Download

Lines Matching refs:file

29 pattern_search PARAMS ((struct file *file, int archive,
39 try_implicit_rule (struct file *file, unsigned int depth) in try_implicit_rule() argument
48 if (pattern_search (file, 0, depth, 0)) in try_implicit_rule()
54 if (ar_name (file->name)) in try_implicit_rule()
58 if (pattern_search (file, 1, depth, 0)) in try_implicit_rule()
73 struct file *intermediate_file; /* intermediate file, 0 otherwise */
90 struct file *f = p->intermediate_file; in free_idep_chain()
200 pattern_search (struct file *file, int archive, in pattern_search() argument
204 char *filename = archive ? strchr (file->name, '(') : file->name; in pattern_search()
215 struct file *intermediate_file = 0; in pattern_search()
430 initialize_file_variables (file, 0); in pattern_search()
441 struct file *f; in pattern_search()
484 file->stem = stem_str; in pattern_search()
558 set_file_variables (file); in pattern_search()
562 p2 = variable_expand_for_file (depname, file); in pattern_search()
651 file->stem = 0; in pattern_search()
685 for (expl_d = file->deps; expl_d != 0; expl_d = expl_d->next) in pattern_search()
727 = (struct file *) alloca (sizeof (struct file)); in pattern_search()
733 bzero ((char *) intermediate_file, sizeof (struct file)); in pattern_search()
799 file->name = rule->targets[matches[foundrule]]; in pattern_search()
810 dep = file->deps; in pattern_search()
817 file->deps = 0; in pattern_search()
820 expl_d = file->deps; /* We will add them at the end. */ in pattern_search()
821 d_ptr = &file->deps; in pattern_search()
836 struct file *imf = d->intermediate_file; in pattern_search()
837 register struct file *f = lookup_file (imf->name); in pattern_search()
864 dep->file = enter_file (dep->name); in pattern_search()
866 if (dep->name != dep->file->name) in pattern_search()
869 dep->file->tried_implicit |= dep->changed; in pattern_search()
879 dep->file = lookup_file (s); in pattern_search()
880 if (dep->file == 0) in pattern_search()
882 dep->file = enter_file (s); in pattern_search()
900 if (dep->file == 0) in pattern_search()
903 dep->file->tried_implicit = 1; in pattern_search()
916 file->stem = savestring (stem, stemlen); in pattern_search()
926 file->stem = (char *) xmalloc (fullstemlen + 1); in pattern_search()
927 bcopy (filename, file->stem, dirlen); in pattern_search()
928 bcopy (stem, file->stem + dirlen, stemlen); in pattern_search()
929 file->stem[fullstemlen] = '\0'; in pattern_search()
932 file->cmds = rule->cmds; in pattern_search()
933 file->is_target = 1; in pattern_search()
937 struct file *f = lookup_file (rule->targets[matches[foundrule]]); in pattern_search()
939 file->precious = 1; in pattern_search()
949 struct file *f; in pattern_search()
957 bcopy (file->stem, p, fullstemlen); in pattern_search()
961 new->file = enter_file (new->name); in pattern_search()
962 new->next = file->also_make; in pattern_search()
967 new->file->precious = 1; in pattern_search()
972 new->file->is_target = 1; in pattern_search()
974 file->also_make = new; in pattern_search()