From: yu.dongliang <18588496441@163.com> Date: Tue, 18 Jul 2023 08:38:47 +0000 (+0800) Subject: dfs loop X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=930ae1f6c5cbbe12ef4829e54aa91287e7a3bafc;p=ses.git dfs loop --- diff --git a/Makefile b/Makefile index 2442985..db296b3 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ CFILES += main.c CFILES += scf_eda.pb-c.c CFILES += scf_eda_pb.c CFILES += ses_layout.c +CFILES += ses_loop.c CFLAGS += -g CFLAGS += -I./ diff --git a/ses_layout.c b/ses_layout.c index 8a2589c..2d299a4 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -954,6 +954,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ int ses_layout_board(ScfEboard* b) { ScfEfunction* f; + scf_vector_t* loops; size_t i; size_t j; @@ -983,6 +984,12 @@ int ses_layout_board(ScfEboard* b) y = f->y; w = f->w; h = f->h; + + loops = scf_vector_alloc(); + if (!loops) + return -ENOMEM; + + ses_loop_function(f, loops); } ses_layout_draw(b, x, y, w, h);