From c42aed393163dc59fed20be357abb1e4a21a3996 Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 25 Jun 2003 17:49:22 +0000 Subject: o use getopt() o use err/warn o only call done() when needed (after mkstemp) o add "-C lines" like GNU grep OK deraadt@ --- usr.bin/diff/diff.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'usr.bin/diff/diff.h') diff --git a/usr.bin/diff/diff.h b/usr.bin/diff/diff.h index f8a373a88c8..b49f5cd8264 100644 --- a/usr.bin/diff/diff.h +++ b/usr.bin/diff/diff.h @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.h,v 1.5 2003/06/25 07:26:59 tedu Exp $ */ +/* $OpenBSD: diff.h,v 1.6 2003/06/25 17:49:22 millert Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -40,12 +40,14 @@ * diff - common declarations */ -#include -#include #include #include #include + +#include +#include #include +#include /* * Output format options @@ -56,8 +58,9 @@ int opt; #define D_EDIT -1 /* Editor script out */ #define D_REVERSE 1 /* Reverse editor script */ #define D_CONTEXT 2 /* Diff with context */ -#define D_IFDEF 3 /* Diff with merged #ifdef's */ -#define D_NREVERSE 4 /* Reverse ed script with numbered +#define D_UNIFIED 3 /* Unified context diff */ +#define D_IFDEF 4 /* Diff with merged #ifdef's */ +#define D_NREVERSE 5 /* Reverse ed script with numbered lines and no trailing . */ int tflag; /* expand tabs on output */ @@ -117,10 +120,10 @@ void *talloc(size_t); void *ralloc(void *, size_t); char *splice(char *, char *); char *copytemp(void); -void done(int); void diffdir(char **); void diffreg(void); int max(int, int); int min(int, int); +__dead void done(int); extern char diffh[], diff[], pr[]; -- cgit v1.2.3-59-g8ed1b