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.5 (Berkeley) 08/30/92 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 compile __P((void)); 25 char *cu_fgets __P((char *, int)); 26 void err __P((int, const char *, ...)); 27 int mf_fgets __P((SPACE *, enum e_spflag)); 28 void process __P((void)); 29 char *strregerror __P((int, regex_t *)); 30 void *xmalloc __P((u_int)); 31 void *xrealloc __P((void *, u_int)); 32 void cfclose __P((struct s_command *, struct s_command *)); 33 void cspace __P((SPACE *, char *, size_t, enum e_spflag)); 34