diff options
author | Roland McGrath <roland@redhat.com> | 1996-06-22 21:42:02 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1996-06-22 21:42:02 +0000 |
commit | 3f60c36245fed94b091cba6b8b65ab4981958a4c (patch) | |
tree | f31f7a5ef7a98285385025f90f9cec8c38bf3d28 /read.c | |
parent | bd88059c38aad895ed27e2f39c6e4b997a367671 (diff) | |
download | gunmake-3f60c36245fed94b091cba6b8b65ab4981958a4c.tar.gz |
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)'.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1091,7 +1091,16 @@ conditional_line (line, filename, lineno) if (*line == '\0') 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); /* We must allocate a new copy of the expanded string because |