{
while (*s)
{
- if (ISSPACE (*s))
+ if (is_whitespace (*s))
{
char *m = s + 1;
- while (ISSPACE (*m) && *m)
+ while (is_whitespace (*m) && *m)
m++;
memmove (s, m, strlen (m) + 1);
}
static inline char *
skip_space (char * s)
{
- while (ISSPACE (*s))
+ while (is_whitespace (*s))
++s;
return s;
}
{
int size = 0;
- while (*from && ! ISSPACE (*from) && *from != '.' && limit > size)
+ while (*from && ! is_whitespace (*from) && *from != '.' && limit > size)
{
*(to + size) = *from;
from++;
check = true;
break;
- case 0:
- case ' ':
- case '\n':
- case '\r':
- as_warn (_("no size modifier after period, .w assumed"));
- break;
-
default:
+ if (is_whitespace (*line) || is_end_of_stmt(*line))
+ {
+ as_warn (_("no size modifier after period, .w assumed"));
+ break;
+ }
as_bad (_("unrecognised instruction size modifier .%c"),
* line);
return 0;
}
}
- if (*line && ! ISSPACE (*line))
+ if (*line && ! is_whitespace (*line))
{
as_bad (_("junk found after instruction: %s.%s"),
opcode->name, line);