diff options
author | Paul Smith <psmith@gnu.org> | 1997-08-18 18:11:04 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1997-08-18 18:11:04 +0000 |
commit | 63dff1e0bcb9e1bdd189e4a3e0d6126389251885 (patch) | |
tree | f8b39c21a6c709622d4fcc18f40539477a5ceb1a /file.c | |
parent | e746a9c9510b2cc83548e8d9108eb24540e7a821 (diff) | |
download | gunmake-63dff1e0bcb9e1bdd189e4a3e0d6126389251885.tar.gz |
Bug fixes and automake changes.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -187,6 +187,23 @@ rehash_file (file, name) file_hash_enter (file, name, oldhash, file->name); } +/* Rename FILE to NAME. This is not as simple as resetting + the `name' member, since it must be put in a new hash bucket, + and possibly merged with an existing file called NAME. */ + +void +rename_file (file, name) + register struct file *file; + char *name; +{ + rehash_file(file, name); + while (file) + { + file->name = file->hname; + file = file->prev; + } +} + void file_hash_enter (file, name, oldhash, oldname) register struct file *file; |