t7.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1983-1998 by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#ident "%Z%%M% %I% %E% SMI"
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/* t7.c: control to write table entries */
# include "t..c"
runout()
{
int i;
if (ctrflg)
{
}
deftail();
for(i=0; i<nlin; i++)
putline(i,i);
if (leftover)
yetmore();
if (ctrflg)
}
{
for(c=0; c<ncol; c++)
{
continue;
{
case 'n':
case 'a':
if (lused[c]) /*Zero field width*/
case 'c':
case 'l':
case 'r':
continue;
case 's':
continue;
}
}
}
ifline(s)
char *s;
{
if (!point(s)) return(0);
if (s[0] == '\\') s++;
if (s[1] ) return(0);
if (s[0] == '_') return('-');
if (s[0] == '=') return('=');
return(0);
}
need()
{
if (allh(i))
horlin++;
else if (instead[i] != 0)
continue;
else
texlin++;
}
/*
* For nroff runs, we need to reserve space for the full height of the
* horizontal rules. If we don't reserve sufficient height, we'll have
* problems trying to draw the vertical lines across the page boundary.
*/
}
deftail()
{
for(i=0; i<MAXHEAD; i++)
if (linestop[i])
for(i=0; i<MAXHEAD; i++)
if (linestop[i])
if (!pr1403)
/* T. is really an argument to a macro but because of
eqn we don't dare pass it as an argument and reference by $1 */
}
for(c=0; c<ncol; c++)
{
{
tohcol(c);
}
}
{
}
}