freebsd-src/usr.bin/diff
Tom Jones 4be7d087c2 diff: Use start of change when searching for function
Use the start of change when searching for a function rather than the
start of the context. In short functions if this could result in search
for the function name starting from before the function definition.

PR:		262086
Reviewed by:	bapt, mckusick, mhorne
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D34328
2022-03-01 13:27:21 +00:00
..
tests Temporarily skip usr.bin.diff.diff_test.functionname in CI 2022-02-21 16:31:43 +08:00
diff.1 diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
diff.c diff: add --no-dereference flag 2022-02-18 15:17:13 +00:00
diff.h diff: add --no-dereference flag 2022-02-18 15:17:13 +00:00
diffdir.c diff: fix failed compare when ignoring file case 2022-02-18 15:51:38 +00:00
diffreg.c diff: Use start of change when searching for function 2022-03-01 13:27:21 +00:00
Makefile diff: link with libm for sqrt() 2021-09-16 09:31:44 +02: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 diff(1) TODO removing what has been implemented 2020-02-07 10:18:01 +00:00
xmalloc.c asprintf returns -1, not an arbitrary value < 0. Also upon error the 2020-01-14 08:18:04 +00:00
xmalloc.h