while (cp) {
cellp = cp->u.cp;
cnt++;
- cp = (pitem *) dtlink(cdict, (Dtlink_t *) cp);
+ cp = (pitem *)dtlink(cdict, cp);
}
if (rp->ruled) {
addIntSet(is, r + 1);
}
- rp = (pitem *) dtlink(rows, (Dtlink_t *) rp);
+ rp = (pitem *)dtlink(rows, rp);
r++;
}
n_rows = MAX(r + cellp->rspan, n_rows);
if (inIntSet(is, r + cellp->rspan))
cellp->ruled |= HTML_HRULE;
- cp = (pitem *) dtlink(cdict, (Dtlink_t *) cp);
+ cp = (pitem *)dtlink(cdict, cp);
}
- rp = (pitem *) dtlink(rows, (Dtlink_t *) rp);
+ rp = (pitem *)dtlink(rows, rp);
r++;
}
tbl->rc = n_rows;
graph_t *cg = agopen("cg", Agstrictdirected, NULL);
agbindrec(cg, "Agraphinfo_t", sizeof(Agraphinfo_t), true); // graph custom data
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
n = agnode(cg, agnameof(p->np), 1); /* FIX */
agbindrec(n, "Agnodeinfo_t", sizeof(Agnodeinfo_t), true); //node custom data
ND_alg(n) = p;
lastn = GD_nlist(cg) = n;
}
}
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
- for (nxp = (nitem *) dtlink(link, (Dtlink_t *) p); nxp;
- nxp = (nitem *) dtlink(list, (Dtlink_t *) nxp)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
+ for (nxp = (nitem *)dtlink(link, p); nxp; nxp = (nitem *)dtlink(list, nxp)) {
e = NULL;
if (intersect(p, nxp)) {
double delta = dist(&p->bb, &nxp->bb);
}
}
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
n = p->cnode;
for (e = agfstout(cg,n); e; e = agnxtout(cg,e)) {
elist_append(e, ND_out(n));
/* count distinct nodes */
cnt = 0;
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
if (oldval != p->val) {
oldval = p->val;
cnt++;
/* construct basic chain to enforce left to right order */
oldval = -INT_MAX;
lcnt = 0;
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
if (oldval != p->val) {
oldval = p->val;
/* n = newNode (cg); */
* FIX: Incremental algorithm to construct trans. reduction?
*/
vg = agopen("vg", Agstrictdirected, NULL);
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
n = agnode(vg, agnameof(p->np), 1); /* FIX */
agbindrec(n, "Agnodeinfo_t", sizeof(Agnodeinfo_t), true); //node custom data
p->vnode = n;
ND_alg(n) = p;
}
oldval = -INT_MAX;
- for (p = (nitem *) dtflatten(list); p;
- p = (nitem *) dtlink(list, (Dtlink_t *) p)) {
+ for (p = (nitem *)dtflatten(list); p; p = (nitem *)dtlink(list, p)) {
if (oldval != p->val) { /* new pos: reset nxt */
oldval = p->val;
- for (nxt = (nitem *) dtlink(link, (Dtlink_t *) p); nxt;
- nxt = (nitem *) dtlink(list, (Dtlink_t *) nxt)) {
+ for (nxt = (nitem *)dtlink(link, p); nxt;
+ nxt = (nitem *)dtlink(list, nxt)) {
if (nxt->val != oldval)
break;
}
if (!nxt)
break;
}
- for (nxp = nxt; nxp;
- nxp = (nitem *) dtlink(list, (Dtlink_t *) nxp)) {
+ for (nxp = nxt; nxp; nxp = (nitem *)dtlink(list, nxp)) {
if (intersect(p, nxp))
agedge(vg, p->vnode, nxp->vnode, NULL, 1);
}