2018-05-16 05:48:42 +08:00
|
|
|
#ifndef ALLOC_H
|
|
|
|
#define ALLOC_H
|
|
|
|
|
2018-08-16 01:54:05 +08:00
|
|
|
struct alloc_state;
|
2018-05-16 05:48:42 +08:00
|
|
|
struct tree;
|
|
|
|
struct commit;
|
|
|
|
struct tag;
|
2018-08-16 01:54:05 +08:00
|
|
|
struct repository;
|
2018-05-16 05:48:42 +08: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-16 01:54:06 +08:00
|
|
|
struct alloc_state *allocate_alloc_state(void);
|
2018-05-16 05:48:42 +08:00
|
|
|
void clear_alloc_state(struct alloc_state *s);
|
|
|
|
|
|
|
|
#endif
|