Lines Matching defs:from_file

206 rename_file (struct file *from_file, char *to_hname)
208 rehash_file (from_file, to_hname);
209 while (from_file)
211 from_file->name = from_file->hname;
212 from_file = from_file->prev;
221 rehash_file (struct file *from_file, char *to_hname)
230 if (0 == file_hash_cmp (from_file, &file_key))
233 file_key.hname = from_file->hname;
234 while (from_file->renamed != 0)
235 from_file = from_file->renamed;
236 if (file_hash_cmp (from_file, &file_key))
240 deleted_file = hash_delete (&files, from_file);
241 if (deleted_file != from_file)
242 /* from_file isn't the one stored in files */
249 from_file->hname = to_hname;
250 for (f = from_file->double_colon; f != 0; f = f->prev)
254 hash_insert_at (&files, from_file, file_slot);
260 if (from_file->cmds != 0)
263 to_file->cmds = from_file->cmds;
264 else if (from_file->cmds != to_file->cmds)
270 error (&from_file->cmds->fileinfo,
272 from_file->name, to_file->cmds->fileinfo.filenm,
275 error (&from_file->cmds->fileinfo,
277 from_file->name);
278 error (&from_file->cmds->fileinfo,
280 from_file->name, to_hname);
281 error (&from_file->cmds->fileinfo,
283 to_hname, from_file->name);
290 to_file->deps = from_file->deps;
296 deps->next = from_file->deps;
299 merge_variable_set_lists (&to_file->variables, from_file->variables);
301 if (to_file->double_colon && from_file->is_target && !from_file->double_colon)
303 from_file->name, to_hname);
304 if (!to_file->double_colon && from_file->double_colon)
308 from_file->name, to_hname);
310 to_file->double_colon = from_file->double_colon;
313 if (from_file->last_mtime > to_file->last_mtime)
315 to_file->last_mtime = from_file->last_mtime;
317 to_file->mtime_before_update = from_file->mtime_before_update;
319 #define MERGE(field) to_file->field |= from_file->field
330 from_file->renamed = to_file;