/* Read from stdin into 'input'. */
input = (!strcmp (file_name, "-")
- ? fread_file (stdin, &length)
- : read_file (file_name, &length));
+ ? fread_file (stdin, 0, &length)
+ : read_file (file_name, 0, &length));
if (input == NULL)
error (EXIT_FAILURE, errno, "reading %s failed", file_name);
length--;
}
- string_lexer_init (&slex, input, length, mode);
+ string_lexer_init (&slex, input, length, mode, false);
do
{
struct token token;
printf (" \"%.*s\"", (int) token.string.length, token.string.string);
printf ("\n");
- token_destroy (&token);
+ token_uninit (&token);
}
while (more);