/*
* 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"
/* ti.c: classify line intersections */
# include "t..c"
/* determine local environment for intersections */
int
interv(int i, int c)
{
if (c>=ncol || c == 0)
{
if (dboxflg)
{
if (i==0) return(BOT);
return(THRU);
}
if (c>=ncol)
return(0);
}
if (i+1 >= nlin)
kl=0;
else
return(0);
}
int
interh(int i, int c)
{
{
if (c==ncol)
return(LEFT);
if (c==0)
return(RIGHT);
return(THRU);
}
if (i>=nlin) return(0);
return(0);
}
int
up1(int i)
{
i--;
while (instead[i] && i>0) i--;
return(i);
}