2018-05-16 00:48:42 +03:00
|
|
|
#ifndef ALLOC_H
|
|
|
|
#define ALLOC_H
|
|
|
|
|
2018-08-15 20:54:05 +03:00
|
|
|
struct alloc_state;
|
2018-05-16 00:48:42 +03:00
|
|
|
struct tree;
|
|
|
|
struct commit;
|
|
|
|
struct tag;
|
2018-08-15 20:54:05 +03:00
|
|
|
struct repository;
|
2018-05-16 00:48:42 +03:00
|
|
|
|
|
|
|
void *alloc_blob_node(struct repository *r);
|
|
|
|
void *alloc_tree_node(struct repository *r);
|
2020-06-17 12:14:08 +03:00
|
|
|
void init_commit_node(struct commit *c);
|
2018-05-16 00:48:42 +03: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 20:54:06 +03:00
|
|
|
struct alloc_state *allocate_alloc_state(void);
|
2018-05-16 00:48:42 +03:00
|
|
|
void clear_alloc_state(struct alloc_state *s);
|
|
|
|
|
|
|
|
#endif
|