bc: add preparatory indent block, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-12-06 10:26:13 +01:00
parent 1a6a482d19
commit ed849351d1

View File

@ -1216,12 +1216,11 @@ static BcStatus bc_read_line(BcVec *vec, const char *prompt)
, stderr);
}
#endif
{
if (G_ttyin && !G_posix)
fputs(prompt, stderr);
#if ENABLE_FEATURE_BC_SIGNALS
errno = 0;
#endif
IF_FEATURE_BC_SIGNALS(errno = 0;)
do {
i = fgetc(stdin);
if (i == EOF) {
@ -1251,6 +1250,7 @@ static BcStatus bc_read_line(BcVec *vec, const char *prompt)
}
bc_vec_pushByte(vec, (char)i);
} while (i != '\n');
}
} while (bad_chars);
bc_vec_pushZeroByte(vec);