qsort(f->elines, f->n_elines, sizeof(ScfEline*), eline_cmp);
- for (i = 0; i < f->n_elines; i++) {
- el0 = f->elines[i];
-
- scf_loge("i: %ld, el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", i, el0->id, el0->n_conns, el0->n_pins, el0->flags);
- }
- printf("\n\n");
-
if (f->n_elines <= 2)
return 0;
el0->n_lines = 0;
- scf_loge("i: %ld, el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", i, el0->id, el0->n_conns, el0->n_pins, el0->flags);
+ scf_loge("el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el0->id, el0->n_conns, el0->n_pins, el0->flags);
for (j = 0; j < el0->n_conns; j++) {
ec = el0->conns[j];
- scf_logi("j: %ld, lid: %ld, n_cids: %ld\n", j, ec->lid, ec->n_cids);
+ scf_logi("j: %ld, lid: %ld, n_cids: %ld, cid[0]: %ld\n", j, ec->lid, ec->n_cids, ec->cids[0]);
}
printf("\n");
}
l = malloc(sizeof(ScfLine));
if (!l)
return -ENOMEM;
-
+#if 0
if ((SCF_EDA_PIN_NEG | SCF_EDA_PIN_POS) & el->flags)
l->x0 = bx;
l->x0 = bx + d;
else
l->x0 = bx + 1 * d;
-
+#endif
+ l->x0 = bx;
l->y0 = by + (n + j) * d;
l->y1 = l->y0;