xref: /titanic_53/usr/src/cmd/tbl/t0.c (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
17*7c478bd9Sstevel@tonic-gate 
18*7c478bd9Sstevel@tonic-gate  /* t0.c: storage allocation */
19*7c478bd9Sstevel@tonic-gate #
20*7c478bd9Sstevel@tonic-gate # include "t..c"
21*7c478bd9Sstevel@tonic-gate int expflg = 0;
22*7c478bd9Sstevel@tonic-gate int ctrflg = 0;
23*7c478bd9Sstevel@tonic-gate int boxflg = 0;
24*7c478bd9Sstevel@tonic-gate int dboxflg = 0;
25*7c478bd9Sstevel@tonic-gate int tab = '\t';
26*7c478bd9Sstevel@tonic-gate int linsize;
27*7c478bd9Sstevel@tonic-gate int pr1403;
28*7c478bd9Sstevel@tonic-gate int delim1, delim2;
29*7c478bd9Sstevel@tonic-gate int evenup[MAXCOL], evenflg;
30*7c478bd9Sstevel@tonic-gate int F1 = 0;
31*7c478bd9Sstevel@tonic-gate int F2 = 0;
32*7c478bd9Sstevel@tonic-gate int allflg = 0;
33*7c478bd9Sstevel@tonic-gate char *leftover = 0;
34*7c478bd9Sstevel@tonic-gate int textflg = 0;
35*7c478bd9Sstevel@tonic-gate int left1flg = 0;
36*7c478bd9Sstevel@tonic-gate int rightl = 0;
37*7c478bd9Sstevel@tonic-gate char *cstore, *cspace;
38*7c478bd9Sstevel@tonic-gate char *last;
39*7c478bd9Sstevel@tonic-gate struct colstr *table[MAXLIN];
40*7c478bd9Sstevel@tonic-gate int style[MAXHEAD][MAXCOL];
41*7c478bd9Sstevel@tonic-gate int ctop[MAXHEAD][MAXCOL];
42*7c478bd9Sstevel@tonic-gate char font[MAXHEAD][MAXCOL][2];
43*7c478bd9Sstevel@tonic-gate char csize[MAXHEAD][MAXCOL][4];
44*7c478bd9Sstevel@tonic-gate char vsize[MAXHEAD][MAXCOL][4];
45*7c478bd9Sstevel@tonic-gate int lefline[MAXHEAD][MAXCOL];
46*7c478bd9Sstevel@tonic-gate char cll[MAXCOL][CLLEN];
47*7c478bd9Sstevel@tonic-gate /*char *rpt[MAXHEAD][MAXCOL];*/
48*7c478bd9Sstevel@tonic-gate /*char rpttx[MAXRPT];*/
49*7c478bd9Sstevel@tonic-gate int stynum[MAXLIN+1];
50*7c478bd9Sstevel@tonic-gate int nslin, nclin;
51*7c478bd9Sstevel@tonic-gate int sep[MAXCOL];
52*7c478bd9Sstevel@tonic-gate int fullbot[MAXLIN];
53*7c478bd9Sstevel@tonic-gate char *instead[MAXLIN];
54*7c478bd9Sstevel@tonic-gate int used[MAXCOL], lused[MAXCOL], rused[MAXCOL];
55*7c478bd9Sstevel@tonic-gate int linestop[MAXLIN];
56*7c478bd9Sstevel@tonic-gate int nlin, ncol;
57*7c478bd9Sstevel@tonic-gate int iline = 1;
58*7c478bd9Sstevel@tonic-gate char *ifile = "Input";
59*7c478bd9Sstevel@tonic-gate int texname = 'a';
60*7c478bd9Sstevel@tonic-gate int texct = 0;
61*7c478bd9Sstevel@tonic-gate char texstr[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ0123456789";
62*7c478bd9Sstevel@tonic-gate int linstart;
63*7c478bd9Sstevel@tonic-gate char *exstore, *exlim;
64*7c478bd9Sstevel@tonic-gate FILE *tabin  /*= stdin */;
65*7c478bd9Sstevel@tonic-gate FILE *tabout  /* = stdout */;
66