hush: remove pointless "next" var, simplify expand_vars_to_list()
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 Jul 2018 12:24:56 +0000 (14:24 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 Jul 2018 14:27:26 +0000 (16:27 +0200)
commit18e8b6129298c02f7b5ccc17fee6bccc01a8968f
tree8b619c709da0259dc759ff6683dcd18fe89f5f72
parent168579a34c6fc6c2f2cd20256367ceb61f50bf68
hush: remove pointless "next" var, simplify expand_vars_to_list()

function                                             old     new   delta
o_addstr                                               -      26     +26
expand_vars_to_list                                 1112    1117      +5
encode_then_expand_vararg                            398     382     -16
parse_dollar                                         779     762     -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 31/-33)             Total: -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c