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 /* t..c : external declarations */ 19 20 # include "stdio.h" 21 # include "ctype.h" 22 23 # define MAXLIN 200 24 # define MAXHEAD 100 25 # define MAXCOL 20 26 # define MAXCHS 2000 27 # define MAXSTR 1024 28 # define MAXRPT 100 29 # define CLLEN 10 30 # define SHORTLINE 4 31 # define BIGBUF 8192 32 extern char *gets1(); 33 extern int nlin, ncol, iline, nclin, nslin; 34 extern int style[MAXHEAD][MAXCOL]; 35 extern int ctop[MAXHEAD][MAXCOL]; 36 extern char font[MAXHEAD][MAXCOL][2]; 37 extern char csize[MAXHEAD][MAXCOL][4]; 38 extern char vsize[MAXHEAD][MAXCOL][4]; 39 extern char cll[MAXCOL][CLLEN]; 40 extern int stynum[]; 41 extern int F1, F2; 42 extern int lefline[MAXHEAD][MAXCOL]; 43 extern int fullbot[]; 44 extern char *instead[]; 45 extern int expflg; 46 extern int ctrflg; 47 extern int evenflg; 48 extern int evenup[]; 49 extern int boxflg; 50 extern int dboxflg; 51 extern int linsize; 52 extern int tab; 53 extern int pr1403; 54 extern int linsize, delim1, delim2; 55 extern int allflg; 56 extern int textflg; 57 extern int left1flg; 58 extern int rightl; 59 struct colstr {char *col, *rcol;}; 60 extern struct colstr *table[]; 61 extern int *alocv(); 62 extern char *cspace, *cstore; 63 extern char *chspace(); 64 extern char *maknew(); 65 extern char *exstore, *exlim; 66 extern int sep[]; 67 extern int used[], lused[], rused[]; 68 extern int linestop[]; 69 extern char *leftover; 70 extern char *last, *ifile; 71 extern int texname; 72 extern int texct; 73 extern char texstr[]; 74 extern int linstart; 75 76 77 extern FILE *tabin, *tabout; 78 # define CRIGHT 80 79 # define CLEFT 40 80 # define CMID 60 81 # define S1 31 82 # define S2 32 83 # define TMP 38 84 # define SF 35 85 # define SL 34 86 # define LSIZE 33 87 # define SIND 37 88 # define SVS 36 89 /* this refers to the relative position of lines */ 90 # define LEFT 1 91 # define RIGHT 2 92 # define THRU 3 93 # define TOP 1 94 # define BOT 2 95