mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-12 08:30:53 +00:00
Formerly file.c.~24~
This commit is contained in:
parent
80091295df
commit
4a9fdcd65f
1 changed files with 0 additions and 21 deletions
21
file.c
21
file.c
|
@ -88,27 +88,6 @@ enter_file (name)
|
||||||
if (*name == '\0')
|
if (*name == '\0')
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
/* This is also done in parse_file_seq, so this is redundant
|
|
||||||
for names read from makefiles. It is here for names passed
|
|
||||||
on the command line. */
|
|
||||||
while (name[0] == '.' && name[1] == '/' && name[2] != '\0')
|
|
||||||
{
|
|
||||||
name += 2;
|
|
||||||
while (*name == '/')
|
|
||||||
/* Skip following slashes: ".//foo" is "foo", not "/foo". */
|
|
||||||
++name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (*name == '\0')
|
|
||||||
{
|
|
||||||
/* It was all slashes! Move back to the dot and truncate
|
|
||||||
it after the first slash, so it becomes just "./". */
|
|
||||||
do
|
|
||||||
--name;
|
|
||||||
while (name[0] != '.');
|
|
||||||
name[2] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
hashval = 0;
|
hashval = 0;
|
||||||
for (n = name; *n != '\0'; ++n)
|
for (n = name; *n != '\0'; ++n)
|
||||||
HASH (hashval, *n);
|
HASH (hashval, *n);
|
||||||
|
|
Loading…
Reference in a new issue