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