extern.h revision 99352
168651Skris/*- 268651Skris * Copyright (c) 1992 Diomidis Spinellis. 368651Skris * Copyright (c) 1992, 1993 468651Skris * The Regents of the University of California. All rights reserved. 568651Skris * 668651Skris * This code is derived from software contributed to Berkeley by 768651Skris * Diomidis Spinellis of Imperial College, University of London. 868651Skris * 968651Skris * Redistribution and use in source and binary forms, with or without 1068651Skris * modification, are permitted provided that the following conditions 1168651Skris * are met: 1268651Skris * 1. Redistributions of source code must retain the above copyright 1368651Skris * notice, this list of conditions and the following disclaimer. 1468651Skris * 2. Redistributions in binary form must reproduce the above copyright 1568651Skris * notice, this list of conditions and the following disclaimer in the 1668651Skris * documentation and/or other materials provided with the distribution. 1768651Skris * 3. All advertising materials mentioning features or use of this software 1868651Skris * must display the following acknowledgement: 1968651Skris * This product includes software developed by the University of 2068651Skris * California, Berkeley and its contributors. 2168651Skris * 4. Neither the name of the University nor the names of its contributors 2268651Skris * may be used to endorse or promote products derived from this software 2368651Skris * without specific prior written permission. 2468651Skris * 2568651Skris * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2668651Skris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27109998Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28109998Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2968651Skris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3068651Skris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3168651Skris * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3268651Skris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3368651Skris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3468651Skris * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3568651Skris * SUCH DAMAGE. 3668651Skris * 3768651Skris * @(#)extern.h 8.1 (Berkeley) 6/6/93 3868651Skris * $FreeBSD: head/usr.bin/sed/extern.h 99352 2002-07-03 14:38:27Z tjr $ 3968651Skris */ 4068651Skris 4168651Skrisextern struct s_command *prog; 4268651Skrisextern struct s_appends *appends; 4368651Skrisextern regmatch_t *match; 4468651Skrisextern size_t maxnsub; 4568651Skrisextern u_long linenum; 4668651Skrisextern int appendnum; 4768651Skrisextern int aflag, eflag, nflag; 4868651Skrisextern const char *fname; 4968651Skrisextern int rflags; /* regex flags to use */ 5068651Skris 5168651Skrisvoid cfclose(struct s_command *, struct s_command *); 5268651Skrisvoid compile(void); 5368651Skrisvoid cspace(SPACE *, char *, size_t, enum e_spflag); 5468651Skrischar *cu_fgets(char *, int, int *); 5568651Skrisint mf_fgets(SPACE *, enum e_spflag); 56109998Smarkmint lastline(void); 57109998Smarkmvoid process(void); 58109998Smarkmchar *strregerror(int, regex_t *); 59109998Smarkm