svn commit: trunk/busybox/coreutils

aldot at busybox.net aldot at busybox.net
Thu Jun 7 05:11:24 PDT 2007


Author: aldot
Date: 2007-06-07 05:11:24 -0700 (Thu, 07 Jun 2007)
New Revision: 18766

Log:
- i need this disabled code for testing a patch. Please leave it in.


Modified:
   trunk/busybox/coreutils/diff.c


Changeset:
Modified: trunk/busybox/coreutils/diff.c
===================================================================
--- trunk/busybox/coreutils/diff.c	2007-06-07 10:48:01 UTC (rev 18765)
+++ trunk/busybox/coreutils/diff.c	2007-06-07 12:11:24 UTC (rev 18766)
@@ -748,6 +748,23 @@
 			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 @@
 			fetch(ixnew, lowc, c - 1, f2, ' ');
 		if (ch == 'c' || ch == 'a')
 			fetch(ixnew, c, d, f2, '+');
+#endif
 		lowa = b + 1;
 		lowc = d + 1;
 	}



More information about the busybox-cvs mailing list