Lines Matching refs:from_file

205 rename_file (struct file *from_file, char *to_hname)  in rename_file()  argument
207 rehash_file (from_file, to_hname); in rename_file()
208 while (from_file) in rename_file()
210 from_file->name = from_file->hname; in rename_file()
211 from_file = from_file->prev; in rename_file()
220 rehash_file (struct file *from_file, char *to_hname) in rehash_file() argument
229 if (0 == file_hash_cmp (from_file, &file_key)) in rehash_file()
232 file_key.hname = from_file->hname; in rehash_file()
233 while (from_file->renamed != 0) in rehash_file()
234 from_file = from_file->renamed; in rehash_file()
235 if (file_hash_cmp (from_file, &file_key)) in rehash_file()
239 deleted_file = hash_delete (&files, from_file); in rehash_file()
240 if (deleted_file != from_file) in rehash_file()
248 from_file->hname = to_hname; in rehash_file()
249 for (f = from_file->double_colon; f != 0; f = f->prev) in rehash_file()
253 hash_insert_at (&files, from_file, file_slot); in rehash_file()
259 if (from_file->cmds != 0) in rehash_file()
262 to_file->cmds = from_file->cmds; in rehash_file()
263 else if (from_file->cmds != to_file->cmds) in rehash_file()
269 error (&from_file->cmds->fileinfo, in rehash_file()
271 from_file->name, to_file->cmds->fileinfo.filenm, in rehash_file()
274 error (&from_file->cmds->fileinfo, in rehash_file()
276 from_file->name); in rehash_file()
277 error (&from_file->cmds->fileinfo, in rehash_file()
279 from_file->name, to_hname); in rehash_file()
280 error (&from_file->cmds->fileinfo, in rehash_file()
282 to_hname, from_file->name); in rehash_file()
289 to_file->deps = from_file->deps; in rehash_file()
295 deps->next = from_file->deps; in rehash_file()
298 merge_variable_set_lists (&to_file->variables, from_file->variables); in rehash_file()
300 if (to_file->double_colon && from_file->is_target && !from_file->double_colon) in rehash_file()
302 from_file->name, to_hname); in rehash_file()
303 if (!to_file->double_colon && from_file->double_colon) in rehash_file()
307 from_file->name, to_hname); in rehash_file()
309 to_file->double_colon = from_file->double_colon; in rehash_file()
312 if (from_file->last_mtime > to_file->last_mtime) in rehash_file()
314 to_file->last_mtime = from_file->last_mtime; in rehash_file()
316 to_file->mtime_before_update = from_file->mtime_before_update; in rehash_file()
318 #define MERGE(field) to_file->field |= from_file->field in rehash_file()
329 from_file->renamed = to_file; in rehash_file()