/*
* 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"
/* tv.c: draw vertical lines */
# include "t..c"
void
{
end++;
vm='v';
/* note: nr 35 has value of 1m outside of linesize */
{
{
epb=2;
else
{
case '-':
exb = "1v-.5m"; break;
case '=':
exb = "1v-.5m";
epb = 1; break;
}
}
if (lwid>1)
{
}
if (lwid==1)
{
}
if (start>0)
{
ept=0;
else
if (sl>=0)
{
case '-':
ext = ".5m"; break;
case '=':
default:
vm = 'm'; break;
}
else
ept = -4;
}
{
ept=0;
vm = 'm';
}
if (lwid>1)
{
}
else if (lwid==1)
{
}
if (exb)
if (epb)
if (linsize)
if (ext)
if (exb)
if (pos)
/* the string #d is either "nl" or ".d" depending
on diversions; on GCOS not the same */
fprintf(tabout, "'\\s0\\v'\\n(\\*(#du-\\n(#%cu+%s", linestop[start]+'a'-1,vm=='v' ? "1v" : "\\n(35u");
if (ext)
if (ept)
if (linsize)
}
}
int
midbar(int i, int c)
{
int k;
k = midbcol(i,c);
if (k==0 && c>0)
k = midbcol(i, c-1);
return(k);
}
int
midbcol(int i, int c)
{
int ct;
c--;
return(ct);
return(ct);
return(0);
}
int
barent(char *s)
{
if (s==0) return (1);
if (!point(s)) return(1);
if (s[0]== '\\') s++;
if (s[1]!= 0)
return(0);
switch(s[0])
{
case '_':
return('-');
case '=':
return('=');
}
return(0);
}