bool dyna = false;
int side = 0;
bool clip = true;
- boolean defined;
+ bool defined;
double maxv; /* sufficiently large value outside of range of node */
if (bp) {
b = *bp;
p = pointfof((b.LL.x + b.UR.x) / 2, (b.LL.y + b.UR.y) / 2);
- defined = TRUE;
+ defined = true;
} else {
p.x = p.y = 0.;
if (GD_flip(agraphof(n))) {
b.UR.x = ND_lw(n);
b.LL.x = -b.UR.x;
}
- defined = FALSE;
+ defined = false;
}
maxv = MAX(b.UR.x,b.UR.y);
maxv *= 4.0;
p.x = b.UR.x;
theta = 0.0;
constrain = true;
- defined = TRUE;
+ defined = true;
clip = false;
side = sides & RIGHT;
}
switch (*compass) {
case '\0':
theta = -M_PI * 0.5;
- defined = TRUE;
+ defined = true;
if (ictxt)
p = compassPoint(ictxt, -maxv, ctr.x);
else
break;
case 'e':
theta = -M_PI * 0.25;
- defined = TRUE;
+ defined = true;
if (ictxt)
p = compassPoint(ictxt, -maxv, maxv);
else
break;
case 'w':
theta = -M_PI * 0.75;
- defined = TRUE;
+ defined = true;
if (ictxt)
p = compassPoint(ictxt, -maxv, -maxv);
else
p.x = b.LL.x;
theta = M_PI;
constrain = true;
- defined = TRUE;
+ defined = true;
clip = false;
side = sides & LEFT;
}
clip = false;
switch (*compass) {
case '\0':
- defined = TRUE;
+ defined = true;
theta = M_PI * 0.5;
if (ictxt)
p = compassPoint(ictxt, maxv, ctr.x);
side = sides & TOP;
break;
case 'e':
- defined = TRUE;
+ defined = true;
theta = M_PI * 0.25;
if (ictxt)
p = compassPoint(ictxt, maxv, maxv);
side = sides & (TOP | RIGHT);
break;
case 'w':
- defined = TRUE;
+ defined = true;
theta = M_PI * 0.75;
if (ictxt)
p = compassPoint(ictxt, maxv, -maxv);
pp->order = (int) (MC_SCALE * angle / (2 * M_PI));
}
pp->constrained = constrain ? TRUE : FALSE;
- pp->defined = defined;
+ pp->defined = defined ? TRUE : FALSE;
pp->clip = clip ? TRUE : FALSE;
pp->dyna = dyna ? TRUE : FALSE;
return rv;