xref: /illumos-gate/usr/src/cmd/refer/refer0.c (revision 2a8bcb4e)
1*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
2*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
3*7c478bd9Sstevel@tonic-gate 
4*7c478bd9Sstevel@tonic-gate 
5*7c478bd9Sstevel@tonic-gate /*
6*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1980 Regents of the University of California.
7*7c478bd9Sstevel@tonic-gate  * All rights reserved. The Berkeley software License Agreement
8*7c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
9*7c478bd9Sstevel@tonic-gate  */
10*7c478bd9Sstevel@tonic-gate 
11*7c478bd9Sstevel@tonic-gate /*
12*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
13*7c478bd9Sstevel@tonic-gate  * All Rights Reserved.
14*7c478bd9Sstevel@tonic-gate  */
15*7c478bd9Sstevel@tonic-gate 
16*7c478bd9Sstevel@tonic-gate #include "refer..c"
17*7c478bd9Sstevel@tonic-gate 
18*7c478bd9Sstevel@tonic-gate FILE *in = stdin;
19*7c478bd9Sstevel@tonic-gate FILE *fo = stdout;
20*7c478bd9Sstevel@tonic-gate FILE *ftemp = stdout;
21*7c478bd9Sstevel@tonic-gate int endpush = 0;
22*7c478bd9Sstevel@tonic-gate int sort = 0;
23*7c478bd9Sstevel@tonic-gate int labels = 0;
24*7c478bd9Sstevel@tonic-gate int keywant = 0;
25*7c478bd9Sstevel@tonic-gate int bare = 0;
26*7c478bd9Sstevel@tonic-gate int biblio = 0;
27*7c478bd9Sstevel@tonic-gate int science = 0;
28*7c478bd9Sstevel@tonic-gate int postpunct = 0;
29*7c478bd9Sstevel@tonic-gate int authrev = 0;
30*7c478bd9Sstevel@tonic-gate char *smallcaps = "";
31*7c478bd9Sstevel@tonic-gate char *keystr = "AD";
32*7c478bd9Sstevel@tonic-gate char *convert = "X.AP";
33*7c478bd9Sstevel@tonic-gate int nmlen = 0, dtlen = 0;
34*7c478bd9Sstevel@tonic-gate char *rdata[NSERCH];
35*7c478bd9Sstevel@tonic-gate char **search = rdata;
36*7c478bd9Sstevel@tonic-gate int refnum = 0;
37*7c478bd9Sstevel@tonic-gate char reftext[NRFTXT];
38*7c478bd9Sstevel@tonic-gate char *reftable[NRFTBL];
39*7c478bd9Sstevel@tonic-gate char *rtp = reftext;
40*7c478bd9Sstevel@tonic-gate int sep = '\n';
41*7c478bd9Sstevel@tonic-gate char tfile[NTFILE];
42*7c478bd9Sstevel@tonic-gate char ofile[NTFILE];
43*7c478bd9Sstevel@tonic-gate char gfile[NTFILE];
44*7c478bd9Sstevel@tonic-gate char hidenam[NTFILE];
45*7c478bd9Sstevel@tonic-gate char *Ifile = "standard input";
46*7c478bd9Sstevel@tonic-gate int Iline = 0;
47