1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-29 18:14:58 +02:00

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

This commit is contained in:
Werner Almesberger 2012-07-11 23:11:08 -03:00
parent 2875940239
commit 8ee13bdb05
2 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,8 @@ void add_lib(struct lib *lib, const char *path)
file = alloc_type(struct file);
file->path = stralloc(path);
file->entries = NULL;
file->next = lib->files;
file->lib = lib;
file->next = lib->files;
lib->files = file;
lib->add_lib(lib, path);

View File

@ -27,6 +27,7 @@ struct entry {
struct file {
const char *path;
struct entry *entries;
const struct lib *lib;
struct file *next;
};