ed: large cleanup
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 25 Sep 2007 11:55:57 +0000 (11:55 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 25 Sep 2007 11:55:57 +0000 (11:55 +0000)
commit2e478fcfb1e0169ac8b0af1c91215acbcd9ebb64
tree0524b8ff17be49d32a88250a6b899e35b0d000d3
parent5e2856097b9643c8379b0e48428248664a47d43e
ed: large cleanup

function                                             old     new   delta
bad_nums                                               -      43     +43
skip_blank                                             -      24     +24
getNum                                               557     578     +21
insertLine                                           159     163      +4
setCurNum                                             31      33      +2
lastNum                                                4       -      -4
fileName                                               4       -      -4
dirty                                                  4       -      -4
curNum                                                 4       -      -4
curLine                                                4       -      -4
bufUsed                                                4       -      -4
bufSize                                                4       -      -4
bufPtr                                                 4       -      -4
bufBase                                                4       -      -4
printLines                                           357     345     -12
findLine                                             165     152     -13
lines                                                 16       -     -16
deleteLines                                          203     144     -59
readLines                                            538     473     -65
addLines                                             163      87     -76
marks                                                104       -    -104
termEdit                                             140       -    -140
ed_main                                             3125    2654    -471
------------------------------------------------------------------------------
(add/remove: 2/12 grow/shrink: 3/6 up/down: 94/-992)         Total: -898 bytes
   text    data     bss     dec     hex filename
 771142    1034   10564  782740   bf194 busybox_old
 770265    1034   10404  781703   bed87 busybox_unstripped

# size */ed.o
   text    data     bss     dec     hex filename
   6370       0     156    6526    197e editors.org/ed.o
   5505       0       0    5505    1581 editors/ed.o

git-svn-id: svn://busybox.net/trunk/busybox@20010 69ca8d6d-28ef-0310-b511-8ec308f3f277
editors/ed.c