Revision 69e6544998892a2bd3c785cd238c786da40cf6a3 authored by Junio C Hamano on 17 October 2016, 20:25:21 UTC, committed by Junio C Hamano on 17 October 2016, 20:25:21 UTC
Code cleanup.

* rs/cocci:
  use strbuf_add_unique_abbrev() for adding short hashes, part 3
  remove unnecessary NULL check before free(3)
2 parent s 9424bf2 + a94bb68
Raw File
decorate.h
#ifndef DECORATE_H
#define DECORATE_H

struct object_decoration {
	const struct object *base;
	void *decoration;
};

struct decoration {
	const char *name;
	unsigned int size, nr;
	struct object_decoration *hash;
};

extern void *add_decoration(struct decoration *n, const struct object *obj, void *decoration);
extern void *lookup_decoration(struct decoration *n, const struct object *obj);

#endif
back to top