extern.h revision 1.9
11.9Sagc/*	$NetBSD: extern.h,v 1.9 2003/08/07 11:15:49 agc Exp $	*/
21.5Stls
31.1Salm/*-
41.3Scgd * Copyright (c) 1992, 1993
51.3Scgd *	The Regents of the University of California.  All rights reserved.
61.1Salm *
71.1Salm * This code is derived from software contributed to Berkeley by
81.1Salm * Diomidis Spinellis of Imperial College, University of London.
91.1Salm *
101.1Salm * Redistribution and use in source and binary forms, with or without
111.1Salm * modification, are permitted provided that the following conditions
121.1Salm * are met:
131.1Salm * 1. Redistributions of source code must retain the above copyright
141.1Salm *    notice, this list of conditions and the following disclaimer.
151.1Salm * 2. Redistributions in binary form must reproduce the above copyright
161.1Salm *    notice, this list of conditions and the following disclaimer in the
171.1Salm *    documentation and/or other materials provided with the distribution.
181.9Sagc * 3. Neither the name of the University nor the names of its contributors
191.9Sagc *    may be used to endorse or promote products derived from this software
201.9Sagc *    without specific prior written permission.
211.9Sagc *
221.9Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
231.9Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
241.9Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
251.9Sagc * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
261.9Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
271.9Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
281.9Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
291.9Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301.9Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
311.9Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
321.9Sagc * SUCH DAMAGE.
331.9Sagc *
341.9Sagc *	from: @(#)extern.h	8.1 (Berkeley) 6/6/93
351.9Sagc *	$NetBSD: extern.h,v 1.9 2003/08/07 11:15:49 agc Exp $
361.9Sagc */
371.9Sagc
381.9Sagc/*-
391.9Sagc * Copyright (c) 1992 Diomidis Spinellis.
401.9Sagc *
411.9Sagc * This code is derived from software contributed to Berkeley by
421.9Sagc * Diomidis Spinellis of Imperial College, University of London.
431.9Sagc *
441.9Sagc * Redistribution and use in source and binary forms, with or without
451.9Sagc * modification, are permitted provided that the following conditions
461.9Sagc * are met:
471.9Sagc * 1. Redistributions of source code must retain the above copyright
481.9Sagc *    notice, this list of conditions and the following disclaimer.
491.9Sagc * 2. Redistributions in binary form must reproduce the above copyright
501.9Sagc *    notice, this list of conditions and the following disclaimer in the
511.9Sagc *    documentation and/or other materials provided with the distribution.
521.1Salm * 3. All advertising materials mentioning features or use of this software
531.1Salm *    must display the following acknowledgement:
541.1Salm *	This product includes software developed by the University of
551.1Salm *	California, Berkeley and its contributors.
561.1Salm * 4. Neither the name of the University nor the names of its contributors
571.1Salm *    may be used to endorse or promote products derived from this software
581.1Salm *    without specific prior written permission.
591.1Salm *
601.1Salm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
611.1Salm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
621.1Salm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
631.1Salm * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
641.1Salm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
651.1Salm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
661.1Salm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
671.1Salm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
681.1Salm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
691.1Salm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
701.1Salm * SUCH DAMAGE.
711.1Salm *
721.4Scgd *	from: @(#)extern.h	8.1 (Berkeley) 6/6/93
731.9Sagc *	$NetBSD: extern.h,v 1.9 2003/08/07 11:15:49 agc Exp $
741.1Salm */
751.1Salm
761.1Salmextern struct s_command *prog;
771.1Salmextern struct s_appends *appends;
781.1Salmextern regmatch_t *match;
791.1Salmextern size_t maxnsub;
801.1Salmextern u_long linenum;
811.1Salmextern int appendnum;
821.1Salmextern int lastline;
831.1Salmextern int aflag, eflag, nflag;
841.7Satatatextern int ere;
851.1Salmextern char *fname;
861.1Salm
871.8Swizvoid	 cfclose(struct s_command *, struct s_command *);
881.8Swizvoid	 compile(void);
891.8Swizvoid	 cspace(SPACE *, char *, size_t, enum e_spflag);
901.8Swizchar	*cu_fgets(char *, int);
911.8Swizvoid	 err(int, const char *, ...)
921.6Sis     __attribute__((__format__(__printf__, 2, 3)));
931.8Swizint	 mf_fgets(SPACE *, enum e_spflag);
941.8Swizvoid	 process(void);
951.8Swizchar	*strregerror(int, regex_t *);
961.8Swizvoid	*xmalloc(u_int);
971.8Swizvoid	*xrealloc(void *, u_int);
98