patch: simplify double list helpers
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 21 Nov 2010 04:54:28 +0000 (05:54 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 21 Nov 2010 04:54:28 +0000 (05:54 +0100)
commit400ff226c2e20486b16759a7351ebf678ac327cf
treebebba62f06ed8ed19caab9daee3f91c9045456e5
parentb82ae98ea4d5216d20a5deedab2aa6153562337b
patch: simplify double list helpers

function                                             old     new   delta
dlist_free                                             -      29     +29
fail_hunk                                            130     132      +2
patch_main                                          1987    1982      -5
dlist_add                                             59      54      -5
TOY_llist_pop                                          9       -      -9
TOY_llist_free                                        54       -     -54
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/2 up/down: 31/-73)            Total: -42 bytes

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