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
4
walker.c
4
walker.c
@ -22,7 +22,7 @@ void walker_say(struct walker *walker, const char *fmt, ...)
|
||||
static void report_missing(const struct object *obj)
|
||||
{
|
||||
fprintf(stderr, "Cannot obtain needed %s %s\n",
|
||||
obj->type ? typename(obj->type): "object",
|
||||
obj->type ? type_name(obj->type): "object",
|
||||
oid_to_hex(&obj->oid));
|
||||
if (!is_null_oid(¤t_commit_oid))
|
||||
fprintf(stderr, "while processing commit %s.\n",
|
||||
@ -134,7 +134,7 @@ static int process_object(struct walker *walker, struct object *obj)
|
||||
}
|
||||
return error("Unable to determine requirements "
|
||||
"of type %s for %s",
|
||||
typename(obj->type), oid_to_hex(&obj->oid));
|
||||
type_name(obj->type), oid_to_hex(&obj->oid));
|
||||
}
|
||||
|
||||
static int process(struct walker *walker, struct object *obj)
|
||||
|
||||
Reference in New Issue
Block a user