1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-21 00:09:48 +00:00

Replace is*() macros with our own IS*() ones.

Get rid of non ANSI/ISO isascii().
This commit is contained in:
Yang Tse
2006-10-18 03:42:06 +00:00
parent 2a7b004e49
commit dd3b42e1ac
5 changed files with 38 additions and 39 deletions

View File

@ -239,15 +239,15 @@ static int single_domain(ares_channel channel, const char *name, char **s)
== ARES_SUCCESS)
{
if (strncasecmp(line, name, len) != 0 ||
!isspace((unsigned char)line[len]))
!ISSPACE(line[len]))
continue;
p = line + len;
while (isspace((unsigned char)*p))
while (ISSPACE(*p))
p++;
if (*p)
{
q = p + 1;
while (*q && !isspace((unsigned char)*q))
while (*q && !ISSPACE(*q))
q++;
*s = malloc(q - p + 1);
if (*s)