1*381Smuffin /* 2*381Smuffin * Copyright 1990 Sun Microsystems, Inc. All rights reserved. 3*381Smuffin * Use is subject to license terms. 4*381Smuffin */ 5*381Smuffin 60Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 70Sstevel@tonic-gate /* All Rights Reserved */ 80Sstevel@tonic-gate 90Sstevel@tonic-gate /* 100Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California. 110Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 120Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 130Sstevel@tonic-gate */ 140Sstevel@tonic-gate 15*381Smuffin #pragma ident "%Z%%M% %I% %E% SMI" 160Sstevel@tonic-gate 170Sstevel@tonic-gate /* t0.c: storage allocation */ 180Sstevel@tonic-gate # 190Sstevel@tonic-gate # include "t..c" 200Sstevel@tonic-gate int expflg = 0; 210Sstevel@tonic-gate int ctrflg = 0; 220Sstevel@tonic-gate int boxflg = 0; 230Sstevel@tonic-gate int dboxflg = 0; 240Sstevel@tonic-gate int tab = '\t'; 250Sstevel@tonic-gate int linsize; 260Sstevel@tonic-gate int pr1403; 270Sstevel@tonic-gate int delim1, delim2; 280Sstevel@tonic-gate int evenup[MAXCOL], evenflg; 290Sstevel@tonic-gate int F1 = 0; 300Sstevel@tonic-gate int F2 = 0; 310Sstevel@tonic-gate int allflg = 0; 320Sstevel@tonic-gate char *leftover = 0; 330Sstevel@tonic-gate int textflg = 0; 340Sstevel@tonic-gate int left1flg = 0; 350Sstevel@tonic-gate int rightl = 0; 360Sstevel@tonic-gate char *cstore, *cspace; 370Sstevel@tonic-gate char *last; 380Sstevel@tonic-gate struct colstr *table[MAXLIN]; 390Sstevel@tonic-gate int style[MAXHEAD][MAXCOL]; 400Sstevel@tonic-gate int ctop[MAXHEAD][MAXCOL]; 410Sstevel@tonic-gate char font[MAXHEAD][MAXCOL][2]; 420Sstevel@tonic-gate char csize[MAXHEAD][MAXCOL][4]; 430Sstevel@tonic-gate char vsize[MAXHEAD][MAXCOL][4]; 440Sstevel@tonic-gate int lefline[MAXHEAD][MAXCOL]; 450Sstevel@tonic-gate char cll[MAXCOL][CLLEN]; 460Sstevel@tonic-gate /*char *rpt[MAXHEAD][MAXCOL];*/ 470Sstevel@tonic-gate /*char rpttx[MAXRPT];*/ 480Sstevel@tonic-gate int stynum[MAXLIN+1]; 490Sstevel@tonic-gate int nslin, nclin; 500Sstevel@tonic-gate int sep[MAXCOL]; 510Sstevel@tonic-gate int fullbot[MAXLIN]; 520Sstevel@tonic-gate char *instead[MAXLIN]; 530Sstevel@tonic-gate int used[MAXCOL], lused[MAXCOL], rused[MAXCOL]; 540Sstevel@tonic-gate int linestop[MAXLIN]; 550Sstevel@tonic-gate int nlin, ncol; 560Sstevel@tonic-gate int iline = 1; 570Sstevel@tonic-gate char *ifile = "Input"; 580Sstevel@tonic-gate int texname = 'a'; 590Sstevel@tonic-gate int texct = 0; 600Sstevel@tonic-gate char texstr[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ0123456789"; 610Sstevel@tonic-gate int linstart; 620Sstevel@tonic-gate char *exstore, *exlim; 630Sstevel@tonic-gate FILE *tabin /*= stdin */; 640Sstevel@tonic-gate FILE *tabout /* = stdout */; 65