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