OSDN Git Service

hush: use ash's read builtin
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 12 Jan 2010 22:29:57 +0000 (23:29 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 12 Jan 2010 22:29:57 +0000 (23:29 +0100)
commit03dad22f8a1b8b1410fdcccf69af1bb5cce4de7c
treeb134cbc7f0afbf76c54847624310e6a1d2774f83
parent045f4ad92c07434625e168bc8c37aa0e89f6e58e
hush: use ash's read builtin

function                                             old     new   delta
shell_builtin_read                                     -    1000   +1000
set_local_var_from_halves                              -      24     +24
setvar2                                                -       7      +7
...
popstring                                            140     134      -6
ash_main                                            1375    1368      -7
setvar                                               184     174     -10
arith_set_local_var                                   36       -     -36
builtin_read                                        1096     185    -911
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 5/23 up/down: 1038/-1007)        Total: 31 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
18 files changed:
shell/Kbuild
shell/ash.c
shell/builtin_read.c
shell/builtin_read.h
shell/hush.c
shell/hush_test/hush-read/read_REPLY.right [new file with mode: 0644]
shell/hush_test/hush-read/read_REPLY.tests [new file with mode: 0755]
shell/hush_test/hush-read/read_ifs.right [new file with mode: 0644]
shell/hush_test/hush-read/read_ifs.tests [new file with mode: 0755]
shell/hush_test/hush-read/read_n.right [new file with mode: 0644]
shell/hush_test/hush-read/read_n.tests [new file with mode: 0755]
shell/hush_test/hush-read/read_r.right [new file with mode: 0644]
shell/hush_test/hush-read/read_r.tests [new file with mode: 0755]
shell/hush_test/hush-read/read_t.right [new file with mode: 0644]
shell/hush_test/hush-read/read_t.tests [new file with mode: 0755]
shell/match.h
shell/math.c
shell/math.h