xref: /original-bsd/bin/pax/pat_rep.h (revision 3631e65b)
1c289a550Smuller /*-
2c289a550Smuller  * Copyright (c) 1992 Keith Muller.
3*3631e65bSbostic  * Copyright (c) 1992, 1993
4*3631e65bSbostic  *	The Regents of the University of California.  All rights reserved.
5c289a550Smuller  *
6c289a550Smuller  * This code is derived from software contributed to Berkeley by
7c289a550Smuller  * Keith Muller of the University of California, San Diego.
8c289a550Smuller  *
9c289a550Smuller  * %sccs.include.redist.c%
10c289a550Smuller  *
11*3631e65bSbostic  *	@(#)pat_rep.h	8.1 (Berkeley) 05/31/93
12c289a550Smuller  */
13c289a550Smuller 
14c289a550Smuller /*
15c289a550Smuller  * data structure for storing user supplied replacement strings (-s)
16c289a550Smuller  */
17c289a550Smuller typedef struct replace {
18c289a550Smuller 	char		*nstr;	/* the new string we will substitute with */
19c289a550Smuller #	ifdef NET2_REGEX
20c289a550Smuller 	regexp		*rcmp;	/* compiled regular expression used to match */
21c289a550Smuller #	else
22c289a550Smuller 	regex_t		rcmp;	/* compiled regular expression used to match */
23c289a550Smuller #	endif
24c289a550Smuller 	int		flgs;	/* print conversions? global in operation?  */
25c289a550Smuller #define	PRNT		0x1
26c289a550Smuller #define	GLOB		0x2
27c289a550Smuller 	struct replace	*fow;	/* pointer to next pattern */
28c289a550Smuller } REPLACE;
29