97 lines
2.2 KiB
C
Executable File
97 lines
2.2 KiB
C
Executable File
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
|
|
/* All Rights Reserved */
|
|
|
|
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
|
|
/* The copyright notice above does not evidence any */
|
|
/* actual or intended publication of such source code. */
|
|
|
|
/*
|
|
* Copyright (c) 1980 Regents of the University of California.
|
|
* All rights reserved. The Berkeley software License Agreement
|
|
* specifies the terms and conditions for redistribution.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
|
|
* All Rights Reserved.
|
|
*/
|
|
|
|
#ident "@(#)t..c 1.2 90/02/14 SMI" /* SVr4.0 1.1 */
|
|
|
|
/* t..c : external declarations */
|
|
|
|
# include "stdio.h"
|
|
# include "ctype.h"
|
|
|
|
# define MAXLIN 200
|
|
# define MAXHEAD 100
|
|
# define MAXCOL 20
|
|
# define MAXCHS 2000
|
|
# define MAXSTR 1024
|
|
# define MAXRPT 100
|
|
# define CLLEN 10
|
|
# define SHORTLINE 4
|
|
extern char *gets1();
|
|
extern int nlin, ncol, iline, nclin, nslin;
|
|
extern int style[MAXHEAD][MAXCOL];
|
|
extern int ctop[MAXHEAD][MAXCOL];
|
|
extern char font[MAXHEAD][MAXCOL][2];
|
|
extern char csize[MAXHEAD][MAXCOL][4];
|
|
extern char vsize[MAXHEAD][MAXCOL][4];
|
|
extern char cll[MAXCOL][CLLEN];
|
|
extern int stynum[];
|
|
extern int F1, F2;
|
|
extern int lefline[MAXHEAD][MAXCOL];
|
|
extern int fullbot[];
|
|
extern char *instead[];
|
|
extern int expflg;
|
|
extern int ctrflg;
|
|
extern int evenflg;
|
|
extern int evenup[];
|
|
extern int boxflg;
|
|
extern int dboxflg;
|
|
extern int linsize;
|
|
extern int tab;
|
|
extern int pr1403;
|
|
extern int linsize, delim1, delim2;
|
|
extern int allflg;
|
|
extern int textflg;
|
|
extern int left1flg;
|
|
extern int rightl;
|
|
struct colstr {char *col, *rcol;};
|
|
extern struct colstr *table[];
|
|
extern int *alocv();
|
|
extern char *cspace, *cstore;
|
|
extern char *chspace();
|
|
extern char *maknew();
|
|
extern char *exstore, *exlim;
|
|
extern int sep[];
|
|
extern int used[], lused[], rused[];
|
|
extern int linestop[];
|
|
extern char *leftover;
|
|
extern char *last, *ifile;
|
|
extern int texname;
|
|
extern int texct;
|
|
extern char texstr[];
|
|
extern int linstart;
|
|
|
|
|
|
extern FILE *tabin, *tabout;
|
|
# define CRIGHT 80
|
|
# define CLEFT 40
|
|
# define CMID 60
|
|
# define S1 31
|
|
# define S2 32
|
|
# define TMP 38
|
|
# define SF 35
|
|
# define SL 34
|
|
# define LSIZE 33
|
|
# define SIND 37
|
|
# define SVS 36
|
|
/* this refers to the relative position of lines */
|
|
# define LEFT 1
|
|
# define RIGHT 2
|
|
# define THRU 3
|
|
# define TOP 1
|
|
# define BOT 2
|