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);
|
|
|
|
void *alloc_commit_node(struct repository *r);
|
|
|
|
void *alloc_tag_node(struct repository *r);
|
|
|
|
void *alloc_object_node(struct repository *r);
|
|
|
|
void alloc_report(struct repository *r);
|
|
|
|
unsigned int alloc_commit_index(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
|