mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 21:57:32 +02:00
eeshow/kicad/delta.c: improve sectioning
This commit is contained in:
parent
ab888e7bdc
commit
383676f1ad
@ -352,20 +352,7 @@ bool sheet_eq(const struct sheet *a, const struct sheet *b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void free_obj(struct sch_obj *obj)
|
/* ----- Merge wires ------------------------------------------------------- */
|
||||||
{
|
|
||||||
/* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int min(int a, int b)
|
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,
|
void delta(const struct sheet *a, const struct sheet *b,
|
||||||
struct sheet *res_a, struct sheet *res_b, struct sheet *res_ab)
|
struct sheet *res_a, struct sheet *res_b, struct sheet *res_ab)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user