diff options
author | Denys Vlasenko | 2010-09-13 12:49:52 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-09-13 12:49:52 +0200 |
commit | 0eac8ff1648f94a79a0e21731ec993dd73d946db (patch) | |
tree | e042b1fa115124dc7df79c143fac2de7ce9e128a /shell/math.h | |
parent | 06d44d7dfb709bfe02e74d187cceb8591bbda3b4 (diff) | |
download | busybox-0eac8ff1648f94a79a0e21731ec993dd73d946db.zip busybox-0eac8ff1648f94a79a0e21731ec993dd73d946db.tar.gz |
shell/math.c: stop using bss variable
function old new delta
evaluate_string - 678 +678
expand_one_var 1543 1563 +20
builtin_type 114 116 +2
expand_and_evaluate_arith 89 87 -2
prev_chk_var_recursive 4 - -4
ash_arith 122 118 -4
arith_lookup_val 142 132 -10
arith 674 12 -662
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 700/-682) Total: 18 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell/math.h')
-rw-r--r-- | shell/math.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/math.h b/shell/math.h index 9f3da7f..e34b65d 100644 --- a/shell/math.h +++ b/shell/math.h @@ -95,13 +95,14 @@ typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *v //typedef const char* FAST_FUNC (*arith_var_endofname_t)(const char *name); typedef struct arith_state_t { + int errcode; arith_var_lookup_t lookupvar; arith_var_set_t setvar; // arith_var_endofname_t endofname; - int errcode; + void *list_of_recursed_names; } arith_state_t; -arith_t arith(arith_state_t *state, const char *expr); +arith_t FAST_FUNC arith(arith_state_t *state, const char *expr); POP_SAVED_FUNCTION_VISIBILITY |