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