{
ccunit_dbg ("read from:%lu: \"%s\"", line.lno, start);
/* skip white spaces */
- for (; *start && isspace (*start); start ++)
+ for (; *start && isspace ((int)*start); start ++)
;
/* skip leading block comment '*'<WSP>... */
if (*start != '*')
else if (start[1] == '/') /* eoc */
;
else /* skip white spaces */
- for (start ++; *start && isspace (*start); start ++)
+ for (start ++; *start && isspace ((int)*start); start ++)
;
/* skip doxygen command line */
if (*start == '@')
}
/* trim trailing white space */
for (end --; start < end; end --)
- if (!isspace (*end))
+ if (!isspace ((int)*end))
{
end ++;
break;
if (strncasecmp (str, prefix, prefixLen) == 0)
{
for (name = str + prefixLen; *name; name ++)
- if (!isspace (*name))
+ if (!isspace ((int)*name))
break;
if (!*name)
{
if (strncasecmp (str, prefix, prefixLen) == 0)
{
name = str + prefixLen;
- if (*name && !isspace (*name) && !ispunct (*name))
+ if (*name && !isspace ((int)*name) && !ispunct ((int)*name))
{
name = NULL;
ccunit_dbg ("not a end of test %s: %s", testType, str);
else
{
for (; *name; name ++)
- if (!isspace (*name))
+ if (!isspace ((int)*name))
break;
if (!*name)
;
char* name;
ccunit_dbg ("read func: %s %s... from '%s'", type, prefix, line.str);
for (typ = line.str; *typ; typ ++)
- if (!isspace (*typ))
+ if (!isspace ((int)*typ))
break;
if (strncmp (typ, scope, strlen (scope)) != 0)
scope = "extern";
else
{
typ += strlen (scope);
- if (*typ && !isspace (*typ))
+ if (*typ && !isspace ((int)*typ))
{
ccunit_dbg ("type mismatch: %s %s", type, typ);
return NULL;
for (;;)
{
for (; *typ; typ ++)
- if (!isspace (*typ))
+ if (!isspace ((int)*typ))
break;
if (*typ)
break;
return NULL;
}
name = typ + strlen (type);
- if (*name && !isspace (*name))
+ if (*name && !isspace ((int)*name))
{
ccunit_dbg ("type mismatch: %s %s", type, name);
return NULL;
for (;;)
{
for (; *name; name ++)
- if (!isspace (*name))
+ if (!isspace ((int)*name))
break;
if (*name)
break;
{
char* tail;
for (tail = name + 1; *tail; tail ++)
- if (isspace (*tail) || *tail == '(')
+ if (isspace ((int)*tail) || *tail == '(')
{
*tail = '\0';
break;