extern.h revision 1.4
11.1Salm/*-
21.1Salm * Copyright (c) 1992 Diomidis Spinellis.
31.3Scgd * Copyright (c) 1992, 1993
41.3Scgd *	The Regents of the University of California.  All rights reserved.
51.1Salm *
61.1Salm * This code is derived from software contributed to Berkeley by
71.1Salm * Diomidis Spinellis of Imperial College, University of London.
81.1Salm *
91.1Salm * Redistribution and use in source and binary forms, with or without
101.1Salm * modification, are permitted provided that the following conditions
111.1Salm * are met:
121.1Salm * 1. Redistributions of source code must retain the above copyright
131.1Salm *    notice, this list of conditions and the following disclaimer.
141.1Salm * 2. Redistributions in binary form must reproduce the above copyright
151.1Salm *    notice, this list of conditions and the following disclaimer in the
161.1Salm *    documentation and/or other materials provided with the distribution.
171.1Salm * 3. All advertising materials mentioning features or use of this software
181.1Salm *    must display the following acknowledgement:
191.1Salm *	This product includes software developed by the University of
201.1Salm *	California, Berkeley and its contributors.
211.1Salm * 4. Neither the name of the University nor the names of its contributors
221.1Salm *    may be used to endorse or promote products derived from this software
231.1Salm *    without specific prior written permission.
241.1Salm *
251.1Salm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
261.1Salm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
271.1Salm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
281.1Salm * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
291.1Salm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
301.1Salm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
311.1Salm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
321.1Salm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
331.1Salm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
341.1Salm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
351.1Salm * SUCH DAMAGE.
361.1Salm *
371.4Scgd *	from: @(#)extern.h	8.1 (Berkeley) 6/6/93
381.4Scgd *	$Id: extern.h,v 1.4 1994/02/03 23:44:52 cgd Exp $
391.1Salm */
401.1Salm
411.1Salmextern struct s_command *prog;
421.1Salmextern struct s_appends *appends;
431.1Salmextern regmatch_t *match;
441.1Salmextern size_t maxnsub;
451.1Salmextern u_long linenum;
461.1Salmextern int appendnum;
471.1Salmextern int lastline;
481.1Salmextern int aflag, eflag, nflag;
491.1Salmextern char *fname;
501.1Salm
511.3Scgdvoid	 cfclose __P((struct s_command *, struct s_command *));
521.1Salmvoid	 compile __P((void));
531.3Scgdvoid	 cspace __P((SPACE *, char *, size_t, enum e_spflag));
541.1Salmchar	*cu_fgets __P((char *, int));
551.1Salmvoid	 err __P((int, const char *, ...));
561.1Salmint	 mf_fgets __P((SPACE *, enum e_spflag));
571.1Salmvoid	 process __P((void));
581.1Salmchar	*strregerror __P((int, regex_t *));
591.1Salmvoid	*xmalloc __P((u_int));
601.1Salmvoid	*xrealloc __P((void *, u_int));
61