← Commit list

91cde9591

Denys Vlasenko
Denys Vlasenko
2018-12-10
SUCCESS Duration: 152s

Subject

bc: it's not clear bc_vm_file() always exits on errors, remove ERRORS_ARE_FATAL

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/bc.c+1 -4
@@ -7118,9 +7118,6 @@ err:
free(data);
return s;
}
-#if ERRORS_ARE_FATAL
-# define bc_vm_file(...) (bc_vm_file(__VA_ARGS__), BC_STATUS_SUCCESS)
-#endif
static BcStatus bc_vm_stdin(void)
{
@@ -7421,7 +7418,7 @@ static BcStatus bc_vm_exec(void)
return s;
}
- if (IS_BC || (option_mask32 & BC_FLAG_I))
+ if (IS_BC || (option_mask32 & BC_FLAG_I))
s = bc_vm_stdin();
if (!s && !BC_PARSE_CAN_EXEC(&G.prs))