1*b5514887Smuffin /* 2*b5514887Smuffin * Copyright 1998 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 /* t..c : external declarations */ 187c478bd9Sstevel@tonic-gate 197c478bd9Sstevel@tonic-gate # include "stdio.h" 207c478bd9Sstevel@tonic-gate # include "ctype.h" 217c478bd9Sstevel@tonic-gate 227c478bd9Sstevel@tonic-gate # define MAXLIN 200 237c478bd9Sstevel@tonic-gate # define MAXHEAD 100 247c478bd9Sstevel@tonic-gate # define MAXCOL 20 257c478bd9Sstevel@tonic-gate # define MAXCHS 2000 267c478bd9Sstevel@tonic-gate # define MAXSTR 1024 277c478bd9Sstevel@tonic-gate # define MAXRPT 100 287c478bd9Sstevel@tonic-gate # define CLLEN 10 297c478bd9Sstevel@tonic-gate # define SHORTLINE 4 307c478bd9Sstevel@tonic-gate # define BIGBUF 8192 31*b5514887Smuffin extern char *gets1(char *, int); 327c478bd9Sstevel@tonic-gate extern int nlin, ncol, iline, nclin, nslin; 337c478bd9Sstevel@tonic-gate extern int style[MAXHEAD][MAXCOL]; 347c478bd9Sstevel@tonic-gate extern int ctop[MAXHEAD][MAXCOL]; 357c478bd9Sstevel@tonic-gate extern char font[MAXHEAD][MAXCOL][2]; 367c478bd9Sstevel@tonic-gate extern char csize[MAXHEAD][MAXCOL][4]; 377c478bd9Sstevel@tonic-gate extern char vsize[MAXHEAD][MAXCOL][4]; 387c478bd9Sstevel@tonic-gate extern char cll[MAXCOL][CLLEN]; 397c478bd9Sstevel@tonic-gate extern int stynum[]; 407c478bd9Sstevel@tonic-gate extern int F1, F2; 417c478bd9Sstevel@tonic-gate extern int lefline[MAXHEAD][MAXCOL]; 427c478bd9Sstevel@tonic-gate extern int fullbot[]; 437c478bd9Sstevel@tonic-gate extern char *instead[]; 447c478bd9Sstevel@tonic-gate extern int expflg; 457c478bd9Sstevel@tonic-gate extern int ctrflg; 467c478bd9Sstevel@tonic-gate extern int evenflg; 477c478bd9Sstevel@tonic-gate extern int evenup[]; 487c478bd9Sstevel@tonic-gate extern int boxflg; 497c478bd9Sstevel@tonic-gate extern int dboxflg; 507c478bd9Sstevel@tonic-gate extern int linsize; 517c478bd9Sstevel@tonic-gate extern int tab; 527c478bd9Sstevel@tonic-gate extern int pr1403; 537c478bd9Sstevel@tonic-gate extern int linsize, delim1, delim2; 547c478bd9Sstevel@tonic-gate extern int allflg; 557c478bd9Sstevel@tonic-gate extern int textflg; 567c478bd9Sstevel@tonic-gate extern int left1flg; 577c478bd9Sstevel@tonic-gate extern int rightl; 587c478bd9Sstevel@tonic-gate struct colstr {char *col, *rcol;}; 597c478bd9Sstevel@tonic-gate extern struct colstr *table[]; 60*b5514887Smuffin extern int *alocv(int); 617c478bd9Sstevel@tonic-gate extern char *cspace, *cstore; 62*b5514887Smuffin extern char *chspace(void); 63*b5514887Smuffin extern char *maknew(char *); 647c478bd9Sstevel@tonic-gate extern char *exstore, *exlim; 657c478bd9Sstevel@tonic-gate extern int sep[]; 667c478bd9Sstevel@tonic-gate extern int used[], lused[], rused[]; 677c478bd9Sstevel@tonic-gate extern int linestop[]; 687c478bd9Sstevel@tonic-gate extern char *leftover; 697c478bd9Sstevel@tonic-gate extern char *last, *ifile; 707c478bd9Sstevel@tonic-gate extern int texname; 717c478bd9Sstevel@tonic-gate extern int texct; 727c478bd9Sstevel@tonic-gate extern char texstr[]; 737c478bd9Sstevel@tonic-gate extern int linstart; 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate extern FILE *tabin, *tabout; 777c478bd9Sstevel@tonic-gate # define CRIGHT 80 787c478bd9Sstevel@tonic-gate # define CLEFT 40 797c478bd9Sstevel@tonic-gate # define CMID 60 807c478bd9Sstevel@tonic-gate # define S1 31 817c478bd9Sstevel@tonic-gate # define S2 32 827c478bd9Sstevel@tonic-gate # define TMP 38 837c478bd9Sstevel@tonic-gate # define SF 35 847c478bd9Sstevel@tonic-gate # define SL 34 857c478bd9Sstevel@tonic-gate # define LSIZE 33 867c478bd9Sstevel@tonic-gate # define SIND 37 877c478bd9Sstevel@tonic-gate # define SVS 36 887c478bd9Sstevel@tonic-gate /* this refers to the relative position of lines */ 897c478bd9Sstevel@tonic-gate # define LEFT 1 907c478bd9Sstevel@tonic-gate # define RIGHT 2 917c478bd9Sstevel@tonic-gate # define THRU 3 927c478bd9Sstevel@tonic-gate # define TOP 1 937c478bd9Sstevel@tonic-gate # define BOT 2 94