1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-09-30 00:35:05 +03:00

eeshow/kicad/delta.c: improve sectioning

This commit is contained in:
Werner Almesberger 2016-08-20 23:17:29 -03:00
parent ab888e7bdc
commit 383676f1ad

View File

@ -352,20 +352,7 @@ bool sheet_eq(const struct sheet *a, const struct sheet *b)
}
static void free_obj(struct sch_obj *obj)
{
/* there may be more to free once we get into cloning components */
free(obj);
}
static void init_res(struct sheet *res)
{
res->title = NULL;
res->objs = NULL;
res->next_obj = &res->objs;
res->next = NULL;
}
/* ----- Merge wires ------------------------------------------------------- */
static int min(int a, int b)
@ -436,6 +423,25 @@ static void merge_wires(struct sch_obj *a)
}
/* ----- Split objects from A and B into only-A, only-B, and A-and-B ------- */
static void free_obj(struct sch_obj *obj)
{
/* there may be more to free once we get into cloning components */
free(obj);
}
static void init_res(struct sheet *res)
{
res->title = NULL;
res->objs = NULL;
res->next_obj = &res->objs;
res->next = NULL;
}
void delta(const struct sheet *a, const struct sheet *b,
struct sheet *res_a, struct sheet *res_b, struct sheet *res_ab)
{