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