Fixes recursion bug in disambiguate_in().
[ohcount] / doc / html / sourcefile_8h.html
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/sourcefile.h File Reference</title>
4 <link href="tabs.css" rel="stylesheet" type="text/css">
5 <link href="doxygen.css" rel="stylesheet" type="text/css">
6 </head><body>
7 <!-- Generated by Doxygen 1.5.9 -->
8 <div class="navigation" id="top">
9   <div class="tabs">
10     <ul>
11       <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12       <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13       <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
14       <li class="current"><a href="files.html"><span>Files</span></a></li>
15     </ul>
16   </div>
17   <div class="tabs">
18     <ul>
19       <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20       <li><a href="globals.html"><span>Globals</span></a></li>
21     </ul>
22   </div>
23 </div>
24 <div class="contents">
25 <h1>/Users/andy/dev/ohcount/src/sourcefile.h File Reference</h1><code>#include &quot;<a class="el" href="loc_8h_source.html">loc.h</a>&quot;</code><br>
26 <code>#include &quot;<a class="el" href="parsed__language_8h_source.html">parsed_language.h</a>&quot;</code><br>
27
28 <p>
29 <a href="sourcefile_8h_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
30 <tr><td></td></tr>
31 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
32 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new</a> (const char *filepath)</td></tr>
33
34 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#0f98a5da511c34ff772e648ec13915ff">ohcount_sourcefile_set_diskpath</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, const char *diskpath)</td></tr>
35
36 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#46b6f512d9afd86e9f9d6c39bdbe9252">ohcount_sourcefile_set_contents</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, const char *contents)</td></tr>
37
38 <tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#d78d1d1726970dbcdb8b999f1ab7c175">ohcount_sourcefile_get_contents</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
39
40 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#f0bda4d5eb8ebae78653881196d1b2ea">ohcount_sourcefile_get_contents_size</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
41
42 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#f34b9fa3dc4968fe54d261404a6aa609">ohcount_sourcefile_set_language</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, const char *language)</td></tr>
43
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#4e26432b8859af9b569e7ceb76a0c4f2">ohcount_sourcefile_get_language</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
45
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#2be63654c50b188e223a349b27cdcb92">ohcount_sourcefile_parse</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
47
48 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structParsedLanguageListItem.html">ParsedLanguageList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#ac4df12ae1934a82e8a5fa0418da898b">ohcount_sourcefile_get_parsed_language_list</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
49
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#b57d1d049bfd63e3afb384ca38503458">ohcount_sourcefile_parse_with_callback</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, void(*callback)(const char *, const char *, int, int, void *), void *userdata)</td></tr>
51
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#844a8c3940e726e944e087fdb519d24a">ohcount_sourcefile_parse_entities_with_callback</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, void(*callback)(const char *, const char *, int, int, void *), void *userdata)</td></tr>
53
54 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structLicenseListItem.html">LicenseList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#c8301992dd8f9eb8af00f04404c8ddac">ohcount_sourcefile_get_license_list</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
55
56 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structLocListItem.html">LocList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#6f2cfdb608e1b2c02546dd7f82c7f0ae">ohcount_sourcefile_get_loc_list</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
57
58 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structLocDeltaListItem.html">LocDeltaList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#8095075cc741f56ec8e85856c8e33952">ohcount_sourcefile_diff</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *from, <a class="el" href="structSourceFile.html">SourceFile</a> *to)</td></tr>
59
60 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structLocDelta.html">LocDelta</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#16576e970ec536ba779ce20426e4184b">ohcount_sourcefile_calc_loc_delta</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *from, const char *language, <a class="el" href="structSourceFile.html">SourceFile</a> *to)</td></tr>
61
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#a2b205a57495f4362a89a415889e80dc">ohcount_sourcefile_set_filenames</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, char **filenames)</td></tr>
63
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">char **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#f717654d914aaf5630438d84852690ea">ohcount_sourcefile_get_filenames</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
65
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#ecebea5934ca15350c7aefc0283f28c3">ohcount_sourcefile_free</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile)</td></tr>
67
68 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structSourceFileListItem.html">SourceFileList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new</a> ()</td></tr>
69
70 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#9645f2e3e3cdf8a12b21c7658fe99d52">ohcount_sourcefile_list_add_file</a> (<a class="el" href="structSourceFileListItem.html">SourceFileList</a> *list, const char *filepath)</td></tr>
71
72 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#0341ae7733a4f6d42af9723fe61ea7ca">ohcount_sourcefile_list_add_directory</a> (<a class="el" href="structSourceFileListItem.html">SourceFileList</a> *list, const char *directory)</td></tr>
73
74 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structLocListItem.html">LocList</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#aa1f233ca6c060ad519feae0b535d95a">ohcount_sourcefile_list_analyze_languages</a> (<a class="el" href="structSourceFileListItem.html">SourceFileList</a> *list)</td></tr>
75
76 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sourcefile_8h.html#6651000741c6ab4d4a17ed2ecb12aa7d">ohcount_sourcefile_list_free</a> (<a class="el" href="structSourceFileListItem.html">SourceFileList</a> *list)</td></tr>
77
78 </table>
79 <hr><h2>Function Documentation</h2>
80 <a class="anchor" name="16576e970ec536ba779ce20426e4184b"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_calc_loc_delta" ref="16576e970ec536ba779ce20426e4184b" args="(SourceFile *from, const char *language, SourceFile *to)" -->
81 <div class="memitem">
82 <div class="memproto">
83       <table class="memname">
84         <tr>
85           <td class="memname"><a class="el" href="structLocDelta.html">LocDelta</a>* ohcount_sourcefile_calc_loc_delta           </td>
86           <td>(</td>
87           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
88           <td class="paramname"> <em>from</em>, </td>
89         </tr>
90         <tr>
91           <td class="paramkey"></td>
92           <td></td>
93           <td class="paramtype">const char *&nbsp;</td>
94           <td class="paramname"> <em>language</em>, </td>
95         </tr>
96         <tr>
97           <td class="paramkey"></td>
98           <td></td>
99           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
100           <td class="paramname"> <em>to</em></td><td>&nbsp;</td>
101         </tr>
102         <tr>
103           <td></td>
104           <td>)</td>
105           <td></td><td></td><td></td>
106         </tr>
107       </table>
108 </div>
109 <div class="memdoc">
110
111 <p>
112 Returns a <a class="el" href="structLocDelta.html" title="Tracks changes in lines of code, comments, and blank lines for a single language...">LocDelta</a> reflecting the changes from one revision of a <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to another for a given language. The given language is not copied and may not be 'free'd. Use a language defined in <a class="el" href="languages_8h.html">src/languages.h</a>. The returned pointer must be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
113   <table border="0" cellspacing="2" cellpadding="0">
114     <tr><td valign="top"></td><td valign="top"><em>from</em>&nbsp;</td><td>The reference <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
115     <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>The language to calculate the <a class="el" href="structLocDelta.html" title="Tracks changes in lines of code, comments, and blank lines for a single language...">LocDelta</a> from. </td></tr>
116     <tr><td valign="top"></td><td valign="top"><em>to</em>&nbsp;</td><td>The <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to compare the reference <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to (typically a later revision instead of a completely different <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>). </td></tr>
117   </table>
118 </dl>
119 <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="structLocDelta.html" title="Tracks changes in lines of code, comments, and blank lines for a single language...">LocDelta</a> </dd></dl>
120
121 </div>
122 </div><p>
123 <a class="anchor" name="8095075cc741f56ec8e85856c8e33952"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_diff" ref="8095075cc741f56ec8e85856c8e33952" args="(SourceFile *from, SourceFile *to)" -->
124 <div class="memitem">
125 <div class="memproto">
126       <table class="memname">
127         <tr>
128           <td class="memname"><a class="el" href="structLocDeltaListItem.html">LocDeltaList</a>* ohcount_sourcefile_diff           </td>
129           <td>(</td>
130           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
131           <td class="paramname"> <em>from</em>, </td>
132         </tr>
133         <tr>
134           <td class="paramkey"></td>
135           <td></td>
136           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
137           <td class="paramname"> <em>to</em></td><td>&nbsp;</td>
138         </tr>
139         <tr>
140           <td></td>
141           <td>)</td>
142           <td></td><td></td><td></td>
143         </tr>
144       </table>
145 </div>
146 <div class="memdoc">
147
148 <p>
149 Returns a LocDeltaList reflecting the changes from one revision of a <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to another for all languages. The returned pointer must be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
150   <table border="0" cellspacing="2" cellpadding="0">
151     <tr><td valign="top"></td><td valign="top"><em>from</em>&nbsp;</td><td>The reference <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
152     <tr><td valign="top"></td><td valign="top"><em>to</em>&nbsp;</td><td>The <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to compare the reference <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to (typically a later revision instead of a completely different <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>). </td></tr>
153   </table>
154 </dl>
155 <dl class="return" compact><dt><b>Returns:</b></dt><dd>LocDeltaList </dd></dl>
156
157 </div>
158 </div><p>
159 <a class="anchor" name="ecebea5934ca15350c7aefc0283f28c3"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_free" ref="ecebea5934ca15350c7aefc0283f28c3" args="(SourceFile *sourcefile)" -->
160 <div class="memitem">
161 <div class="memproto">
162       <table class="memname">
163         <tr>
164           <td class="memname">void ohcount_sourcefile_free           </td>
165           <td>(</td>
166           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
167           <td class="paramname"> <em>sourcefile</em>          </td>
168           <td>&nbsp;)&nbsp;</td>
169           <td></td>
170         </tr>
171       </table>
172 </div>
173 <div class="memdoc">
174
175 <p>
176 Frees a <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
177   <table border="0" cellspacing="2" cellpadding="0">
178     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
179   </table>
180 </dl>
181
182 </div>
183 </div><p>
184 <a class="anchor" name="d78d1d1726970dbcdb8b999f1ab7c175"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_contents" ref="d78d1d1726970dbcdb8b999f1ab7c175" args="(SourceFile *sourcefile)" -->
185 <div class="memitem">
186 <div class="memproto">
187       <table class="memname">
188         <tr>
189           <td class="memname">char* ohcount_sourcefile_get_contents           </td>
190           <td>(</td>
191           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
192           <td class="paramname"> <em>sourcefile</em>          </td>
193           <td>&nbsp;)&nbsp;</td>
194           <td></td>
195         </tr>
196       </table>
197 </div>
198 <div class="memdoc">
199
200 <p>
201 Returns the file contents of a given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. The returned pointer is used internally and may not be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
202   <table border="0" cellspacing="2" cellpadding="0">
203     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
204   </table>
205 </dl>
206 <dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to string file contents. </dd></dl>
207
208 </div>
209 </div><p>
210 <a class="anchor" name="f0bda4d5eb8ebae78653881196d1b2ea"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_contents_size" ref="f0bda4d5eb8ebae78653881196d1b2ea" args="(SourceFile *sourcefile)" -->
211 <div class="memitem">
212 <div class="memproto">
213       <table class="memname">
214         <tr>
215           <td class="memname">int ohcount_sourcefile_get_contents_size           </td>
216           <td>(</td>
217           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
218           <td class="paramname"> <em>sourcefile</em>          </td>
219           <td>&nbsp;)&nbsp;</td>
220           <td></td>
221         </tr>
222       </table>
223 </div>
224 <div class="memdoc">
225
226 <p>
227 Returns the size of the file contents of a given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
228   <table border="0" cellspacing="2" cellpadding="0">
229     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
230   </table>
231 </dl>
232 <dl class="return" compact><dt><b>Returns:</b></dt><dd>size of the file's contents. </dd></dl>
233
234 </div>
235 </div><p>
236 <a class="anchor" name="f717654d914aaf5630438d84852690ea"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_filenames" ref="f717654d914aaf5630438d84852690ea" args="(SourceFile *sourcefile)" -->
237 <div class="memitem">
238 <div class="memproto">
239       <table class="memname">
240         <tr>
241           <td class="memname">char** ohcount_sourcefile_get_filenames           </td>
242           <td>(</td>
243           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
244           <td class="paramname"> <em>sourcefile</em>          </td>
245           <td>&nbsp;)&nbsp;</td>
246           <td></td>
247         </tr>
248       </table>
249 </div>
250 <div class="memdoc">
251
252 <p>
253 Returns a string array of the given SourceFile's directory contents. If the existing 'filenames' field is NULL, the directory is accessed and its listing is returned. The returned pointer and its contents are used internally and must not be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
254   <table border="0" cellspacing="2" cellpadding="0">
255     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
256   </table>
257 </dl>
258 <dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to a list of filenames (NULL-pointer terminated). </dd></dl>
259
260 </div>
261 </div><p>
262 <a class="anchor" name="4e26432b8859af9b569e7ceb76a0c4f2"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_language" ref="4e26432b8859af9b569e7ceb76a0c4f2" args="(SourceFile *sourcefile)" -->
263 <div class="memitem">
264 <div class="memproto">
265       <table class="memname">
266         <tr>
267           <td class="memname">const char* ohcount_sourcefile_get_language           </td>
268           <td>(</td>
269           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
270           <td class="paramname"> <em>sourcefile</em>          </td>
271           <td>&nbsp;)&nbsp;</td>
272           <td></td>
273         </tr>
274       </table>
275 </div>
276 <div class="memdoc">
277
278 <p>
279 Returns the detected language of a given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. The returned pointer is used internally and may not be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
280   <table border="0" cellspacing="2" cellpadding="0">
281     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
282   </table>
283 </dl>
284 <dl class="return" compact><dt><b>Returns:</b></dt><dd>string language name. </dd></dl>
285
286 </div>
287 </div><p>
288 <a class="anchor" name="c8301992dd8f9eb8af00f04404c8ddac"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_license_list" ref="c8301992dd8f9eb8af00f04404c8ddac" args="(SourceFile *sourcefile)" -->
289 <div class="memitem">
290 <div class="memproto">
291       <table class="memname">
292         <tr>
293           <td class="memname"><a class="el" href="structLicenseListItem.html">LicenseList</a>* ohcount_sourcefile_get_license_list           </td>
294           <td>(</td>
295           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
296           <td class="paramname"> <em>sourcefile</em>          </td>
297           <td>&nbsp;)&nbsp;</td>
298           <td></td>
299         </tr>
300       </table>
301 </div>
302 <div class="memdoc">
303
304 <p>
305 Returns a LicenseList of detected licenses in the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. The returned list and its contents are used internally and may not be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
306   <table border="0" cellspacing="2" cellpadding="0">
307     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
308   </table>
309 </dl>
310 <dl class="return" compact><dt><b>Returns:</b></dt><dd>LicenseList </dd></dl>
311
312 </div>
313 </div><p>
314 <a class="anchor" name="6f2cfdb608e1b2c02546dd7f82c7f0ae"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_loc_list" ref="6f2cfdb608e1b2c02546dd7f82c7f0ae" args="(SourceFile *sourcefile)" -->
315 <div class="memitem">
316 <div class="memproto">
317       <table class="memname">
318         <tr>
319           <td class="memname"><a class="el" href="structLocListItem.html">LocList</a>* ohcount_sourcefile_get_loc_list           </td>
320           <td>(</td>
321           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
322           <td class="paramname"> <em>sourcefile</em>          </td>
323           <td>&nbsp;)&nbsp;</td>
324           <td></td>
325         </tr>
326       </table>
327 </div>
328 <div class="memdoc">
329
330 <p>
331 Returns a LocList of total lines of code in each language in the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. The returned list and its contents are used internally and may not be 'free'd. <dl compact><dt><b>Parameters:</b></dt><dd>
332   <table border="0" cellspacing="2" cellpadding="0">
333     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
334   </table>
335 </dl>
336 <dl class="return" compact><dt><b>Returns:</b></dt><dd>LocList </dd></dl>
337
338 </div>
339 </div><p>
340 <a class="anchor" name="ac4df12ae1934a82e8a5fa0418da898b"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_get_parsed_language_list" ref="ac4df12ae1934a82e8a5fa0418da898b" args="(SourceFile *sourcefile)" -->
341 <div class="memitem">
342 <div class="memproto">
343       <table class="memname">
344         <tr>
345           <td class="memname"><a class="el" href="structParsedLanguageListItem.html">ParsedLanguageList</a>* ohcount_sourcefile_get_parsed_language_list           </td>
346           <td>(</td>
347           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
348           <td class="paramname"> <em>sourcefile</em>          </td>
349           <td>&nbsp;)&nbsp;</td>
350           <td></td>
351         </tr>
352       </table>
353 </div>
354 <div class="memdoc">
355
356 <p>
357 Returns the ParsedLanguageList parsed out of the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
358   <table border="0" cellspacing="2" cellpadding="0">
359     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
360   </table>
361 </dl>
362 <dl class="return" compact><dt><b>Returns:</b></dt><dd>ParsedLanguageList </dd></dl>
363
364 </div>
365 </div><p>
366 <a class="anchor" name="0341ae7733a4f6d42af9723fe61ea7ca"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_list_add_directory" ref="0341ae7733a4f6d42af9723fe61ea7ca" args="(SourceFileList *list, const char *directory)" -->
367 <div class="memitem">
368 <div class="memproto">
369       <table class="memname">
370         <tr>
371           <td class="memname">void ohcount_sourcefile_list_add_directory           </td>
372           <td>(</td>
373           <td class="paramtype"><a class="el" href="structSourceFileListItem.html">SourceFileList</a> *&nbsp;</td>
374           <td class="paramname"> <em>list</em>, </td>
375         </tr>
376         <tr>
377           <td class="paramkey"></td>
378           <td></td>
379           <td class="paramtype">const char *&nbsp;</td>
380           <td class="paramname"> <em>directory</em></td><td>&nbsp;</td>
381         </tr>
382         <tr>
383           <td></td>
384           <td>)</td>
385           <td></td><td></td><td></td>
386         </tr>
387       </table>
388 </div>
389 <div class="memdoc">
390
391 <p>
392 Adds the contents of a given directory to a SourceFileList. The given directory may be 'free'd immediately. <dl compact><dt><b>Parameters:</b></dt><dd>
393   <table border="0" cellspacing="2" cellpadding="0">
394     <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>A SourceFileList created by <a class="el" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new()</a>. </td></tr>
395     <tr><td valign="top"></td><td valign="top"><em>directory</em>&nbsp;</td><td>The directory whose contents are to be added to the list. </td></tr>
396   </table>
397 </dl>
398
399 </div>
400 </div><p>
401 <a class="anchor" name="9645f2e3e3cdf8a12b21c7658fe99d52"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_list_add_file" ref="9645f2e3e3cdf8a12b21c7658fe99d52" args="(SourceFileList *list, const char *filepath)" -->
402 <div class="memitem">
403 <div class="memproto">
404       <table class="memname">
405         <tr>
406           <td class="memname">void ohcount_sourcefile_list_add_file           </td>
407           <td>(</td>
408           <td class="paramtype"><a class="el" href="structSourceFileListItem.html">SourceFileList</a> *&nbsp;</td>
409           <td class="paramname"> <em>list</em>, </td>
410         </tr>
411         <tr>
412           <td class="paramkey"></td>
413           <td></td>
414           <td class="paramtype">const char *&nbsp;</td>
415           <td class="paramname"> <em>filepath</em></td><td>&nbsp;</td>
416         </tr>
417         <tr>
418           <td></td>
419           <td>)</td>
420           <td></td><td></td><td></td>
421         </tr>
422       </table>
423 </div>
424 <div class="memdoc">
425
426 <p>
427 Adds a given file to a SourceFileList. The given filepath is copied and may be 'free'd immediately. <dl compact><dt><b>Parameters:</b></dt><dd>
428   <table border="0" cellspacing="2" cellpadding="0">
429     <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>a SourceFileList created by <a class="el" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new()</a>. </td></tr>
430     <tr><td valign="top"></td><td valign="top"><em>filepath</em>&nbsp;</td><td>The full path to the file to be added to the list. </td></tr>
431   </table>
432 </dl>
433
434 </div>
435 </div><p>
436 <a class="anchor" name="aa1f233ca6c060ad519feae0b535d95a"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_list_analyze_languages" ref="aa1f233ca6c060ad519feae0b535d95a" args="(SourceFileList *list)" -->
437 <div class="memitem">
438 <div class="memproto">
439       <table class="memname">
440         <tr>
441           <td class="memname"><a class="el" href="structLocListItem.html">LocList</a>* ohcount_sourcefile_list_analyze_languages           </td>
442           <td>(</td>
443           <td class="paramtype"><a class="el" href="structSourceFileListItem.html">SourceFileList</a> *&nbsp;</td>
444           <td class="paramname"> <em>list</em>          </td>
445           <td>&nbsp;)&nbsp;</td>
446           <td></td>
447         </tr>
448       </table>
449 </div>
450 <div class="memdoc">
451
452 <p>
453 Returns a new LocList for all files in the given SourceFileList. <dl compact><dt><b>Parameters:</b></dt><dd>
454   <table border="0" cellspacing="2" cellpadding="0">
455     <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>A SourceFileList created by <a class="el" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new()</a>. </td></tr>
456   </table>
457 </dl>
458 <dl class="return" compact><dt><b>Returns:</b></dt><dd>LocList </dd></dl>
459
460 </div>
461 </div><p>
462 <a class="anchor" name="6651000741c6ab4d4a17ed2ecb12aa7d"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_list_free" ref="6651000741c6ab4d4a17ed2ecb12aa7d" args="(SourceFileList *list)" -->
463 <div class="memitem">
464 <div class="memproto">
465       <table class="memname">
466         <tr>
467           <td class="memname">void ohcount_sourcefile_list_free           </td>
468           <td>(</td>
469           <td class="paramtype"><a class="el" href="structSourceFileListItem.html">SourceFileList</a> *&nbsp;</td>
470           <td class="paramname"> <em>list</em>          </td>
471           <td>&nbsp;)&nbsp;</td>
472           <td></td>
473         </tr>
474       </table>
475 </div>
476 <div class="memdoc">
477
478 <p>
479 Frees the memory allocated for a given SourceFileList. <dl compact><dt><b>Parameters:</b></dt><dd>
480   <table border="0" cellspacing="2" cellpadding="0">
481     <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>A SourceFileList created by <a class="el" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new()</a>. </td></tr>
482   </table>
483 </dl>
484
485 </div>
486 </div><p>
487 <a class="anchor" name="82c7b67a2f332af1da50bb86ee86d216"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_list_new" ref="82c7b67a2f332af1da50bb86ee86d216" args="()" -->
488 <div class="memitem">
489 <div class="memproto">
490       <table class="memname">
491         <tr>
492           <td class="memname"><a class="el" href="structSourceFileListItem.html">SourceFileList</a>* ohcount_sourcefile_list_new           </td>
493           <td>(</td>
494           <td class="paramname">          </td>
495           <td>&nbsp;)&nbsp;</td>
496           <td></td>
497         </tr>
498       </table>
499 </div>
500 <div class="memdoc">
501
502 <p>
503 Creates a new SourceFileList that is initially empty. Files can be added using <a class="el" href="sourcefile_8h.html#9645f2e3e3cdf8a12b21c7658fe99d52">ohcount_sourcefile_list_add_file()</a>. Directories can be added using <a class="el" href="sourcefile_8h.html#0341ae7733a4f6d42af9723fe61ea7ca">ohcount_sourcefile_list_add_directory()</a>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>SourceFileList </dd></dl>
504
505 </div>
506 </div><p>
507 <a class="anchor" name="a2a2f198bc5d0cae789b7efc92717ea1"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_new" ref="a2a2f198bc5d0cae789b7efc92717ea1" args="(const char *filepath)" -->
508 <div class="memitem">
509 <div class="memproto">
510       <table class="memname">
511         <tr>
512           <td class="memname"><a class="el" href="structSourceFile.html">SourceFile</a>* ohcount_sourcefile_new           </td>
513           <td>(</td>
514           <td class="paramtype">const char *&nbsp;</td>
515           <td class="paramname"> <em>filepath</em>          </td>
516           <td>&nbsp;)&nbsp;</td>
517           <td></td>
518         </tr>
519       </table>
520 </div>
521 <div class="memdoc">
522
523 <p>
524 Creates and returns a new <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> from a given filepath. The given filepath is copied and may be 'free'd immediately. <dl compact><dt><b>Parameters:</b></dt><dd>
525   <table border="0" cellspacing="2" cellpadding="0">
526     <tr><td valign="top"></td><td valign="top"><em>filepath</em>&nbsp;</td><td>The path to a file on disk. </td></tr>
527   </table>
528 </dl>
529 <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> </dd></dl>
530
531 </div>
532 </div><p>
533 <a class="anchor" name="2be63654c50b188e223a349b27cdcb92"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_parse" ref="2be63654c50b188e223a349b27cdcb92" args="(SourceFile *sourcefile)" -->
534 <div class="memitem">
535 <div class="memproto">
536       <table class="memname">
537         <tr>
538           <td class="memname">void ohcount_sourcefile_parse           </td>
539           <td>(</td>
540           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
541           <td class="paramname"> <em>sourcefile</em>          </td>
542           <td>&nbsp;)&nbsp;</td>
543           <td></td>
544         </tr>
545       </table>
546 </div>
547 <div class="memdoc">
548
549 <p>
550 Parses the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> with the default callback that keeps track of the number of lines of code, comments, and blank lines. <dl compact><dt><b>Parameters:</b></dt><dd>
551   <table border="0" cellspacing="2" cellpadding="0">
552     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
553   </table>
554 </dl>
555
556 </div>
557 </div><p>
558 <a class="anchor" name="844a8c3940e726e944e087fdb519d24a"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_parse_entities_with_callback" ref="844a8c3940e726e944e087fdb519d24a" args="(SourceFile *sourcefile, void(*callback)(const char *, const char *, int, int, void *), void *userdata)" -->
559 <div class="memitem">
560 <div class="memproto">
561       <table class="memname">
562         <tr>
563           <td class="memname">void ohcount_sourcefile_parse_entities_with_callback           </td>
564           <td>(</td>
565           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
566           <td class="paramname"> <em>sourcefile</em>, </td>
567         </tr>
568         <tr>
569           <td class="paramkey"></td>
570           <td></td>
571           <td class="paramtype">void(*)(const char *, const char *, int, int, void *)&nbsp;</td>
572           <td class="paramname"> <em>callback</em>, </td>
573         </tr>
574         <tr>
575           <td class="paramkey"></td>
576           <td></td>
577           <td class="paramtype">void *&nbsp;</td>
578           <td class="paramname"> <em>userdata</em></td><td>&nbsp;</td>
579         </tr>
580         <tr>
581           <td></td>
582           <td>)</td>
583           <td></td><td></td><td></td>
584         </tr>
585       </table>
586 </div>
587 <div class="memdoc">
588
589 <p>
590 Parses the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> with a specific callback. The callback is called for each entity parsed, not line. <dl compact><dt><b>Parameters:</b></dt><dd>
591   <table border="0" cellspacing="2" cellpadding="0">
592     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
593     <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td>The callback function to call for every entity parsed. </td></tr>
594     <tr><td valign="top"></td><td valign="top"><em>userdata</em>&nbsp;</td><td>Userdata to pass to the callback function. </td></tr>
595   </table>
596 </dl>
597
598 </div>
599 </div><p>
600 <a class="anchor" name="b57d1d049bfd63e3afb384ca38503458"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_parse_with_callback" ref="b57d1d049bfd63e3afb384ca38503458" args="(SourceFile *sourcefile, void(*callback)(const char *, const char *, int, int, void *), void *userdata)" -->
601 <div class="memitem">
602 <div class="memproto">
603       <table class="memname">
604         <tr>
605           <td class="memname">void ohcount_sourcefile_parse_with_callback           </td>
606           <td>(</td>
607           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
608           <td class="paramname"> <em>sourcefile</em>, </td>
609         </tr>
610         <tr>
611           <td class="paramkey"></td>
612           <td></td>
613           <td class="paramtype">void(*)(const char *, const char *, int, int, void *)&nbsp;</td>
614           <td class="paramname"> <em>callback</em>, </td>
615         </tr>
616         <tr>
617           <td class="paramkey"></td>
618           <td></td>
619           <td class="paramtype">void *&nbsp;</td>
620           <td class="paramname"> <em>userdata</em></td><td>&nbsp;</td>
621         </tr>
622         <tr>
623           <td></td>
624           <td>)</td>
625           <td></td><td></td><td></td>
626         </tr>
627       </table>
628 </div>
629 <div class="memdoc">
630
631 <p>
632 Parses the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> with a specific callback. The callback is called for each line parsed, not entity. <dl compact><dt><b>Parameters:</b></dt><dd>
633   <table border="0" cellspacing="2" cellpadding="0">
634     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
635     <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td>The callback function to call for every line parsed. </td></tr>
636     <tr><td valign="top"></td><td valign="top"><em>userdata</em>&nbsp;</td><td>Userdata to pass to the callback function. </td></tr>
637   </table>
638 </dl>
639
640 </div>
641 </div><p>
642 <a class="anchor" name="46b6f512d9afd86e9f9d6c39bdbe9252"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_set_contents" ref="46b6f512d9afd86e9f9d6c39bdbe9252" args="(SourceFile *sourcefile, const char *contents)" -->
643 <div class="memitem">
644 <div class="memproto">
645       <table class="memname">
646         <tr>
647           <td class="memname">void ohcount_sourcefile_set_contents           </td>
648           <td>(</td>
649           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
650           <td class="paramname"> <em>sourcefile</em>, </td>
651         </tr>
652         <tr>
653           <td class="paramkey"></td>
654           <td></td>
655           <td class="paramtype">const char *&nbsp;</td>
656           <td class="paramname"> <em>contents</em></td><td>&nbsp;</td>
657         </tr>
658         <tr>
659           <td></td>
660           <td>)</td>
661           <td></td><td></td><td></td>
662         </tr>
663       </table>
664 </div>
665 <div class="memdoc">
666
667 <p>
668 Sets the contents of the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. The given contents are copied and may be 'free'd immediately. <dl compact><dt><b>Parameters:</b></dt><dd>
669   <table border="0" cellspacing="2" cellpadding="0">
670     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
671     <tr><td valign="top"></td><td valign="top"><em>contents</em>&nbsp;</td><td>The contents to set for sourcefile. </td></tr>
672   </table>
673 </dl>
674
675 </div>
676 </div><p>
677 <a class="anchor" name="0f98a5da511c34ff772e648ec13915ff"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_set_diskpath" ref="0f98a5da511c34ff772e648ec13915ff" args="(SourceFile *sourcefile, const char *diskpath)" -->
678 <div class="memitem">
679 <div class="memproto">
680       <table class="memname">
681         <tr>
682           <td class="memname">void ohcount_sourcefile_set_diskpath           </td>
683           <td>(</td>
684           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
685           <td class="paramname"> <em>sourcefile</em>, </td>
686         </tr>
687         <tr>
688           <td class="paramkey"></td>
689           <td></td>
690           <td class="paramtype">const char *&nbsp;</td>
691           <td class="paramname"> <em>diskpath</em></td><td>&nbsp;</td>
692         </tr>
693         <tr>
694           <td></td>
695           <td>)</td>
696           <td></td><td></td><td></td>
697         </tr>
698       </table>
699 </div>
700 <div class="memdoc">
701
702 <p>
703 Sets the filepath on the disk of the given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. This is only used if the SourceFile's filepath field is not accurate, typically only in language detection. <dl compact><dt><b>Parameters:</b></dt><dd>
704   <table border="0" cellspacing="2" cellpadding="0">
705     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
706     <tr><td valign="top"></td><td valign="top"><em>diskpath</em>&nbsp;</td><td>The real path to the file on disk. </td></tr>
707   </table>
708 </dl>
709
710 </div>
711 </div><p>
712 <a class="anchor" name="a2b205a57495f4362a89a415889e80dc"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_set_filenames" ref="a2b205a57495f4362a89a415889e80dc" args="(SourceFile *sourcefile, char **filenames)" -->
713 <div class="memitem">
714 <div class="memproto">
715       <table class="memname">
716         <tr>
717           <td class="memname">void ohcount_sourcefile_set_filenames           </td>
718           <td>(</td>
719           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
720           <td class="paramname"> <em>sourcefile</em>, </td>
721         </tr>
722         <tr>
723           <td class="paramkey"></td>
724           <td></td>
725           <td class="paramtype">char **&nbsp;</td>
726           <td class="paramname"> <em>filenames</em></td><td>&nbsp;</td>
727         </tr>
728         <tr>
729           <td></td>
730           <td>)</td>
731           <td></td><td></td><td></td>
732         </tr>
733       </table>
734 </div>
735 <div class="memdoc">
736
737 <p>
738 Sets the given SourceFile's directory contents to the string array given. The given array is copied and may be 'free'd immediately. <dl compact><dt><b>Parameters:</b></dt><dd>
739   <table border="0" cellspacing="2" cellpadding="0">
740     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
741     <tr><td valign="top"></td><td valign="top"><em>filenames</em>&nbsp;</td><td>String array of filenames. If NULL, the next call to ohcount_sourcefile_get_filenames will access the SourceFile's directory. </td></tr>
742   </table>
743 </dl>
744
745 </div>
746 </div><p>
747 <a class="anchor" name="f34b9fa3dc4968fe54d261404a6aa609"></a><!-- doxytag: member="sourcefile.h::ohcount_sourcefile_set_language" ref="f34b9fa3dc4968fe54d261404a6aa609" args="(SourceFile *sourcefile, const char *language)" -->
748 <div class="memitem">
749 <div class="memproto">
750       <table class="memname">
751         <tr>
752           <td class="memname">void ohcount_sourcefile_set_language           </td>
753           <td>(</td>
754           <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
755           <td class="paramname"> <em>sourcefile</em>, </td>
756         </tr>
757         <tr>
758           <td class="paramkey"></td>
759           <td></td>
760           <td class="paramtype">const char *&nbsp;</td>
761           <td class="paramname"> <em>language</em></td><td>&nbsp;</td>
762         </tr>
763         <tr>
764           <td></td>
765           <td>)</td>
766           <td></td><td></td><td></td>
767         </tr>
768       </table>
769 </div>
770 <div class="memdoc">
771
772 <p>
773 Sets the language of a given <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>. The given language copied and may be 'free'd immediately. <dl compact><dt><b>Parameters:</b></dt><dd>
774   <table border="0" cellspacing="2" cellpadding="0">
775     <tr><td valign="top"></td><td valign="top"><em>sourcefile</em>&nbsp;</td><td>A <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> created by <a class="el" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new()</a>. </td></tr>
776     <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>The language to set the <a class="el" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> to. </td></tr>
777   </table>
778 </dl>
779
780 </div>
781 </div><p>
782 </div>
783 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by&nbsp;
784 <a href="http://www.doxygen.org/index.html">
785 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
786 </body>
787 </html>