return ret;
}
-static int __ses_layout_lines2(ScfEfunction* f)
+static void __ses_layout_npn(ScfEfunction* f)
{
- ScfEline* tmp;
ScfEline* el0;
ScfEline* el1;
- ScfEconn* ec;
size_t i;
size_t j;
- size_t m;
- if (f->n_elines <= 2)
- return 0;
-
- __ses_layout_lines4(f);
-#if 1
for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
if (SCF_EDA_NPN_C == p->id)
cflag = 1;
- m = __ses_find_eline_index(f, c->pins[SCF_EDA_NPN_B]->lid);
+ intptr_t m = __ses_find_eline_index(f, c->pins[SCF_EDA_NPN_B]->lid);
if (ib > m)
ib = m;
scf_logi("mov el%ld [%ld] <--> [%ld] el%ld\n", el0->id, i, ib, el1->id);
}
}
-#endif
+}
+
+static int __ses_layout_lines2(ScfEfunction* f)
+{
+ ScfEline* tmp;
+ ScfEline* el0;
+ ScfEline* el1;
+ ScfEconn* ec;
+
+ size_t i;
+ size_t j;
+ size_t m;
+
+ if (f->n_elines <= 2)
+ return 0;
+
+ __ses_layout_lines4(f);
+
+ __ses_layout_npn(f);
+
#if 1
for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
if (l->x0 > l->x1)
continue;
- if (!prev) {
- snprintf(text, sizeof(text) - 1, "%ld", el->id);
+ if (1 || !prev) {
+ snprintf(text, sizeof(text) - 1, "%ld_%ld", el->id, k);
cairo_move_to (cr, l->x0 - 30, l->y0 + 5);
cairo_show_text(cr, text);