summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2003-05-02 01:44:59 +0000
committerPaul Smith <psmith@gnu.org>2003-05-02 01:44:59 +0000
commit569d43ad102ea3ccd02a46128dbbc8020bf3bf05 (patch)
tree5cf133d3615d2674df02234f6d5708d22175a67d /function.c
parent502c607256d1e3633049ca545d060d0edc4daf73 (diff)
downloadmake-569d43ad102ea3ccd02a46128dbbc8020bf3bf05.tar.gz
- Fix bug #1405: allow multiple pattern-specific variables to match a target.
- Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
Diffstat (limited to 'function.c')
-rw-r--r--function.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/function.c b/function.c
index 08a4d569..d05a5bb6 100644
--- a/function.c
+++ b/function.c
@@ -681,9 +681,9 @@ func_words (char *o, char **argv, const char *funcname)
static char *
strip_whitespace (const char **begpp, const char **endpp)
{
- while (isspace ((unsigned char)**begpp) && *begpp <= *endpp)
+ while (*begpp <= *endpp && isspace ((unsigned char)**begpp))
(*begpp) ++;
- while (isspace ((unsigned char)**endpp) && *endpp >= *begpp)
+ while (*endpp >= *begpp && isspace ((unsigned char)**endpp))
(*endpp) --;
return (char *)*begpp;
}