alloc.h 549 Bytes
Newer Older
1 2 3
#ifndef ALLOC_H
#define ALLOC_H

4
struct alloc_state;
5 6 7
struct tree;
struct commit;
struct tag;
8
struct repository;
9 10 11

void *alloc_blob_node(struct repository *r);
void *alloc_tree_node(struct repository *r);
12
void init_commit_node(struct repository *r, struct commit *c);
13 14 15 16 17
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);

18
struct alloc_state *allocate_alloc_state(void);
19 20 21
void clear_alloc_state(struct alloc_state *s);

#endif