| 117 | } |
| 118 | |
| 119 | int xdi_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, xdemitconf_t const *xecfg, xdemitcb_t *xecb) |
| 120 | { |
| 121 | mmfile_t a = *mf1; |
| 122 | mmfile_t b = *mf2; |
| 123 | |
| 124 | if (mf1->size > MAX_XDIFF_SIZE || mf2->size > MAX_XDIFF_SIZE) |
| 125 | return -1; |
| 126 | |
| 127 | if (!xecfg->ctxlen && !(xecfg->flags & XDL_EMIT_FUNCCONTEXT)) |
| 128 | trim_common_tail(&a, &b); |
| 129 | |
| 130 | return xdl_diff(&a, &b, xpp, xecfg, xecb); |
| 131 | } |
| 132 | |
| 133 | int xdi_diff_outf(mmfile_t *mf1, mmfile_t *mf2, |
| 134 | xdiff_emit_hunk_fn hunk_fn, |
no test coverage detected