1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-30 00:22:27 +02:00

gencat/libs.[ch]: keep back pointer to file in "struct entry"

This commit is contained in:
Werner Almesberger 2012-07-11 22:45:40 -03:00
parent e62c717db1
commit 6e0015cdd6
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}; };