PERFORCE change 179447 for review
Benjamin Fiedler
bfiedler at FreeBSD.org
Fri Jun 11 01:14:54 UTC 2010
http://p4web.freebsd.org/@@179447?ac=10
Change 179447 by bfiedler at freebsd-7803 on 2010/06/11 01:14:46
Attempting to implement 'B' flag
Affected files ...
.. //depot/projects/soc2010/bsdtextproc/diff/diffreg.c#3 edit
Differences ...
==== //depot/projects/soc2010/bsdtextproc/diff/diffreg.c#3 (text+ko) ====
@@ -570,7 +570,11 @@
sz = sz * 3 / 2;
p = erealloc(p, (sz + 3) * sizeof(struct line));
}
- p[++j].value = h;
+
+ /* ignore blank lines (also EOF)*/
+ if( !(Bflag && h == 1) ) {
+ p[++j].value = h;
+ }
}
len[i] = j;
file[i] = p;
More information about the p4-projects
mailing list