1 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 /* All Rights Reserved */ 3 4 5 /* 6 * Copyright (c) 1980 Regents of the University of California. 7 * All rights reserved. The Berkeley software License Agreement 8 * specifies the terms and conditions for redistribution. 9 */ 10 11 /* 12 * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 * All Rights Reserved. 14 */ 15 16 #include <stdio.h> 17 #include <ctype.h> 18 #include <assert.h> 19 20 #define FLAG 003 21 #define AFLAG 007 22 #define NRFTXT 10000 23 #define NRFTBL 500 24 #define NTFILE 20 25 #define QLEN 512 26 #define ANSLEN 4000 27 #define TAGLEN 400 28 #define NSERCH 20 29 #define MXSIG 200 /* max bytes in aggregate signal */ 30 31 extern FILE *in; 32 extern int endpush, sort, labels, keywant, bare; 33 extern int biblio, science, postpunct; 34 extern char *smallcaps; 35 extern char comname; 36 extern char *keystr; 37 extern char *convert; 38 extern int authrev; 39 extern int nmlen, dtlen; 40 extern char *rdata[], **search; 41 extern int refnum; 42 extern char *reftable[]; 43 extern char *rtp, reftext[]; 44 extern int sep; 45 extern char tfile[]; 46 extern char gfile[]; 47 extern char ofile[]; 48 extern char hidenam[]; 49 extern char *Ifile; extern int Iline; 50 extern FILE *fo, *ftemp; 51 extern char *input(),*lookat(); 52 extern char *class(),*caps(),*revauth(); 53 extern char *artskp(),*fpar(); 54 extern char *trimnl(); 55 56 extern char *getenv(), *strcpy(), *strcat(); 57