object: rename function 'typename' to 'type_name'
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
6ca32f4714
commit
debca9d2fe
2
object.h
2
object.h
@ -53,7 +53,7 @@ struct object {
|
||||
struct object_id oid;
|
||||
};
|
||||
|
||||
extern const char *typename(unsigned int type);
|
||||
extern const char *type_name(unsigned int type);
|
||||
extern int type_from_string_gently(const char *str, ssize_t, int gentle);
|
||||
#define type_from_string(str) type_from_string_gently(str, -1, 0)
|
||||
|
||||
|
Reference in New Issue
Block a user