author | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Aug 2008 06:18:22 +0000 (23:18 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Aug 2008 07:30:26 +0000 (00:30 -0700) | ||
commit | 8a3f524bf2ac534b313a7d8e70cc164cef744949 | |
tree | ec390ebbf7cb3d7b441043d18956abf82b40e3ad | tree | snapshot |
parent | b463776086a12c587f6d91c0347641fb6f7ddd72 | commit | diff |
xdiff-interface: hide the whole "xdiff_emit_state" business from the caller
This further enhances xdi_diff_outf() interface so that it takes two
common parameters: the callback function that processes one line at a
time, and a pointer to its application specific callback data structure.
xdi_diff_outf() creates its own "xdiff_emit_state" structure and stashes
these two away inside it, which is used by the lowest level output
function in the xdiff_outf() callchain, consume_one(), to call back to the
application layer. With this restructuring, we lift the requirement that
the caller supplied callback data structure embeds xdiff_emit_state
structure as its first member.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This further enhances xdi_diff_outf() interface so that it takes two
common parameters: the callback function that processes one line at a
time, and a pointer to its application specific callback data structure.
xdi_diff_outf() creates its own "xdiff_emit_state" structure and stashes
these two away inside it, which is used by the lowest level output
function in the xdiff_outf() callchain, consume_one(), to call back to the
application layer. With this restructuring, we lift the requirement that
the caller supplied callback data structure embeds xdiff_emit_state
structure as its first member.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c | diff | blob | history | |
combine-diff.c | diff | blob | history | |
diff.c | diff | blob | history | |
xdiff-interface.c | diff | blob | history | |
xdiff-interface.h | diff | blob | history |