xref: /original-bsd/usr.bin/sed/extern.h (revision b806d041)
1 /*-
2  * Copyright (c) 1992 Diomidis Spinellis.
3  * Copyright (c) 1992 The Regents of the University of California.
4  * 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  *
9  * %sccs.include.redist.c%
10  *
11  *	@(#)extern.h	5.6 (Berkeley) 04/14/93
12  */
13 
14 extern struct s_command *prog;
15 extern struct s_appends *appends;
16 extern regmatch_t *match;
17 extern size_t maxnsub;
18 extern u_long linenum;
19 extern int appendnum;
20 extern int lastline;
21 extern int aflag, eflag, nflag;
22 extern char *fname;
23 
24 void	 cfclose __P((struct s_command *, struct s_command *));
25 void	 compile __P((void));
26 void	 cspace __P((SPACE *, char *, size_t, enum e_spflag));
27 char	*cu_fgets __P((char *, int));
28 void	 err __P((int, const char *, ...));
29 int	 mf_fgets __P((SPACE *, enum e_spflag));
30 void	 process __P((void));
31 char 	*strnchr __P((const char *, int c, size_t));
32 char	*strregerror __P((int, regex_t *));
33 void	*xmalloc __P((u_int));
34 void	*xrealloc __P((void *, u_int));
35