{
if ('0' <= str[*begin - i] && str[*begin - i] <= '9')
last_imm_p = 1;
- else if (str[*begin - i] != ' ' && str[*begin - i] != '\t')
+ else if (!is_whitespace (str[*begin - i]))
break;
}
/* Eat up all leading spaces. */
- while (str[*begin] && (str[*begin] == ' ' || str[*begin] == '\n'))
+ while (str[*begin] && (is_whitespace (str[*begin]) || str[*begin] == '\n'))
*begin += 1;
*end = *begin;
}
if (str[*begin] == '.'
- && (!(*begin > 0 && (str[*begin - 1] == ' ' || is_delim(str[*begin - 1])))
+ && (!(*begin > 0
+ && (is_whitespace (str[*begin - 1])
+ || is_delim (str[*begin - 1])))
|| last_imm_p))
modifier_p = 1;
*end += 1;
/* Stop when reaching the start of the new token. */
- while (!(!str[*end] || is_delim (str[*end]) || str[*end] == ' ' || (modifier_p && str[*end] == '.')))
+ while (!(!str[*end] || is_delim (str[*end]) || is_whitespace (str[*end])
+ || (modifier_p && str[*end] == '.')))
*end += 1;
}
if (get_byte_counter (now_seg) & 3)
as_fatal ("code segment not word aligned in md_assemble");
- while (line_cursor && line_cursor[0] && (line_cursor[0] == ' '))
+ while (is_whitespace (line_cursor[0]))
line_cursor++;
/* ;; was converted to "be" by line hook */
{
char *t;
- for (t = input_line_pointer; t && t[0] == ' '; t++);
+ for (t = input_line_pointer; is_whitespace (t[0]); t++);
/* Detect illegal syntax patterns:
* - two bundle ends on the same line: ;; ;;
while (tmp_t && tmp_t[0])
{
while (tmp_t && tmp_t[0] &&
- ((tmp_t[0] == ' ') || (tmp_t[0] == '\n')))
+ (is_whitespace (tmp_t[0]) || is_end_of_stmt (tmp_t[0])))
{
- if (tmp_t[0] == '\n')
+ if (is_end_of_stmt (tmp_t[0]))
newline_seen = true;
tmp_t++;
}