Wherever blanks are permissible in input, tabs ought to be permissible,
too. This is particularly relevant when -f is passed to gas (alongside
appropriate input). At the same time use is_end_of_stmt() instead of
open-coded nul char checks.
{
switch (*input_line_pointer)
{
- case ' ':
- case '\0':
- goto fini;
-
case '.':
input_line_pointer++;
if (saw_dot)
break;
default:
+ if (is_end_of_stmt (*input_line_pointer)
+ || is_whitespace (*input_line_pointer))
+ goto fini;
+
if (saw_flg && !saw_dot)
goto err;
/* Scan up to the end of the mnemonic which must end in space or end
of string. */
str += opnamelen;
- for (; *str != '\0'; str++)
- if (*str == ' ')
+ for (; !is_end_of_stmt (*str); str++)
+ if (is_whitespace (*str))
break;
/* Tokenize the rest of the line. */