diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-07 12:11:24 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-07 12:11:24 +0000 |
commit | 1622cb8ceace41b56cf10029233af07256acdae3 (patch) | |
tree | 469ffc3b0fc254a04565ad61bcd2048679387886 | |
parent | e8b2bd4d47817b592c294d02a5dfaf2b81c6f31f (diff) | |
download | busybox-1622cb8ceace41b56cf10029233af07256acdae3.tar.gz |
- i need this disabled code for testing a patch. Please leave it in.
-rw-r--r-- | coreutils/diff.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c index b39a301b9..830c15ea6 100644 --- a/coreutils/diff.c +++ b/coreutils/diff.c @@ -748,6 +748,23 @@ static void dump_unified_vec(FILE * f1, FILE * f2) ch = 'c'; else ch = (a <= b) ? 'd' : 'a'; +#if 0 + switch (ch) { + case 'c': + fetch(ixold, lowa, a - 1, f1, ' '); + fetch(ixold, a, b, f1, '-'); + fetch(ixnew, c, d, f2, '+'); + break; + case 'd': + fetch(ixold, lowa, a - 1, f1, ' '); + fetch(ixold, a, b, f1, '-'); + break; + case 'a': + fetch(ixnew, lowc, c - 1, f2, ' '); + fetch(ixnew, c, d, f2, '+'); + break; + } +#else if (ch == 'c' || ch == 'd') { fetch(ixold, lowa, a - 1, f1, ' '); fetch(ixold, a, b, f1, '-'); @@ -756,6 +773,7 @@ static void dump_unified_vec(FILE * f1, FILE * f2) fetch(ixnew, lowc, c - 1, f2, ' '); if (ch == 'c' || ch == 'a') fetch(ixnew, c, d, f2, '+'); +#endif lowa = b + 1; lowc = d + 1; } |