https://github.com/git/git
Revision c2cbfbd2e28cbe27c194d62183b42f27a6a5bb87 authored by Junio C Hamano on 01 April 2024, 20:21:22 UTC, committed by Junio C Hamano on 01 April 2024, 20:21:36 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cebe702
Raw File
Tip revision: c2cbfbd2e28cbe27c194d62183b42f27a6a5bb87 authored by Junio C Hamano on 01 April 2024, 20:21:22 UTC
The thirteenth batch
Tip revision: c2cbfbd
alloc.h
#ifndef ALLOC_H
#define ALLOC_H

struct alloc_state;
struct tree;
struct commit;
struct tag;
struct repository;

void *alloc_blob_node(struct repository *r);
void *alloc_tree_node(struct repository *r);
void init_commit_node(struct commit *c);
void *alloc_commit_node(struct repository *r);
void *alloc_tag_node(struct repository *r);
void *alloc_object_node(struct repository *r);

struct alloc_state *allocate_alloc_state(void);
void clear_alloc_state(struct alloc_state *s);

#endif
back to top