char *arch;
arch = input_line_pointer;
- while (*input_line_pointer && !ISSPACE (*input_line_pointer))
+ while (!is_end_of_stmt (*input_line_pointer)
+ && !is_whitespace (*input_line_pointer))
input_line_pointer++;
c = *input_line_pointer;
*input_line_pointer = 0;
} value;
} tic6x_operand;
-#define skip_whitespace(str) do { if (*(str) == ' ') ++(str); } while (0)
+#define skip_whitespace(str) do { if (is_whitespace (*(str))) ++(str); } while (0)
/* Parse a register operand, or part of an operand, starting at *P.
If syntactically OK (including that the number is in the range 0 to
char *output;
p = str;
- while (*p && !is_end_of_line[(unsigned char) *p] && *p != ' ')
+ while (!is_end_of_stmt (*p) && !is_whitespace (*p))
p++;
/* This function should only have been called when there is actually
if (good_func_unit)
{
- if (p[3] == ' ' || is_end_of_line[(unsigned char) p[3]])
+ if (is_whitespace (p[3]) || is_end_of_stmt (p[3]))
p += 3;
else if ((p[3] == 'x' || p[3] == 'X')
- && (p[4] == ' ' || is_end_of_line[(unsigned char) p[4]]))
+ && (is_whitespace (p[4]) || is_end_of_stmt (p[4])))
{
maybe_cross = 1;
p += 4;
else if (maybe_base == tic6x_func_unit_d
&& (p[3] == 't' || p[3] == 'T')
&& (p[4] == '1' || p[4] == '2')
- && (p[5] == ' ' || is_end_of_line[(unsigned char) p[5]]))
+ && (is_whitespace (p[5]) || is_end_of_stmt (p[5])))
{
maybe_data_side = p[4] - '0';
p += 5;