extern.h revision 1.8
11.8Swiz/* $NetBSD: extern.h,v 1.8 2002/06/14 00:41:42 wiz 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.8Swiz * $NetBSD: extern.h,v 1.8 2002/06/14 00:41:42 wiz 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.7Satatatextern int ere; 521.1Salmextern char *fname; 531.1Salm 541.8Swizvoid cfclose(struct s_command *, struct s_command *); 551.8Swizvoid compile(void); 561.8Swizvoid cspace(SPACE *, char *, size_t, enum e_spflag); 571.8Swizchar *cu_fgets(char *, int); 581.8Swizvoid err(int, const char *, ...) 591.6Sis __attribute__((__format__(__printf__, 2, 3))); 601.8Swizint mf_fgets(SPACE *, enum e_spflag); 611.8Swizvoid process(void); 621.8Swizchar *strregerror(int, regex_t *); 631.8Swizvoid *xmalloc(u_int); 641.8Swizvoid *xrealloc(void *, u_int); 65