mirror of
https://github.com/mirror/make.git
synced 2026-08-31 03:38:03 +08:00
* Lots of bug fixes and cleanup; new i18n files, etc.
This commit is contained in:
10
function.c
10
function.c
@@ -92,10 +92,10 @@ subst_expand (o, text, subst, replace, slen, rlen, by_word, suffix_only)
|
||||
/* If we're substituting only by fully matched words,
|
||||
or only at the ends of words, check that this case qualifies. */
|
||||
if ((by_word
|
||||
&& ((p > t && !isblank (p[-1]))
|
||||
|| (p[slen] != '\0' && !isblank (p[slen]))))
|
||||
&& ((p > t && !isblank ((unsigned char)p[-1]))
|
||||
|| (p[slen] != '\0' && !isblank ((unsigned char)p[slen]))))
|
||||
|| (suffix_only
|
||||
&& (p[slen] != '\0' && !isblank (p[slen]))))
|
||||
&& (p[slen] != '\0' && !isblank ((unsigned char)p[slen]))))
|
||||
/* Struck out. Output the rest of the string that is
|
||||
no longer to be replaced. */
|
||||
o = variable_buffer_output (o, subst, slen);
|
||||
@@ -235,7 +235,7 @@ lookup_function (table, s)
|
||||
|
||||
for (; table->name != NULL; ++table)
|
||||
if (table->len <= len
|
||||
&& (isblank (s[table->len]) || s[table->len] == '\0')
|
||||
&& (isblank ((unsigned char)s[table->len]) || s[table->len] == '\0')
|
||||
&& strneq (s, table->name, table->len))
|
||||
return table;
|
||||
|
||||
@@ -1274,7 +1274,7 @@ msdos_openpipe (int* pipedes, int *pidp, char *text)
|
||||
extern int dos_command_running, dos_status;
|
||||
|
||||
/* Make sure not to bother processing an empty line. */
|
||||
while (isblank (*text))
|
||||
while (isblank ((unsigned char)*text))
|
||||
++text;
|
||||
if (*text == '\0')
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user