diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-21 17:41:40 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-21 17:42:02 -0700 |
commit | 42c4b58059fa9af65e90f2c418bb551e30d1d32f (patch) | |
tree | c6aa1b75909009b249ceb768717c27011b73adb4 /cache.h | |
parent | 520635fa3a7781cce412f6b02e165b5d897a99d1 (diff) | |
parent | 100c5f3b0b27ec6617de1a785c4ff481e92636c1 (diff) | |
download | git-42c4b58059fa9af65e90f2c418bb551e30d1d32f.tar.gz git-42c4b58059fa9af65e90f2c418bb551e30d1d32f.tar.xz |
Merge branch 'lt/objalloc'
* 'lt/objalloc':
Clean up object creation to use more common code
Use proper object allocators for unknown object nodes too
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -499,14 +499,11 @@ int decode_85(char *dst, const char *line, int linelen); void encode_85(char *buf, const unsigned char *data, int bytes); /* alloc.c */ -struct blob; -struct tree; -struct commit; -struct tag; -extern struct blob *alloc_blob_node(void); -extern struct tree *alloc_tree_node(void); -extern struct commit *alloc_commit_node(void); -extern struct tag *alloc_tag_node(void); +extern void *alloc_blob_node(void); +extern void *alloc_tree_node(void); +extern void *alloc_commit_node(void); +extern void *alloc_tag_node(void); +extern void *alloc_object_node(void); extern void alloc_report(void); /* trace.c */ |