From: yu.dongliang <18588496441@163.com> Date: Sat, 8 Jul 2023 13:34:50 +0000 (+0800) Subject: ses layout X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=34740611eb62ab1630080662c7ce4f7685d9e427;p=ses.git ses layout --- diff --git a/ses_layout.c b/ses_layout.c index df5ae4d..b4e9ffb 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -22,8 +22,8 @@ int epin_cmp(const void* v0, const void* v1) int eline_cmp(const void* v0, const void* v1) { - const ScfEline* el0 = v0; - const ScfEline* el1 = v1; + const ScfEline* el0 = *(const ScfEline**)v0; + const ScfEline* el1 = *(const ScfEline**)v1; if (el0->n_conns < el1->n_conns) return 1; @@ -185,6 +185,8 @@ int ses_lines_same_components(ScfEfunction* f) scf_econn__free(ec); return -ENOMEM; } + + ec = NULL; } } @@ -199,7 +201,7 @@ int ses_lines_same_components(ScfEfunction* f) for (i = 0; i < f->n_elines; i++) { el0 = f->elines[i]; - scf_logi("i: %ld, el0: %ld, n_pins: %ld\n", i, el0->id, el0->n_pins); + scf_loge("i: %ld, el0: %ld, n_conns: %ld, n_pins: %ld\n", i, el0->id, el0->n_conns, el0->n_pins); for (j = 0; j < el0->n_conns; j++) { ec = el0->conns[j];