mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
Changed all uses of ':' to PATH_SEPARATOR_CHAR.
This commit is contained in:
parent
021ea7e61c
commit
55162a6730
1 changed files with 7 additions and 6 deletions
13
vpath.c
13
vpath.c
|
@ -177,7 +177,7 @@ construct_vpath_list (pattern, dirpath)
|
||||||
maxelem = 2;
|
maxelem = 2;
|
||||||
p = dirpath;
|
p = dirpath;
|
||||||
while (*p != '\0')
|
while (*p != '\0')
|
||||||
if (*p++ == ':' || isblank (*p))
|
if (*p++ == PATH_SEPARATOR_CHAR || isblank (*p))
|
||||||
++maxelem;
|
++maxelem;
|
||||||
|
|
||||||
vpath = (char **) xmalloc (maxelem * sizeof (char *));
|
vpath = (char **) xmalloc (maxelem * sizeof (char *));
|
||||||
|
@ -185,7 +185,7 @@ construct_vpath_list (pattern, dirpath)
|
||||||
|
|
||||||
/* Skip over any initial colons and blanks. */
|
/* Skip over any initial colons and blanks. */
|
||||||
p = dirpath;
|
p = dirpath;
|
||||||
while (*p == ':' || isblank (*p))
|
while (*p == PATH_SEPARATOR_CHAR || isblank (*p))
|
||||||
++p;
|
++p;
|
||||||
|
|
||||||
elem = 0;
|
elem = 0;
|
||||||
|
@ -196,7 +196,7 @@ construct_vpath_list (pattern, dirpath)
|
||||||
|
|
||||||
/* Find the end of this entry. */
|
/* Find the end of this entry. */
|
||||||
v = p;
|
v = p;
|
||||||
while (*p != '\0' && *p != ':' && !isblank (*p))
|
while (*p != '\0' && *p != PATH_SEPARATOR_CHAR && !isblank (*p))
|
||||||
++p;
|
++p;
|
||||||
|
|
||||||
len = p - v;
|
len = p - v;
|
||||||
|
@ -225,7 +225,7 @@ construct_vpath_list (pattern, dirpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Skip over colons and blanks between entries. */
|
/* Skip over colons and blanks between entries. */
|
||||||
while (*p == ':' || isblank (*p))
|
while (*p == PATH_SEPARATOR_CHAR || isblank (*p))
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -461,7 +461,7 @@ print_vpath_data_base ()
|
||||||
|
|
||||||
for (i = 0; v->searchpath[i] != 0; ++i)
|
for (i = 0; v->searchpath[i] != 0; ++i)
|
||||||
printf ("%s%c", v->searchpath[i],
|
printf ("%s%c", v->searchpath[i],
|
||||||
v->searchpath[i + 1] == 0 ? '\n' : ':');
|
v->searchpath[i + 1] == 0 ? '\n' : PATH_SEPARATOR_CHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpaths == 0)
|
if (vpaths == 0)
|
||||||
|
@ -479,6 +479,7 @@ print_vpath_data_base ()
|
||||||
fputs ("\n# General (`VPATH' variable) search path:\n# ", stdout);
|
fputs ("\n# General (`VPATH' variable) search path:\n# ", stdout);
|
||||||
|
|
||||||
for (i = 0; path[i] != 0; ++i)
|
for (i = 0; path[i] != 0; ++i)
|
||||||
printf ("%s%c", path[i], path[i + 1] == 0 ? '\n' : ':');
|
printf ("%s%c", path[i],
|
||||||
|
path[i + 1] == 0 ? '\n' : PATH_SEPARATOR_CHAR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue