Release calc version 2.11.0t9.1

This commit is contained in:
Landon Curt Noll
1999-11-01 10:20:57 -08:00
parent f3fceff1b6
commit ea6b3904be
7 changed files with 77 additions and 41 deletions

14
token.c
View File

@@ -335,22 +335,22 @@ static void
eatcomment(void)
{
int ch;
setprompt(conf->prompt2);
for (;;) {
ch = nextchar();
if (ch == '*') {
ch = nextchar();
if (ch == '/')
return;
break;
reread();
}
if ((ch == EOF) || (ch == '\0') ||
(newlines && (ch == '\n') && inputisterminal())) {
reread();
scanerror(T_NULL, "Unterminated comment");
return;
if (ch == EOF || ch == '\0') {
fprintf(stderr, "Unterminated comment ignored\n");
reread();
break;
}
}
setprompt(conf->prompt1);
}