diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-06-17 11:03:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-06-17 11:03:02 +0200 |
commit | 19a74a54ded98b28c672d38b79ea9f313f2d89db (patch) | |
tree | 41898bf80b1518438979d5e7c64787c73f766ba9 /shell/math.h | |
parent | 6221832bc15d9037360e3bdc9405df08ed801cc1 (diff) | |
download | busybox-w32-19a74a54ded98b28c672d38b79ea9f313f2d89db.tar.gz busybox-w32-19a74a54ded98b28c672d38b79ea9f313f2d89db.tar.bz2 busybox-w32-19a74a54ded98b28c672d38b79ea9f313f2d89db.zip |
shell/math: change ?: nesting code to not have 63 level nesting limitation
function old new delta
evaluate_string 1406 1432 +26
arith 36 29 -7
arith_apply 998 990 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 26/-15) Total: 11 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/math.h')
-rw-r--r-- | shell/math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/math.h b/shell/math.h index 9812184f1..439031828 100644 --- a/shell/math.h +++ b/shell/math.h | |||
@@ -57,7 +57,7 @@ typedef const char* FAST_FUNC (*arith_var_lookup_t)(const char *name); | |||
57 | typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *val); | 57 | typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *val); |
58 | 58 | ||
59 | typedef struct arith_state_t { | 59 | typedef struct arith_state_t { |
60 | uint64_t evaluation_disabled; | 60 | unsigned evaluation_disabled; |
61 | const char *errmsg; | 61 | const char *errmsg; |
62 | void *list_of_recursed_names; | 62 | void *list_of_recursed_names; |
63 | arith_var_lookup_t lookupvar; | 63 | arith_var_lookup_t lookupvar; |