aboutsummaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-08-02 11:28:04 +0000
committerRoland McGrath <roland@redhat.com>1992-08-02 11:28:04 +0000
commit3241a91312fa81293218e15da8e2cc376535c8d2 (patch)
treec634a95a4d7e7c2ca08c59e97c48efd8f269fefe /file.c
parentb732b99c0be4b3cd0ab06c18eadda0fe0282ff45 (diff)
downloadgunmake-3241a91312fa81293218e15da8e2cc376535c8d2.tar.gz
Formerly file.c.~17~
Diffstat (limited to 'file.c')
-rw-r--r--file.c32
1 files changed, 5 insertions, 27 deletions
diff --git a/file.c b/file.c
index e98e613..6d81a67 100644
--- a/file.c
+++ b/file.c
@@ -142,10 +142,11 @@ rename_file (file, name)
}
void
-file_hash_enter (file, name, oldhash)
+file_hash_enter (file, name, oldhash, oldname)
register struct file *file;
char *name;
unsigned int oldhash;
+ char *oldname;
{
register unsigned int newhash;
struct file *oldfile;
@@ -213,16 +214,16 @@ file_hash_enter (file, name, oldhash)
makefile_error (file->cmds->filename, file->cmds->lineno,
"Commands were specified for \
file `%s' at %s:%u,",
- oldfile->name, oldfile->cmds->filename,
+ oldname, oldfile->cmds->filename,
oldfile->cmds->lineno);
makefile_error (file->cmds->filename, file->cmds->lineno,
"but `%s' is now considered the same file \
as `%s'.",
- oldfile->name, name);
+ oldname, name);
makefile_error (file->cmds->filename, file->cmds->lineno,
"Commands for `%s' will be ignored \
in favor of those for `%s'.",
- name, oldfile->name);
+ name, oldname);
}
}
@@ -490,26 +491,3 @@ print_file_data_base ()
#endif
}
}
- /* !!! compile frob */
-struct file *
-file_linear_list ()
-{
- register unsigned int bucket;
- register struct file *f, *nextf;
- struct file *chain = NULL;
-
- for (bucket = 0; bucket < sizeof (files) / sizeof (files[0]); ++bucket)
- for (f = files[bucket]; f != NULL; f = nextf)
- {
- nextf = f->next;
- if (f->is_target)
- {
- if (f->cmds != NULL)
- f->cmds = (struct commands *) f->cmds->commands;
- f->next = chain;
- chain = f;
- }
- }
-
- return chain;
-}