155994Sbostic /*- 255994Sbostic * Copyright (c) 1992 Diomidis Spinellis. 355994Sbostic * Copyright (c) 1992 The Regents of the University of California. 455994Sbostic * 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*59073Selan * @(#)extern.h 5.6 (Berkeley) 04/14/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 24*59073Selan void cfclose __P((struct s_command *, struct s_command *)); 2555994Sbostic void compile __P((void)); 26*59073Selan 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)); 31*59073Selan char *strnchr __P((const char *, int c, size_t)); 3255994Sbostic char *strregerror __P((int, regex_t *)); 3355994Sbostic void *xmalloc __P((u_int)); 3455994Sbostic void *xrealloc __P((void *, u_int)); 35