/*
* Copyright 1990 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* t6.c: compute tab stops */
# include "t..c"
void wide(char *, char *, char *);
void
maktab(void)
{
/* define the tab stops of the table */
char *s;
{
{
if (text)
{
{
case 'a':
if (s>(char *)0 && s<(char *)128 && text)
{
}
case 'n':
{
{
}
{
}
continue;
}
case 'r':
case 'c':
case 'l':
{
}
}
}
}
{
}
{
fprintf(tabout, ".if \\n(%d<\\n(%d .nr %d +(\\n(%d-\\n(%d)/2\n",TMP,icol+CRIGHT,icol+CMID,icol+CRIGHT,TMP);
}
{
}
{
{
}
{
}
}
}
/* if even requested, make all columns widest width */
if (evenflg)
{
{
}
{
/* if column not evened just retain old interval */
continue;
/* that nonsense with the 100's and parens tries
to avoid overflow while proportionally shifting
the middle of the number */
}
}
/* now adjust for total table width */
if (expflg)
{
tsep += 1;
else
}
else
{
{
/* the next line is last-ditch effort to avoid zero field width */
/*fprintf(tabout, ".if \\n(%d=0 .nr %d 1\n",icol+CMID, icol+CMID);*/
/* fprintf(tabout, ".if n .if \\n(%d%%24>0 .nr %d +12u\n",icol+CMID, icol+CMID); */
}
}
if (rightl)
".if t .if \\n(TW>\\n(.li .tm Table at line %d file %s is too wide - \\n(TW units\n", iline-1, ifile);
return;
}
void
{
if (point(s))
{
}
else
}
int
filler(char *s)
{
}