xref: /csrg-svn/bin/pax/pat_rep.h (revision 60676)
157118Smuller /*-
257118Smuller  * Copyright (c) 1992 Keith Muller.
3*60676Sbostic  * Copyright (c) 1992, 1993
4*60676Sbostic  *	The Regents of the University of California.  All rights reserved.
557118Smuller  *
657118Smuller  * This code is derived from software contributed to Berkeley by
757118Smuller  * Keith Muller of the University of California, San Diego.
857118Smuller  *
957118Smuller  * %sccs.include.redist.c%
1057118Smuller  *
11*60676Sbostic  *	@(#)pat_rep.h	8.1 (Berkeley) 05/31/93
1257118Smuller  */
1357118Smuller 
1457118Smuller /*
1557118Smuller  * data structure for storing user supplied replacement strings (-s)
1657118Smuller  */
1757118Smuller typedef struct replace {
1857118Smuller 	char		*nstr;	/* the new string we will substitute with */
1957118Smuller #	ifdef NET2_REGEX
2057118Smuller 	regexp		*rcmp;	/* compiled regular expression used to match */
2157118Smuller #	else
2257118Smuller 	regex_t		rcmp;	/* compiled regular expression used to match */
2357118Smuller #	endif
2457118Smuller 	int		flgs;	/* print conversions? global in operation?  */
2557118Smuller #define	PRNT		0x1
2657118Smuller #define	GLOB		0x2
2757118Smuller 	struct replace	*fow;	/* pointer to next pattern */
2857118Smuller } REPLACE;
29