usage: add set_warn_routine()
There are already set_die_routine() and set_error_routine(), so let's add set_warn_routine() as this will be needed in a following commit. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
487beee0c3
commit
b83f108b08
5
usage.c
5
usage.c
@ -70,6 +70,11 @@ void set_error_routine(void (*routine)(const char *err, va_list params))
|
||||
error_routine = routine;
|
||||
}
|
||||
|
||||
void set_warn_routine(void (*routine)(const char *warn, va_list params))
|
||||
{
|
||||
warn_routine = routine;
|
||||
}
|
||||
|
||||
void set_die_is_recursing_routine(int (*routine)(void))
|
||||
{
|
||||
die_is_recursing = routine;
|
||||
|
||||
Reference in New Issue
Block a user