1
0
镜像自地址 git://projects.qi-hardware.com/eda-tools.git 已同步 2025-04-21 12:27:27 +03:00

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

这个提交包含在:
Werner Almesberger
2012-07-11 23:11:08 -03:00
父节点 2875940239
当前提交 8ee13bdb05
修改 2 个文件,包含 3 行新增1 行删除

查看文件

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