From 6e18f850405e4ce784c344ca4202e782f4f51254 Mon Sep 17 00:00:00 2001 From: otto Date: Sun, 27 Jul 2003 07:39:52 +0000 Subject: - Use a heuristic to bound memory and cpu usage, at the cost of producing suboptimal diffs for large file containing lots of changes. Switch heuristic off with -d/--minimal (GNU compatible). Some hints from millert@. - Improve performance by reducing the number of realloc(3) calls. ok millert@ tedu@ --- usr.bin/diff/diff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/diff/diff.h') diff --git a/usr.bin/diff/diff.h b/usr.bin/diff/diff.h index 4ac9d45c62e..fd60b13da2d 100644 --- a/usr.bin/diff/diff.h +++ b/usr.bin/diff/diff.h @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.h,v 1.21 2003/07/22 01:16:01 millert Exp $ */ +/* $OpenBSD: diff.h,v 1.22 2003/07/27 07:39:52 otto Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -68,7 +68,7 @@ struct excludes { struct excludes *next; }; -extern int aflag, bflag, iflag, lflag, Nflag, Pflag, rflag, sflag, +extern int aflag, bflag, dflag, iflag, lflag, Nflag, Pflag, rflag, sflag, tflag, Tflag, wflag; extern int format, context, status, anychange; extern char *start, *ifdefname, *diffargs, *label; -- cgit v1.2.3-59-g8ed1b