diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-08-10 21:28:49 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-08-10 21:28:49 +0000 |
commit | 5eb11a7915208c383a6daeccb907fddee5508bff (patch) | |
tree | 7426b0bf81f987a35382d1be7fb757145f2a9652 /usr.bin/patch/common.h | |
parent | 1685ecf08523f032e95946f4748a67938a1ded86 (diff) |
Do not add an extra newline at the end if the last line of the input
file contains no newline and the diff does not touch the last line.
Contributions from millert@.
ok millert@ tedu@
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r-- | usr.bin/patch/common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h index 9e49c26ad18..b76dc15d072 100644 --- a/usr.bin/patch/common.h +++ b/usr.bin/patch/common.h @@ -1,4 +1,4 @@ -/* $OpenBSD: common.h,v 1.22 2003/08/01 20:30:48 otto Exp $ */ +/* $OpenBSD: common.h,v 1.23 2003/08/10 21:28:48 otto Exp $ */ #include <stdbool.h> @@ -71,6 +71,7 @@ extern bool canonicalize; /* TRUE if -C was specified on command line. */ extern bool check_only; extern bool warn_on_invalid_line; +extern bool last_line_missing_eol; #define CONTEXT_DIFF 1 |