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