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:
parent
2875940239
commit
8ee13bdb05
@ -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);
|
||||
|
@ -27,6 +27,7 @@ struct entry {
|
||||
struct file {
|
||||
const char *path;
|
||||
struct entry *entries;
|
||||
const struct lib *lib;
|
||||
struct file *next;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user