case ',':
comma = 1;
- /* Fall through. */
-
- case ' ':
*s++ = '\0';
break;
default:
+ if (is_whitespace (*s))
+ {
+ *s++ = '\0';
+ break;
+ }
as_bad (_("Unknown opcode: `%s'"), str);
*pinsn = NULL;
return special_case;
goto error;
}
kmask |= jmask;
- while (*s == ' ')
+ while (is_whitespace (*s))
++s;
if (*s == '|' || *s == '+')
++s;
- while (*s == ' ')
+ while (is_whitespace (*s))
++s;
}
}
goto immediate;
case ')':
- if (*s == ' ')
+ if (is_whitespace (*s))
s++;
if ((s[0] == '0' && s[1] == 'x' && ISXDIGIT (s[2]))
|| ISDIGIT (*s))
break;
case 'z':
- if (*s == ' ')
+ if (is_whitespace (*s))
{
++s;
}
break;
case 'Z':
- if (*s == ' ')
+ if (is_whitespace (*s))
{
++s;
}
break;
case '6':
- if (*s == ' ')
+ if (is_whitespace (*s))
{
++s;
}
break;
case '7':
- if (*s == ' ')
+ if (is_whitespace (*s))
{
++s;
}
break;
case '8':
- if (*s == ' ')
+ if (is_whitespace (*s))
{
++s;
}
break;
case '9':
- if (*s == ' ')
+ if (is_whitespace (*s))
{
++s;
}
case '[': /* These must match exactly. */
case ']':
case ',':
- case ' ':
if (*s++ == *args)
continue;
break;
+ case ' ':
+ if (is_whitespace (*s++))
+ continue;
+ break;
+
case '#': /* Must be at least one digit. */
if (ISDIGIT (*s++))
{
/* fallthrough */
immediate:
- if (*s == ' ')
+ if (is_whitespace (*s))
s++;
{