1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3 <title>ohcount: /Users/andy/dev/ohcount/src/diff.h File Reference</title>
4 <link href="tabs.css" rel="stylesheet" type="text/css">
5 <link href="doxygen.css" rel="stylesheet" type="text/css">
7 <!-- Generated by Doxygen 1.5.9 -->
8 <div class="navigation" id="top">
11 <li><a href="index.html"><span>Main Page</span></a></li>
12 <li><a href="pages.html"><span>Related Pages</span></a></li>
13 <li><a href="annotated.html"><span>Data Structures</span></a></li>
14 <li class="current"><a href="files.html"><span>Files</span></a></li>
19 <li><a href="files.html"><span>File List</span></a></li>
20 <li><a href="globals.html"><span>Globals</span></a></li>
24 <div class="contents">
25 <h1>/Users/andy/dev/ohcount/src/diff.h File Reference</h1>
27 <a href="diff_8h_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
29 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="diff_8h.html#2158e42dfd5bb377fb1c09aa8bd34acf">ohcount_calc_diff</a> (const char *from, const char *to, int *added, int *removed)</td></tr>
33 <hr><h2>Function Documentation</h2>
34 <a class="anchor" name="2158e42dfd5bb377fb1c09aa8bd34acf"></a><!-- doxytag: member="diff.h::ohcount_calc_diff" ref="2158e42dfd5bb377fb1c09aa8bd34acf" args="(const char *from, const char *to, int *added, int *removed)" -->
36 <div class="memproto">
37 <table class="memname">
39 <td class="memname">void ohcount_calc_diff </td>
41 <td class="paramtype">const char * </td>
42 <td class="paramname"> <em>from</em>, </td>
45 <td class="paramkey"></td>
47 <td class="paramtype">const char * </td>
48 <td class="paramname"> <em>to</em>, </td>
51 <td class="paramkey"></td>
53 <td class="paramtype">int * </td>
54 <td class="paramname"> <em>added</em>, </td>
57 <td class="paramkey"></td>
59 <td class="paramtype">int * </td>
60 <td class="paramname"> <em>removed</em></td><td> </td>
65 <td></td><td></td><td></td>
72 Computes the diff between the lines of two given string buffers. The results are stored in the passed integer pointers. Note: The algorithm discussed mentions a check being performed to find lines matched incorrectly due to hashing; it is not in this implementation. <dl compact><dt><b>Parameters:</b></dt><dd>
73 <table border="0" cellspacing="2" cellpadding="0">
74 <tr><td valign="top"></td><td valign="top"><em>from</em> </td><td>The diff 'from' buffer. </td></tr>
75 <tr><td valign="top"></td><td valign="top"><em>to</em> </td><td>The diff 'to' buffer. </td></tr>
76 <tr><td valign="top"></td><td valign="top"><em>added</em> </td><td>Int pointer the number of lines added result is stored to. </td></tr>
77 <tr><td valign="top"></td><td valign="top"><em>removed</em> </td><td>Int pointer the number of lines removed result is stored to. </td></tr>
84 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by
85 <a href="http://www.doxygen.org/index.html">
86 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>