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