xref: /csrg-svn/usr.bin/sed/extern.h (revision 62229)
155994Sbostic /*-
255994Sbostic  * Copyright (c) 1992 Diomidis Spinellis.
3*62229Sbostic  * Copyright (c) 1992, 1993
4*62229Sbostic  *	The Regents of the University of California.  All rights reserved.
555994Sbostic  *
655994Sbostic  * This code is derived from software contributed to Berkeley by
755994Sbostic  * Diomidis Spinellis of Imperial College, University of London.
855994Sbostic  *
955994Sbostic  * %sccs.include.redist.c%
1055994Sbostic  *
11*62229Sbostic  *	@(#)extern.h	8.1 (Berkeley) 06/06/93
1255994Sbostic  */
1355994Sbostic 
1455994Sbostic extern struct s_command *prog;
1555994Sbostic extern struct s_appends *appends;
1656076Sbostic extern regmatch_t *match;
1756076Sbostic extern size_t maxnsub;
1855994Sbostic extern u_long linenum;
1955994Sbostic extern int appendnum;
2055994Sbostic extern int lastline;
2155994Sbostic extern int aflag, eflag, nflag;
2255994Sbostic extern char *fname;
2355994Sbostic 
2459073Selan void	 cfclose __P((struct s_command *, struct s_command *));
2555994Sbostic void	 compile __P((void));
2659073Selan void	 cspace __P((SPACE *, char *, size_t, enum e_spflag));
2755994Sbostic char	*cu_fgets __P((char *, int));
2855994Sbostic void	 err __P((int, const char *, ...));
2956076Sbostic int	 mf_fgets __P((SPACE *, enum e_spflag));
3055994Sbostic void	 process __P((void));
3155994Sbostic char	*strregerror __P((int, regex_t *));
3255994Sbostic void	*xmalloc __P((u_int));
3355994Sbostic void	*xrealloc __P((void *, u_int));
34