1/* $OpenBSD: grep.h,v 1.15 2010/04/05 03:03:55 tedu Exp $ */
2/* $FreeBSD: head/usr.bin/grep/grep.h 210389 2010-07-22 19:11:57Z gabor $ */
3
4/*-
5 * Copyright (c) 1999 James Howard and Dag-Erling Co�dan Sm�rgrav
6 * Copyright (c) 2008-2009 Gabor Kovesdan <gabor@FreeBSD.org>
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
--- 44 unchanged lines hidden (view full) ---
55#define BINFILE_BIN 0
56#define BINFILE_SKIP 1
57#define BINFILE_TEXT 2
58
59#define FILE_STDIO 0
60#define FILE_GZIP 1
61#define FILE_BZIP 2
62
63#define DIR_GREP 0
64#define DIR_SKIP 1
65#define DIR_RECURSE 2
66
67#define DEV_GREP 0
68#define DEV_SKIP 1
69
70#define LINK_GREP 0
71#define LINK_EXPLICIT 1
72#define LINK_SKIP 2
73
74#define FILE_PAT 0
75#define DIR_PAT 1
76#define EXCL_PAT 0
77#define INCL_PAT 1
78
--- 36 unchanged lines hidden (view full) ---
115extern int cflags, eflags;
116
117/* Command line flags */
118extern bool Eflag, Fflag, Gflag, Hflag, Lflag,
119 bflag, cflag, hflag, iflag, lflag, mflag, nflag, oflag,
120 qflag, sflag, vflag, wflag, xflag;
121extern bool exclflag, nullflag;
122extern unsigned long long Aflag, Bflag, mcount;
123extern char *color, *label;
124extern int binbehave, devbehave, dirbehave, filebehave, grepbehave, linkbehave;
125
126extern bool first, matchall, notfound, prev;
127extern int tail;
128extern unsigned int epatterns, patterns;
129extern char **pattern;
130extern struct epat *epattern;
131extern regex_t *er_pattern, *r_pattern;
--- 31 unchanged lines hidden ---
2/* $FreeBSD: head/usr.bin/grep/grep.h 210389 2010-07-22 19:11:57Z gabor $ */
3
4/*-
5 * Copyright (c) 1999 James Howard and Dag-Erling Co�dan Sm�rgrav
6 * Copyright (c) 2008-2009 Gabor Kovesdan <gabor@FreeBSD.org>
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
--- 44 unchanged lines hidden (view full) ---
55#define BINFILE_BIN 0
56#define BINFILE_SKIP 1
57#define BINFILE_TEXT 2
58
59#define FILE_STDIO 0
60#define FILE_GZIP 1
61#define FILE_BZIP 2
62
63#define DIR_GREP 0
64#define DIR_SKIP 1
65#define DIR_RECURSE 2
66
67#define DEV_GREP 0
68#define DEV_SKIP 1
69
70#define LINK_GREP 0
71#define LINK_EXPLICIT 1
72#define LINK_SKIP 2
73
74#define FILE_PAT 0
75#define DIR_PAT 1
76#define EXCL_PAT 0
77#define INCL_PAT 1
78
--- 36 unchanged lines hidden (view full) ---
115extern int cflags, eflags;
116
117/* Command line flags */
118extern bool Eflag, Fflag, Gflag, Hflag, Lflag,
119 bflag, cflag, hflag, iflag, lflag, mflag, nflag, oflag,
120 qflag, sflag, vflag, wflag, xflag;
121extern bool exclflag, nullflag;
122extern unsigned long long Aflag, Bflag, mcount;
123extern char *color, *label;
124extern int binbehave, devbehave, dirbehave, filebehave, grepbehave, linkbehave;
125
126extern bool first, matchall, notfound, prev;
127extern int tail;
128extern unsigned int epatterns, patterns;
129extern char **pattern;
130extern struct epat *epattern;
131extern regex_t *er_pattern, *r_pattern;
--- 31 unchanged lines hidden ---