mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t9.1
This commit is contained in:
14
token.c
14
token.c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user