mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-31 03:25:08 +00:00
Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the same as `ifeq (a, b)'.
This commit is contained in:
parent
bd88059c38
commit
3f60c36245
1 changed files with 10 additions and 1 deletions
11
read.c
11
read.c
|
@ -1091,7 +1091,16 @@ conditional_line (line, filename, lineno)
|
||||||
if (*line == '\0')
|
if (*line == '\0')
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
*line++ = '\0';
|
if (termin == ',')
|
||||||
|
{
|
||||||
|
/* Strip blanks after the first string. */
|
||||||
|
char *p = line++;
|
||||||
|
while (isblank (p[-1]))
|
||||||
|
--p;
|
||||||
|
*p = '\0';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
*line++ = '\0';
|
||||||
|
|
||||||
s2 = variable_expand (s1);
|
s2 = variable_expand (s1);
|
||||||
/* We must allocate a new copy of the expanded string because
|
/* We must allocate a new copy of the expanded string because
|
||||||
|
|
Loading…
Reference in a new issue