Initial import of files for generating Doxygen documentation.
[ohcount] / src / diff.h
1 // diff.h written by Mitchell Foral. mitchell<att>caladbolg.net.
2 // See COPYING for license information.
3
4 #ifndef OHCOUNT_DIFF_H
5 #define OHCOUNT_DIFF_H
6
7 /**
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.
16  */
17 void ohcount_calc_diff(const char *from, const char *to, int *added,
18                        int *removed);
19
20 #endif