xref: /csrg-svn/usr.bin/sed/extern.h (revision 56008)
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.2 (Berkeley) 08/24/92
12  */
13 
14 extern struct s_command *prog;
15 extern struct s_appends *appends;
16 extern u_long linenum;
17 extern int appendnum;
18 extern int compile_errors;
19 extern int lastline;
20 extern int aflag, eflag, nflag;
21 extern char *fname;
22 
23 void	 compile __P((void));
24 char	*cu_fgets __P((char *, int));
25 void	 err __P((int, const char *, ...));
26 char	*mf_fgets __P((size_t *));
27 void	 process __P((void));
28 char	*strregerror __P((int, regex_t *));
29 void	*xmalloc __P((u_int));
30 void	*xrealloc __P((void *, u_int));
31 void	 cfclose __P((struct s_command *));
32