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