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