mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-29 11:56:15 +02:00
eeshow/sch.h (sch_obj_glabel): indicate global labels (in data) more clearly
This commit is contained in:
parent
d63b534fb3
commit
08de2f7b4b
@ -224,6 +224,7 @@ static bool obj_eq(const struct sch_obj *a, const struct sch_obj *b)
|
||||
return 1;
|
||||
case sch_obj_noconn:
|
||||
return 1;
|
||||
case sch_obj_glabel:
|
||||
case sch_obj_text:
|
||||
if (a->u.text.fn != b->u.text.fn)
|
||||
return 0;
|
||||
|
@ -549,7 +549,8 @@ static bool parse_line(const struct file *file, void *user, const char *line)
|
||||
}
|
||||
*to = 0;
|
||||
obj->u.text.s = s;
|
||||
submit_obj(ctx, sch_obj_text);
|
||||
submit_obj(ctx, obj->u.text.fn == dwg_glabel ?
|
||||
sch_obj_glabel : sch_obj_text);
|
||||
}
|
||||
return 1;
|
||||
case sch_wire:
|
||||
@ -627,6 +628,7 @@ static void free_sheet(struct sheet *sch)
|
||||
for (obj = sch->objs; obj; obj = next) {
|
||||
next = obj->next;
|
||||
switch (obj->type) {
|
||||
case sch_obj_glabel:
|
||||
case sch_obj_text:
|
||||
free((char *) obj->u.text.s);
|
||||
break;
|
||||
|
@ -148,6 +148,7 @@ void sch_render(const struct sheet *sheet)
|
||||
case sch_obj_noconn:
|
||||
dwg_noconn(obj->x, obj->y);
|
||||
break;
|
||||
case sch_obj_glabel:
|
||||
case sch_obj_text:
|
||||
{
|
||||
const struct sch_text *text = &obj->u.text;
|
||||
|
@ -40,6 +40,7 @@ struct sch_obj {
|
||||
sch_obj_junction,
|
||||
sch_obj_noconn,
|
||||
sch_obj_text,
|
||||
sch_obj_glabel,
|
||||
sch_obj_comp,
|
||||
sch_obj_sheet,
|
||||
} type;
|
||||
|
Loading…
Reference in New Issue
Block a user