commit - ca85e8bc8fc561d9c93cf1c7d59b4ac8a25f94c1
commit + f579bf773398809ee97341a20c91eadd918bc1ad
blob - e0580aa5e5f76cdaee48726754ed1af7595dfbe3
blob + e47997cd368a717d95c65f2748c4443d8f4f8de4
--- lib/diff_debug.h
+++ lib/diff_debug.h
}
if (left)
print(" %3u", diff_atom_root_idx(left, atom));
- if (right && atom->patience.pos_in_other)
- print(" %3u",
- diff_atom_root_idx(right, atom->patience.pos_in_other));
- print(" %s%s '",
- atom->patience.unique_in_both ? "u" : " ");
if (atom->at == NULL) {
off_t remain = atom->len;
- if (fseek(atom->d->root->f, atom->pos, SEEK_SET) == -1)
+ if (fseek(atom->root->f, atom->pos, SEEK_SET) == -1)
abort(); /* cannot return error */
while (remain > 0) {
char buf[16];
size_t r;
int i;
r = fread(buf, 1, MIN(remain, sizeof(buf)),
- atom->d->root->f);
+ atom->root->f);
if (r == -1)
abort(); /* cannot return error */
if (r == 0)
blob - a3ee66c02ed67883bf020b9f55312657a914e840
blob + deb8913f8f0388bd75c6b20bec62c202217d2854
--- lib/diff_myers.c
+++ lib/diff_myers.c
/* We are traversing negatively, and already
* below the entire graph, nothing will come of
* this. */
- debug(" break");
+ debug(" break\n");
break;
}
- debug(" continue");
+ debug(" continue\n");
continue;
}
debug("- k = %d\n", k);
/* We are traversing negatively, and already
* below the entire graph, nothing will come of
* this. */
- debug(" break");
+ debug(" break\n");
break;
}
- debug(" continue");
+ debug(" continue\n");
continue;
}
debug("- c = %d\n", c);
int best_backward_x;
int best_backward_y;
- debug("~~~ d = %d > max_effort = %d\n", d, max_effort);
+ debug("~~~ HIT d = %d > max_effort = %d\n", d, max_effort);
+ debug_dump_myers_graph(left, right, NULL,
+ kd_forward, d,
+ kd_backward, d);
for (i = d; i >= -d; i -= 2) {
if (i >= -(int)right->atoms.len && i <= (int)left->atoms.len) {
/* We are traversing negatively, and
* already below the entire graph,
* nothing will come of this. */
- debug(" break");
+ debug(" break\n");
break;
}
- debug(" continue");
+ debug(" continue\n");
continue;
}