[PATCH] bc Version 1.1
Denys Vlasenko
vda.linux at googlemail.com
Fri Nov 30 20:38:29 UTC 2018
On Fri, Nov 30, 2018 at 9:09 PM Denys Vlasenko <vda.linux at googlemail.com> wrote:
> Sorry for the delay in reviewing.
>
> Let's take a look at bc_vm_printf(). Basically:
> bad = vfprintf(f, fmt, args) < 0;
> if (bad) bc_vm_exit(BC_STATUS_IO_ERR);
>
> What does bc_vm_exit() do? -
> static void bc_vm_exit(BcStatus s) {
> bc_vm_printf(stderr, bc_err_fmt, bc_errs[bc_err_ids[s]],
> bc_err_msgs[s]);
> exit((int) s);
> }
In fact, all calls of bc_vm_exit() are called with s == BC_STATUS_IO_ERR.
Thus, bc_errs[bc_err_ids[s]], bc_err_msgs[s] are constants.
More information about the busybox
mailing list