mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-30 02:41:32 +02:00
gencat/libs.[ch]: keep back pointer to file in "struct entry"
This commit is contained in:
parent
e62c717db1
commit
6e0015cdd6
@ -62,6 +62,7 @@ struct entry *new_entry(struct lib *lib, int units)
|
|||||||
e = alloc_type(struct entry);
|
e = alloc_type(struct entry);
|
||||||
e->names = NULL;
|
e->names = NULL;
|
||||||
e->units = units;
|
e->units = units;
|
||||||
|
e->file = lib->files;
|
||||||
e->next = lib->files->entries;
|
e->next = lib->files->entries;
|
||||||
lib->files->entries = e;
|
lib->files->entries = e;
|
||||||
return e;
|
return e;
|
||||||
|
@ -20,6 +20,7 @@ struct name {
|
|||||||
struct entry {
|
struct entry {
|
||||||
struct name *names;
|
struct name *names;
|
||||||
int units;
|
int units;
|
||||||
|
const struct file *file;
|
||||||
struct entry *next;
|
struct entry *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user