if (n <= 0) { // read errors or EOF, or ^D, or ^C
if (n == 0) // ^C
goto intr;
- break;
+ bc_vec_pushZeroByte(vec);
+ return;
}
i = 0;
for (;;) {
l->newline = false;
}
-static BC_STATUS zbc_lex_token(BcLex *l);
-static BC_STATUS zdc_lex_token(BcLex *l);
+IF_BC(static BC_STATUS zbc_lex_token(BcLex *l);)
+IF_DC(static BC_STATUS zdc_lex_token(BcLex *l);)
static BC_STATUS zcommon_lex_token(BcLex *l)
{
(*prev) = BC_INST_NUM;
}
-static BC_STATUS zbc_parse_parse(BcParse *p);
-static BC_STATUS zdc_parse_parse(BcParse *p);
+IF_BC(static BC_STATUS zbc_parse_parse(BcParse *p);)
+IF_DC(static BC_STATUS zdc_parse_parse(BcParse *p);)
static BC_STATUS zcommon_parse(BcParse *p)
{