xdiff-interface: prepare for allowing early return
Change the function prototype of xdiff_emit_line_fn to return an "int" instead of "void". Change all of those functions to "return 0", nothing checks those return values yet, and no behavior is being changed. In subsequent commits the interface will be changed to allow early return via this new return value. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
5b0672a26e
commit
a8d5eb6dc0
@ -11,7 +11,7 @@
|
||||
*/
|
||||
#define MAX_XDIFF_SIZE (1024UL * 1024 * 1023)
|
||||
|
||||
typedef void (*xdiff_emit_line_fn)(void *, char *, unsigned long);
|
||||
typedef int (*xdiff_emit_line_fn)(void *, char *, unsigned long);
|
||||
typedef void (*xdiff_emit_hunk_fn)(void *data,
|
||||
long old_begin, long old_nr,
|
||||
long new_begin, long new_nr,
|
||||
|
Reference in New Issue
Block a user