History log of /freebsd-current/usr.bin/sdiff/edit.c
Revision Date Author Comments
# 5e3934b1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# db1fcc80 15-Oct-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Move cleanup() into the edit.c file which is the only users of that function
Remove common.{c,h}


# e8ad1a6f 15-Oct-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Turn editit into a static function


# 1ddda798 07-May-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Revert r299218 VISUAL is actually a perfecly valid env to specify an editor


# 041db576 07-May-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Only use EDITOR as a variable to specify which text editor to use


# 15eaa1ae 07-May-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Directly call the editor if needed instead of spawning /bin/sh


# 13b5b548 29-Apr-2016 Baptiste Daroussin <bapt@FreeBSD.org>

import sdiff(1) from GSoC 2012

Import sdiff(1) from the diff version written by Raymond Lai,
improved during GSoC 2012 by Jesse Hagewood.

Compared to the version done in during that summer of code:
- Remove the zlib frontend: zsdiff
- Compatible output (column size and separators) with GNU sdiff

Compared to GNU sdiff in ports:
- The only difference is padding using spaces vs tabs

Compared to OpenBSD and NetBSD import:
- Implement missing options (including long options) from GNU sdiff
- Improved support for the edition mode (signal handling)
- Output visually compatible with GNU sdiff: size of columns

While here import regression tests from NetBSD adapted to fit the output as
expected by GNU sdiff

Reviewed by: emaste (in part)
Obtained from: OpenBSD, NetBSD, GSoC 2012
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D5981
Differential Revision: https://reviews.freebsd.org/D6032 (diff with NetBSD version)
Differential Revision: https://reviews.freebsd.org/D6033 (diff with OpenBSD version)