X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/97a033f1d6addb0c5b62e5443b543a142b92bb9f..e89d95f1909c0972b0e854ae05f50246f4d727d6:/test/src/cf.c?ds=sidebyside diff --git a/test/src/cf.c b/test/src/cf.c index 8931ba6c4..2b982f10f 100644 --- a/test/src/cf.c +++ b/test/src/cf.c @@ -1,5 +1,3 @@ -/* $Cambridge: exim/test/src/cf.c,v 1.1 2006/02/06 16:24:05 ph10 Exp $ */ - /************************************************ * PH-Compare * ************************************************/ @@ -43,6 +41,7 @@ Translated back into C, March 1990! */ #define version 8 #define defaultstore 100000 /* default recovery buffer size */ #define minstore 500 /* minimum recovery buffer size */ +#define SHOWMAX 20 /* maximum number of diff lines to display */ /* ----- misc defines ----- */ @@ -260,11 +259,11 @@ else if (t1 < 0 && t2 < 0) if (echo) { rule('-', 10); - if (-t1-s1 < 21) write_lines(rootline_one, tline_one); - else fprintf(f_out, "... ...\n"); + if (-t1-s1 < SHOWMAX+1) write_lines(rootline_one, tline_one); + else fprintf(f_out, "... ...\n", SHOWMAX); rule('-', 10); - if (-t2-s2 < 21) write_lines(rootline_two, tline_two); - else fprintf(f_out, "... ...\n"); + if (-t2-s2 < SHOWMAX+1) write_lines(rootline_two, tline_two); + else fprintf(f_out, "... ...\n", SHOWMAX); } }