patch: busyboxify by migrating from toybox to busybox helpers

function                                             old     new   delta
get_line                                              90     128     +38
bbconfig_config_bz2                                 4959    4965      +6
makedevs_main                                       1038    1035      -3
fail_hunk                                            133     130      -3
finish_oldfile                                       174     124     -50
patch_main                                          2066    1987     -79
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135)           Total: -91 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-11-21 05:53:34 +01:00
parent f718e3a0db
commit b82ae98ea4
2 changed files with 83 additions and 158 deletions

View File

@@ -75,7 +75,7 @@ zxc
testing "patch detects already applied hunk" \
'patch 2>&1; echo $?; cat input' \
"\
Possibly reversed hunk 1 at 2
Possibly reversed hunk 1 at 4
Hunk 1 FAILED 1/1.
abc
+def
@@ -103,7 +103,7 @@ def
testing "patch detects already applied hunk at the EOF" \
'patch 2>&1; echo $?; cat input' \
"\
Possibly reversed hunk 1 at 3
Possibly reversed hunk 1 at 4
Hunk 1 FAILED 1/1.
abc
123