aboutsummaryrefslogtreecommitdiff
path: root/contrib/libdiff/lib
Commit message (Collapse)AuthorAgeFilesLines
* libdiff: Implement diff coloring.Dag-Erling Smørgrav2024-10-021-13/+56
| | | | | | | | | | This patch got accidentally left out when libdiff was imported. The rest of the code (command-line option etc.) was present, just not the part that actually prints ANSI color codes. Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D46873
* libdiff: Detect and recover from file truncation.Dag-Erling Smørgrav2024-05-201-5/+30
| | | | | | | | | | | If a memory-mapped file is truncated before we get to the end, the atomizer may catch SIGBUS. Detect that, reduce the input length to what we were actually able to read, and set a flag so the caller can take further action (e.g. warn the user and / or start over). Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D45217
* libdiff: More type issues.Dag-Erling Smørgrav2024-05-031-12/+12
| | | | | | Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D45080
* libdiff: Fix type issues.Dag-Erling Smørgrav2024-05-031-2/+3
| | | | | | | MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude, markj Differential Revision: https://reviews.freebsd.org/D45077
* libdiff: Improve function prototype detection.Dag-Erling Smørgrav2024-03-273-17/+18
| | | | | | | | | - Recognize ObjC methods. - Start searching within the leading context. Sponsored by: Klara, Inc. Reviewed by: thj Differential Revision: https://reviews.freebsd.org/D44301
* Add 'contrib/libdiff/' from commit '9eb461aa4b61ab47855b2cee9e5b626a76888b5e'Dag-Erling Smørgrav2024-03-1111-0/+4756
git-subtree-dir: contrib/libdiff git-subtree-mainline: f6d489f402c320f1a6eaa473491a0b8c3878113e git-subtree-split: 9eb461aa4b61ab47855b2cee9e5b626a76888b5e Reviewed by: imp Sponsored by: Klara, Inc.