mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 11:46:14 +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->names = NULL;
|
||||
e->units = units;
|
||||
e->file = lib->files;
|
||||
e->next = lib->files->entries;
|
||||
lib->files->entries = e;
|
||||
return e;
|
||||
|
@ -20,6 +20,7 @@ struct name {
|
||||
struct entry {
|
||||
struct name *names;
|
||||
int units;
|
||||
const struct file *file;
|
||||
struct entry *next;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user