xref: /titanic_41/usr/src/cmd/tbl/t0.c (revision b55148877d473978f0b46d593fd6213fa526fcc5)
1*b5514887Smuffin /*
2*b5514887Smuffin  * Copyright 1990 Sun Microsystems, Inc.  All rights reserved.
3*b5514887Smuffin  * Use is subject to license terms.
4*b5514887Smuffin  */
5*b5514887Smuffin 
67c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
77c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
87c478bd9Sstevel@tonic-gate 
97c478bd9Sstevel@tonic-gate /*
107c478bd9Sstevel@tonic-gate  * Copyright (c) 1980 Regents of the University of California.
117c478bd9Sstevel@tonic-gate  * All rights reserved. The Berkeley software License Agreement
127c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
137c478bd9Sstevel@tonic-gate  */
147c478bd9Sstevel@tonic-gate 
15*b5514887Smuffin #pragma ident	"%Z%%M%	%I%	%E% SMI"
167c478bd9Sstevel@tonic-gate 
177c478bd9Sstevel@tonic-gate  /* t0.c: storage allocation */
187c478bd9Sstevel@tonic-gate #
197c478bd9Sstevel@tonic-gate # include "t..c"
207c478bd9Sstevel@tonic-gate int expflg = 0;
217c478bd9Sstevel@tonic-gate int ctrflg = 0;
227c478bd9Sstevel@tonic-gate int boxflg = 0;
237c478bd9Sstevel@tonic-gate int dboxflg = 0;
247c478bd9Sstevel@tonic-gate int tab = '\t';
257c478bd9Sstevel@tonic-gate int linsize;
267c478bd9Sstevel@tonic-gate int pr1403;
277c478bd9Sstevel@tonic-gate int delim1, delim2;
287c478bd9Sstevel@tonic-gate int evenup[MAXCOL], evenflg;
297c478bd9Sstevel@tonic-gate int F1 = 0;
307c478bd9Sstevel@tonic-gate int F2 = 0;
317c478bd9Sstevel@tonic-gate int allflg = 0;
327c478bd9Sstevel@tonic-gate char *leftover = 0;
337c478bd9Sstevel@tonic-gate int textflg = 0;
347c478bd9Sstevel@tonic-gate int left1flg = 0;
357c478bd9Sstevel@tonic-gate int rightl = 0;
367c478bd9Sstevel@tonic-gate char *cstore, *cspace;
377c478bd9Sstevel@tonic-gate char *last;
387c478bd9Sstevel@tonic-gate struct colstr *table[MAXLIN];
397c478bd9Sstevel@tonic-gate int style[MAXHEAD][MAXCOL];
407c478bd9Sstevel@tonic-gate int ctop[MAXHEAD][MAXCOL];
417c478bd9Sstevel@tonic-gate char font[MAXHEAD][MAXCOL][2];
427c478bd9Sstevel@tonic-gate char csize[MAXHEAD][MAXCOL][4];
437c478bd9Sstevel@tonic-gate char vsize[MAXHEAD][MAXCOL][4];
447c478bd9Sstevel@tonic-gate int lefline[MAXHEAD][MAXCOL];
457c478bd9Sstevel@tonic-gate char cll[MAXCOL][CLLEN];
467c478bd9Sstevel@tonic-gate /*char *rpt[MAXHEAD][MAXCOL];*/
477c478bd9Sstevel@tonic-gate /*char rpttx[MAXRPT];*/
487c478bd9Sstevel@tonic-gate int stynum[MAXLIN+1];
497c478bd9Sstevel@tonic-gate int nslin, nclin;
507c478bd9Sstevel@tonic-gate int sep[MAXCOL];
517c478bd9Sstevel@tonic-gate int fullbot[MAXLIN];
527c478bd9Sstevel@tonic-gate char *instead[MAXLIN];
537c478bd9Sstevel@tonic-gate int used[MAXCOL], lused[MAXCOL], rused[MAXCOL];
547c478bd9Sstevel@tonic-gate int linestop[MAXLIN];
557c478bd9Sstevel@tonic-gate int nlin, ncol;
567c478bd9Sstevel@tonic-gate int iline = 1;
577c478bd9Sstevel@tonic-gate char *ifile = "Input";
587c478bd9Sstevel@tonic-gate int texname = 'a';
597c478bd9Sstevel@tonic-gate int texct = 0;
607c478bd9Sstevel@tonic-gate char texstr[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ0123456789";
617c478bd9Sstevel@tonic-gate int linstart;
627c478bd9Sstevel@tonic-gate char *exstore, *exlim;
637c478bd9Sstevel@tonic-gate FILE *tabin  /*= stdin */;
647c478bd9Sstevel@tonic-gate FILE *tabout  /* = stdout */;
65