1 // diff.h written by Mitchell Foral. mitchell<att>caladbolg.net.
2 // See COPYING for license information.
8 * Computes the diff between the lines of two given string buffers.
9 * The results are stored in the passed integer pointers.
10 * Note: The algorithm discussed mentions a check being performed to find lines
11 * matched incorrectly due to hashing; it is not in this implementation.
12 * @param from The diff 'from' buffer.
13 * @param to The diff 'to' buffer.
14 * @param added Int pointer the number of lines added result is stored to.
15 * @param removed Int pointer the number of lines removed result is stored to.
17 void ohcount_calc_diff(const char *from, const char *to, int *added,