From owner-svn-soc-all@FreeBSD.ORG Tue Jul 10 19:38:30 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 24356106564A for ; Tue, 10 Jul 2012 19:38:28 +0000 (UTC) (envelope-from jhagewood@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Tue, 10 Jul 2012 19:38:28 +0000 Date: Tue, 10 Jul 2012 19:38:28 +0000 From: jhagewood@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120710193828.24356106564A@hub.freebsd.org> Cc: Subject: socsvn commit: r239250 - in soc2012/jhagewood/sdiff: . sdiff X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2012 19:38:30 -0000 Author: jhagewood Date: Tue Jul 10 19:38:27 2012 New Revision: 239250 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=239250 Log: Modified: soc2012/jhagewood/sdiff/hagewood-sdiff.patch soc2012/jhagewood/sdiff/sdiff/sdiff.c Modified: soc2012/jhagewood/sdiff/hagewood-sdiff.patch ============================================================================== --- soc2012/jhagewood/sdiff/hagewood-sdiff.patch Tue Jul 10 19:21:07 2012 (r239249) +++ soc2012/jhagewood/sdiff/hagewood-sdiff.patch Tue Jul 10 19:38:27 2012 (r239250) @@ -112,7 +112,7 @@ + diff -rupN jhagewood/sdiff/sdiff-orig/sdiff.c jhagewood/sdiff/sdiff/sdiff.c --- jhagewood/sdiff/sdiff-orig/sdiff.c 2012-07-07 19:37:22.000000000 -0400 -+++ jhagewood/sdiff/sdiff/sdiff.c 2012-07-10 19:20:43.000000000 -0400 ++++ jhagewood/sdiff/sdiff/sdiff.c 2012-07-10 19:38:25.000000000 -0400 @@ -5,6 +5,14 @@ * Public domain. */ @@ -264,7 +264,7 @@ case DIFFPROG_OPT: diffargv[0] = diffprog = optarg; break; -@@ -289,26 +324,23 @@ main(int argc, char **argv) +@@ -289,32 +324,27 @@ main(int argc, char **argv) if (errstr) errx(2, "width is %s: %s", errstr, optarg); break; @@ -294,9 +294,17 @@ - + /* no single switches were used */ - if( strcmp( diffargv[1], "-" ) == 0 ) - { -@@ -362,19 +394,19 @@ main(int argc, char **argv) +- if( strcmp( diffargv[1], "-" ) == 0 ) +- { ++ if (strcmp(diffargv[1], "-") == 0 ) { + int i; +- for(i=1; ileft); + free(diffp->right); + free(diffp); +@@ -1103,24 +1125,23 @@ printd(FILE *file1, size_t file1end) static void int_usage(void) { @@ -403,6 +419,7 @@ - "r | 2:\tchoose right diff\n" - "s:\tsilent mode--don't print identical lines\n" - "v:\tverbose mode--print identical lines\n" ++ + printf("%s", "e:\tedit blank diff\n", + "eb:\tedit both diffs concatenated\n", + "el:\tedit left diff\n", Modified: soc2012/jhagewood/sdiff/sdiff/sdiff.c ============================================================================== --- soc2012/jhagewood/sdiff/sdiff/sdiff.c Tue Jul 10 19:21:07 2012 (r239249) +++ soc2012/jhagewood/sdiff/sdiff/sdiff.c Tue Jul 10 19:38:27 2012 (r239250) @@ -342,11 +342,9 @@ } /* no single switches were used */ - if( strcmp( diffargv[1], "-" ) == 0 ) - { + if (strcmp(diffargv[1], "-") == 0 ) { int i; - for(i=1; ileft); free(diffp->right); free(diffp); @@ -1127,6 +1125,7 @@ static void int_usage(void) { + printf("%s", "e:\tedit blank diff\n", "eb:\tedit both diffs concatenated\n", "el:\tedit left diff\n",