- 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.
This commit is contained in:
Paul Smith
2003-05-02 01:44:59 +00:00
parent 652234e967
commit 1a5beef51f
24 changed files with 552 additions and 206 deletions

View File

@@ -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;
}