freebsd-skq/usr.bin/diff
delphij 4b9631678f Improve --strip-trailing-cr handling:
- Advance ctold for f1 and ctnew for f2
 - ungetc() if the character is unexpected
 - Don't break early when we hit the combination on one side

PR:		230049
Reported by:	maskray <emacsray gmail com>
Reviewed by:	bapt, maskray
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D16451
2018-07-27 05:21:20 +00:00
..
tests Improve --strip-trailing-cr handling: 2018-07-27 05:21:20 +00:00
diff.1 Cross reference pr(1) which diff might call with -l option 2017-04-20 19:14:52 +00:00
diff.c Add -H as an alias for --speed-large-file to match GNU diff. 2017-06-02 03:25:59 +00:00
diff.h Implement a basic --changed-group-format 2017-04-20 14:22:33 +00:00
diffdir.c diff: Import fixes from OpenBSD 2018-06-09 21:09:24 +00:00
diffreg.c Improve --strip-trailing-cr handling: 2018-07-27 05:21:20 +00:00
Makefile Isolate the pr(1) related code in its own source files 2018-06-09 20:24:17 +00:00
pr.c Fix memory leak 2018-06-12 16:42:11 +00:00
pr.h Isolate the pr(1) related code in its own source files 2018-06-09 20:24:17 +00:00
TODO Update the TODO list to reflect what has been changed 2017-04-20 19:07:52 +00:00
xmalloc.c
xmalloc.h