summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.h
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-06-26 00:20:48 +0000
committertedu <tedu@openbsd.org>2003-06-26 00:20:48 +0000
commitd5d5ac6c9eb5f8e5c0a8801901edadfcff60fb9e (patch)
treef19412b3f9e1bf0c4471b4a0bb3640f1b8360175 /usr.bin/diff/diff.h
parenttwo missing protos (diff)
downloadwireguard-openbsd-d5d5ac6c9eb5f8e5c0a8801901edadfcff60fb9e.tar.xz
wireguard-openbsd-d5d5ac6c9eb5f8e5c0a8801901edadfcff60fb9e.zip
put all the flags and globals in diff.c, and declare externs in diff.h
ok millert@
Diffstat (limited to 'usr.bin/diff/diff.h')
-rw-r--r--usr.bin/diff/diff.h65
1 files changed, 8 insertions, 57 deletions
diff --git a/usr.bin/diff/diff.h b/usr.bin/diff/diff.h
index a6985add4bc..261a8e475f4 100644
--- a/usr.bin/diff/diff.h
+++ b/usr.bin/diff/diff.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.h,v 1.7 2003/06/25 21:43:49 millert Exp $ */
+/* $OpenBSD: diff.h,v 1.8 2003/06/26 00:20:48 tedu Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -51,8 +51,6 @@
/*
* Output format options
*/
-int opt;
-
#define D_NORMAL 0 /* Normal output */
#define D_EDIT -1 /* Editor script out */
#define D_REVERSE 1 /* Reverse editor script */
@@ -62,58 +60,13 @@ int opt;
#define D_NREVERSE 5 /* Reverse ed script with numbered
lines and no trailing . */
-int tflag; /* expand tabs on output */
-
-/*
- * Algorithm related options
- */
-int hflag; /* -h, use halfhearted DIFFH */
-int bflag; /* ignore blanks in comparisons */
-int wflag; /* totally ignore blanks in comparisons */
-int iflag; /* ignore case in comparisons */
-
-/*
- * Options on hierarchical diffs.
- */
-int lflag; /* long output format with header */
-int rflag; /* recursively trace directories */
-int sflag; /* announce files which are same */
-char *start; /* do file only if name >= this */
-
-/*
- * Variables for -I D_IFDEF option.
- */
-int wantelses; /* -E */
-char *ifdef1; /* String for -1 */
-char *ifdef2; /* String for -2 */
-char *endifname; /* What we will print on next #endif */
-int inifdef;
-
-/*
- * Variables for -c context option.
- */
-int context; /* lines of context to be printed */
-
-/*
- * State for exit status.
- */
-int status;
-int anychange;
-char *tempfile; /* used when comparing against std input */
-
-/*
- * Variables for diffdir.
- */
-char **diffargv; /* option list to pass to recursive diffs */
-
-/*
- * Input file names.
- * With diffdir, file1 and file2 are allocated BUFSIZ space,
- * and padded with a '/', and then efile0 and efile1 point after
- * the '/'.
- */
-char *file1, *file2, *efile1, *efile2;
-struct stat stb1, stb2;
+extern int aflag, bflag, hflag, iflag, lflag, rflag, sflag, tflag, wflag;
+extern char *start, *ifdef1, *ifdef2, *endifname;
+extern int opt, wantelses, inifdef, context, status, anychange;
+extern char *tempfile, **diffargv;
+extern char *file1, *file2, *efile1, *efile2;
+extern struct stat stb1, stb2;
+extern char diffh[], diff[], pr[];
void *emalloc(size_t);
void *erealloc(void *, size_t);
@@ -124,5 +77,3 @@ void diffreg(void);
int max(int, int);
int min(int, int);
__dead void done(int);
-
-extern char diffh[], diff[], pr[];