xref: /titanic_41/usr/src/cmd/refer/refer..c (revision b3697b90e692e3e5d859fb77d285d4c056d99eda)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
17 
18 #include <stdio.h>
19 #include <ctype.h>
20 #include <assert.h>
21 
22 #define FLAG 003
23 #define AFLAG 007
24 #define NRFTXT 10000
25 #define NRFTBL 500
26 #define NTFILE 20
27 #define QLEN 512
28 #define ANSLEN 4000
29 #define TAGLEN 400
30 #define NSERCH 20
31 #define MXSIG 200		/* max bytes in aggregate signal */
32 
33 extern FILE *in;
34 extern int endpush, sort, labels, keywant, bare;
35 extern int biblio, science, postpunct;
36 extern char *smallcaps;
37 extern char comname;
38 extern char *keystr;
39 extern char *convert;
40 extern int authrev;
41 extern int nmlen, dtlen;
42 extern char *rdata[], **search;
43 extern int refnum;
44 extern char *reftable[];
45 extern char *rtp, reftext[];
46 extern int sep;
47 extern char tfile[];
48 extern char gfile[];
49 extern char ofile[];
50 extern char hidenam[];
51 extern char *Ifile; extern int Iline;
52 extern FILE *fo, *ftemp;
53 extern char *input(),*lookat();
54 extern char *class(),*caps(),*revauth();
55 extern char *artskp(),*fpar();
56 extern char *trimnl();
57 
58 extern char *getenv(), *strcpy(), *strcat();
59