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

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

No files matched your search

+2 -1
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);
+1
View File
@@ -27,6 +27,7 @@ struct entry {
struct file {
const char *path;
struct entry *entries;
const struct lib *lib;
struct file *next;
};