2018-05-15 21:48:42 +00:00
|
|
|
#ifndef ALLOC_H
|
|
|
|
#define ALLOC_H
|
|
|
|
|
2018-08-15 17:54:05 +00:00
|
|
|
struct alloc_state;
|
2018-05-15 21:48:42 +00:00
|
|
|
struct tree;
|
|
|
|
struct commit;
|
|
|
|
struct tag;
|
2018-08-15 17:54:05 +00:00
|
|
|
struct repository;
|
2018-05-15 21:48:42 +00:00
|
|
|
|
|
|
|
void *alloc_blob_node(struct repository *r);
|
|
|
|
void *alloc_tree_node(struct repository *r);
|
2020-06-17 09:14:08 +00:00
|
|
|
void init_commit_node(struct commit *c);
|
2018-05-15 21:48:42 +00:00
|
|
|
void *alloc_commit_node(struct repository *r);
|
|
|
|
void *alloc_tag_node(struct repository *r);
|
|
|
|
void *alloc_object_node(struct repository *r);
|
|
|
|
|
2018-08-15 17:54:06 +00:00
|
|
|
struct alloc_state *allocate_alloc_state(void);
|
2018-05-15 21:48:42 +00:00
|
|
|
void clear_alloc_state(struct alloc_state *s);
|
|
|
|
|
|
|
|
#endif
|