aboutsummaryrefslogtreecommitdiff
path: root/shell/math.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-06-17 10:40:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2023-06-17 10:40:29 +0200
commit6221832bc15d9037360e3bdc9405df08ed801cc1 (patch)
tree1bed0a30a665f8c57f588888720b908d76dcaf14 /shell/math.c
parentd6f98f214b3bd242f7404b68a4f9d777114fffa3 (diff)
downloadbusybox-w32-6221832bc15d9037360e3bdc9405df08ed801cc1.tar.gz
busybox-w32-6221832bc15d9037360e3bdc9405df08ed801cc1.tar.bz2
busybox-w32-6221832bc15d9037360e3bdc9405df08ed801cc1.zip
shell/math.h: update comments, rearrange struct members for smaller code
function old new delta arith_apply 1000 998 -2 evaluate_string 1414 1406 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-10) Total: -10 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/math.c')
-rw-r--r--shell/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/math.c b/shell/math.c
index 56f866bf2..6196a6ad9 100644
--- a/shell/math.c
+++ b/shell/math.c
@@ -926,9 +926,9 @@ dbg(" numstack:%d val:%lld '%s'", (int)(numstackptr - numstack), numstackptr[
926arith_t FAST_FUNC 926arith_t FAST_FUNC
927arith(arith_state_t *math_state, const char *expr) 927arith(arith_state_t *math_state, const char *expr)
928{ 928{
929 math_state->evaluation_disabled = 0;
929 math_state->errmsg = NULL; 930 math_state->errmsg = NULL;
930 math_state->list_of_recursed_names = NULL; 931 math_state->list_of_recursed_names = NULL;
931 math_state->evaluation_disabled = 0;
932 return evaluate_string(math_state, expr); 932 return evaluate_string(math_state, expr);
933} 933}
934 934