main.c (80286) | main.c (87766) |
---|---|
1/*- 2 * Copyright (c) 1992 Diomidis Spinellis. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Diomidis Spinellis of Imperial College, University of London. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 */ 37 | 1/*- 2 * Copyright (c) 1992 Diomidis Spinellis. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Diomidis Spinellis of Imperial College, University of London. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 */ 37 |
38#include <sys/cdefs.h> 39__FBSDID("$FreeBSD: head/usr.bin/sed/main.c 87766 2001-12-12 23:20:16Z markm $"); 40 |
|
38#ifndef lint 39static const char copyright[] = 40"@(#) Copyright (c) 1992, 1993\n\ 41 The Regents of the University of California. All rights reserved.\n"; | 41#ifndef lint 42static const char copyright[] = 43"@(#) Copyright (c) 1992, 1993\n\ 44 The Regents of the University of California. All rights reserved.\n"; |
42#endif /* not lint */ | 45#endif |
43 44#ifndef lint | 46 47#ifndef lint |
45#if 0 46static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; | 48static const char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; |
47#endif | 49#endif |
48static const char rcsid[] = 49 "$FreeBSD: head/usr.bin/sed/main.c 80286 2001-07-24 14:05:21Z obrien $"; 50#endif /* not lint */ | |
51 52#include <sys/types.h> 53 54#include <err.h> 55#include <errno.h> 56#include <fcntl.h> 57#include <locale.h> 58#include <regex.h> --- 37 unchanged lines hidden (view full) --- 96 97int aflag, eflag, nflag; 98int rflags = 0; 99 100/* 101 * Current file and line number; line numbers restart across compilation 102 * units, but span across input files. 103 */ | 50 51#include <sys/types.h> 52 53#include <err.h> 54#include <errno.h> 55#include <fcntl.h> 56#include <locale.h> 57#include <regex.h> --- 37 unchanged lines hidden (view full) --- 95 96int aflag, eflag, nflag; 97int rflags = 0; 98 99/* 100 * Current file and line number; line numbers restart across compilation 101 * units, but span across input files. 102 */ |
104char *fname; /* File name. */ | 103const char *fname; /* File name. */ |
105u_long linenum; 106int lastline; /* TRUE on the last line of the last file */ 107 108static void add_compunit __P((enum e_cut, char *)); 109static void add_file __P((char *)); 110static void usage __P((void)); 111 112int --- 278 unchanged lines hidden --- | 104u_long linenum; 105int lastline; /* TRUE on the last line of the last file */ 106 107static void add_compunit __P((enum e_cut, char *)); 108static void add_file __P((char *)); 109static void usage __P((void)); 110 111int --- 278 unchanged lines hidden --- |