🌐 AI搜索 & 代理 主页
blob: 3f4a0ad310a94bd026f48f48491985e3e2053ee2 [file] [log] [blame]
Stefan Beller14ba97f2018-05-15 21:48:421#ifndef ALLOC_H
2#define ALLOC_H
3
Elijah Newrenef3ca952018-08-15 17:54:054struct alloc_state;
Stefan Beller14ba97f2018-05-15 21:48:425struct tree;
6struct commit;
7struct tag;
Elijah Newrenef3ca952018-08-15 17:54:058struct repository;
Stefan Beller14ba97f2018-05-15 21:48:429
10void *alloc_blob_node(struct repository *r);
11void *alloc_tree_node(struct repository *r);
Abhishek Kumar6da43d92020-06-17 09:14:0812void init_commit_node(struct commit *c);
Stefan Beller14ba97f2018-05-15 21:48:4213void *alloc_commit_node(struct repository *r);
14void *alloc_tag_node(struct repository *r);
15void *alloc_object_node(struct repository *r);
Stefan Beller14ba97f2018-05-15 21:48:4216
Elijah Newren17313102018-08-15 17:54:0617struct alloc_state *allocate_alloc_state(void);
Stefan Beller14ba97f2018-05-15 21:48:4218void clear_alloc_state(struct alloc_state *s);
19
Stefan Beller14ba97f2018-05-15 21:48:4220#endif