t8.c revision b55148877d473978f0b46d593fd6213fa526fcc5
/*
* Copyright 1996 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"
/* t8.c: write out one line of output table */
# include "t..c"
# include <locale.h>
int watchout;
int once;
void puttext(char *, char *, char *);
void funnies(int, int);
void putfont(char *);
void putsize(char *);
/*
* parameters
*
* i: line number for deciding format
* nl: line number for finding data usually identical
*/
void
{
if (i==0) once=0;
for(c=0; c<ncol; c++)
{
if (s==0) continue;
if (vspen(s))
{
if (s>(char *)0 && s<(char *)128)
continue;
}
if (point(s)) continue;
watchout=1;
}
{
return;
}
{
{
case '=':
case '-':
}
return;
}
for(c=0; c<ncol; c++)
{
if (lf>=0)
}
if (vspf)
{
}
vspf=0;
chfont=0;
for(c=0; c<ncol; c++)
{
if (s==0) continue;
if (point(s) ) continue;
fprintf(tabout, ".if (\\n(%c|+\\n(^%c-1v)>\\n(#- .nr #- +(\\n(%c|+\\n(^%c-\\n(#--1v)\n",s,'a'+c,s,'a'+c);
else
}
fullwide(i,'-');
once=1;
{
}
if (chfont)
vct = 0;
for(c=0; c<ncol; c++)
{
{
tohcol(c);
vct += 2;
}
vforml=i;
if (form != 's')
{
}
{
case 'n':
case 'a':
{
if (lused[c]) /*Zero field width*/
{
if (ip>=0)
{
if (exvspen==0)
{
if (cmidx)
vct++;
exvspen=1;
}
}
}
form=1;
break;
}
case 'c':
form=3; break;
case 'r':
form=2; break;
case 'l':
form=1; break;
case '-':
case '=':
continue;
default:
continue;
}
{
/* form: 1 left, 2 right, 3 center adjust */
if (ifline(s))
{
continue;
}
if (filler(s))
{
continue;
}
if (ip>=0)
{
if (exvspen==0)
{
if (cmidx)
vct++;
}
}
if (form!= 1)
if (vspen(s))
vspf=1;
else
if (form !=2)
}
if (ip>=0)
{
if (exvspen==0)
{
if (cmidx)
vct++;
}
}
else
exvspen=0;
/* if lines need to be split for gcos here is the place for a backslash */
{
vct=0;
}
}
if (watchout)
if (vspf)
{
for(c=0; c<ncol; c++)
{
}
}
}
void
{
if (point(s))
{
}
}
void
{
/* write out funny diverted things */
char *fn;
for(c=0; c<ncol; c++)
{
if (point(s)) continue;
if (s==0) continue;
;
switch (ct)
{
case 'n':
case 'c':
break;
case 'l':
break;
case 'a':
break;
case 'r':
break;
}
{
{
}
}
}
{
{
if (dv++ == 0)
tohcol(c);
dv++;
}
}
if (dv)
}
void
{
}
void
putsize(char *s)
{
if (s && *s)
}