| 315 | |
| 316 | |
| 317 | static int diff_hunks(mmfile_t *file_a, mmfile_t *file_b, |
| 318 | xdl_emit_hunk_consume_func_t hunk_func, void *cb_data, int xdl_opts) |
| 319 | { |
| 320 | xpparam_t xpp = {0}; |
| 321 | xdemitconf_t xecfg = {0}; |
| 322 | xdemitcb_t ecb = {NULL}; |
| 323 | |
| 324 | xpp.flags = xdl_opts; |
| 325 | xecfg.hunk_func = hunk_func; |
| 326 | ecb.priv = cb_data; |
| 327 | return xdi_diff(file_a, file_b, &xpp, &xecfg, &ecb); |
| 328 | } |
| 329 | |
| 330 | static const char *get_next_line(const char *start, const char *end) |
| 331 | { |
no test coverage detected