xref: /illumos-gate/usr/src/cmd/tbl/t0.c (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
1 /*
2  * Copyright 1990 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
7 /*	  All Rights Reserved  	*/
8 
9 /*
10  * Copyright (c) 1980 Regents of the University of California.
11  * All rights reserved. The Berkeley software License Agreement
12  * specifies the terms and conditions for redistribution.
13  */
14 
15  /* t0.c: storage allocation */
16 #
17 # include "t..c"
18 int expflg = 0;
19 int ctrflg = 0;
20 int boxflg = 0;
21 int dboxflg = 0;
22 int tab = '\t';
23 int linsize;
24 int pr1403;
25 int delim1, delim2;
26 int evenup[MAXCOL], evenflg;
27 int F1 = 0;
28 int F2 = 0;
29 int allflg = 0;
30 char *leftover = 0;
31 int textflg = 0;
32 int left1flg = 0;
33 int rightl = 0;
34 char *cstore, *cspace;
35 char *last;
36 struct colstr *table[MAXLIN];
37 int style[MAXHEAD][MAXCOL];
38 int ctop[MAXHEAD][MAXCOL];
39 char font[MAXHEAD][MAXCOL][2];
40 char csize[MAXHEAD][MAXCOL][4];
41 char vsize[MAXHEAD][MAXCOL][4];
42 int lefline[MAXHEAD][MAXCOL];
43 char cll[MAXCOL][CLLEN];
44 /*char *rpt[MAXHEAD][MAXCOL];*/
45 /*char rpttx[MAXRPT];*/
46 int stynum[MAXLIN+1];
47 int nslin, nclin;
48 int sep[MAXCOL];
49 int fullbot[MAXLIN];
50 char *instead[MAXLIN];
51 int used[MAXCOL], lused[MAXCOL], rused[MAXCOL];
52 int linestop[MAXLIN];
53 int nlin, ncol;
54 int iline = 1;
55 char *ifile = "Input";
56 int texname = 'a';
57 int texct = 0;
58 char texstr[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ0123456789";
59 int linstart;
60 char *exstore, *exlim;
61 FILE *tabin  /*= stdin */;
62 FILE *tabout  /* = stdout */;
63