ash: shrink by folding an if check into setprompt; unindent big block
authorDenys Vlasenko <dvlasenk@redhat.com>
Sun, 12 Sep 2010 13:04:27 +0000 (15:04 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Sun, 12 Sep 2010 13:04:27 +0000 (15:04 +0200)
commit958581a8d9583da8b9df0b69123e0c3990f7b3ff
tree607ae2e4129235063fd0a6e270770f4533d20e99
parent6040fe88f4f6286da781dc9196ede4c6be310a04
ash: shrink by folding an if check into setprompt; unindent big block

function                                             old     new   delta
setprompt_if                                           -      66     +66
parseheredoc                                         126     124      -2
parsecmd                                              68      66      -2
redirect                                            1254    1249      -5
xxreadtoken                                          351     343      -8
readtoken1                                          3219    3204     -15
setprompt                                             62       -     -62
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 66/-94)            Total: -28 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
shell/ash.c