Fixes recursion bug in disambiguate_in().
[ohcount] / doc / html / sourcefile_8h_source.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 Source File</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 <h1>/Users/andy/dev/ohcount/src/sourcefile.h</h1><a href="sourcefile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// sourcefile.h written by Mitchell Foral. mitchell&lt;att&gt;caladbolg.net.</span>
24 <a name="l00002"></a>00002 <span class="comment">// See COPYING for license information.</span>
25 <a name="l00003"></a>00003 
26 <a name="l00004"></a>00004 <span class="preprocessor">#ifndef OHCOUNT_SOURCEFILE_H</span>
27 <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define OHCOUNT_SOURCEFILE_H</span>
28 <a name="l00006"></a>00006 <span class="preprocessor"></span>
29 <a name="l00007"></a>00007 <span class="preprocessor">#include "<a class="code" href="loc_8h.html">loc.h</a>"</span>
30 <a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="parsed__language_8h.html">parsed_language.h</a>"</span>
31 <a name="l00009"></a>00009 
32 <a name="l00016"></a>00016 <a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *<a class="code" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filepath);
33 <a name="l00017"></a>00017 
34 <a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#0f98a5da511c34ff772e648ec13915ff">ohcount_sourcefile_set_diskpath</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
35 <a name="l00026"></a>00026                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *diskpath);
36 <a name="l00027"></a>00027 
37 <a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#46b6f512d9afd86e9f9d6c39bdbe9252">ohcount_sourcefile_set_contents</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
38 <a name="l00035"></a>00035                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *contents);
39 <a name="l00036"></a>00036 
40 <a name="l00043"></a>00043 <span class="keywordtype">char</span> *<a class="code" href="sourcefile_8h.html#d78d1d1726970dbcdb8b999f1ab7c175">ohcount_sourcefile_get_contents</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
41 <a name="l00044"></a>00044 
42 <a name="l00050"></a>00050 <span class="keywordtype">int</span> <a class="code" href="sourcefile_8h.html#f0bda4d5eb8ebae78653881196d1b2ea">ohcount_sourcefile_get_contents_size</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
43 <a name="l00051"></a>00051 
44 <a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#f34b9fa3dc4968fe54d261404a6aa609">ohcount_sourcefile_set_language</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
45 <a name="l00059"></a>00059                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *language);
46 <a name="l00060"></a>00060 
47 <a name="l00067"></a>00067 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="sourcefile_8h.html#4e26432b8859af9b569e7ceb76a0c4f2">ohcount_sourcefile_get_language</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
48 <a name="l00068"></a>00068 
49 <a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#2be63654c50b188e223a349b27cdcb92">ohcount_sourcefile_parse</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
50 <a name="l00075"></a>00075 
51 <a name="l00081"></a>00081 <a class="code" href="structParsedLanguageListItem.html" title="Holds a set of ParsedLanguages in a linked list.">ParsedLanguageList</a> *<a class="code" href="sourcefile_8h.html#ac4df12ae1934a82e8a5fa0418da898b">ohcount_sourcefile_get_parsed_language_list</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>
52 <a name="l00082"></a>00082                                                                 *sourcefile);
53 <a name="l00083"></a>00083 
54 <a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#b57d1d049bfd63e3afb384ca38503458">ohcount_sourcefile_parse_with_callback</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
55 <a name="l00092"></a>00092                                             <span class="keywordtype">void</span> (*callback) (<span class="keyword">const</span> <span class="keywordtype">char</span> *,
56 <a name="l00093"></a>00093                                                               <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,
57 <a name="l00094"></a>00094                                                               <span class="keywordtype">int</span>, <span class="keywordtype">void</span> *),
58 <a name="l00095"></a>00095                                             <span class="keywordtype">void</span> *userdata);
59 <a name="l00096"></a>00096 
60 <a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#844a8c3940e726e944e087fdb519d24a">ohcount_sourcefile_parse_entities_with_callback</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
61 <a name="l00105"></a>00105                                                      <span class="keywordtype">void</span> (*callback)
62 <a name="l00106"></a>00106                                                        (<span class="keyword">const</span> <span class="keywordtype">char</span> *,
63 <a name="l00107"></a>00107                                                         <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,
64 <a name="l00108"></a>00108                                                         <span class="keywordtype">int</span>, <span class="keywordtype">void</span> *),
65 <a name="l00109"></a>00109                                                      <span class="keywordtype">void</span> *userdata);
66 <a name="l00110"></a>00110 
67 <a name="l00118"></a>00118 <a class="code" href="structLicenseListItem.html" title="Holds a list of Licenses in a linked list.">LicenseList</a> *<a class="code" href="sourcefile_8h.html#c8301992dd8f9eb8af00f04404c8ddac">ohcount_sourcefile_get_license_list</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
68 <a name="l00119"></a>00119 
69 <a name="l00128"></a>00128 <a class="code" href="structLocListItem.html" title="Tracks total lines of code, comments, and blanks for multiple languages using a linked...">LocList</a> *<a class="code" href="sourcefile_8h.html#6f2cfdb608e1b2c02546dd7f82c7f0ae">ohcount_sourcefile_get_loc_list</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
70 <a name="l00129"></a>00129 
71 <a name="l00139"></a>00139 <a class="code" href="structLocDeltaListItem.html" title="Tracks changes in lines of code, comments, and blank lines for multiple languages...">LocDeltaList</a> *<a class="code" href="sourcefile_8h.html#8095075cc741f56ec8e85856c8e33952">ohcount_sourcefile_diff</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *from, <a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *to);
72 <a name="l00140"></a>00140 
73 <a name="l00153"></a>00153 <a class="code" href="structLocDelta.html" title="Tracks changes in lines of code, comments, and blank lines for a single language...">LocDelta</a> *<a class="code" href="sourcefile_8h.html#16576e970ec536ba779ce20426e4184b">ohcount_sourcefile_calc_loc_delta</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *from,
74 <a name="l00154"></a>00154                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *language,
75 <a name="l00155"></a>00155                                             <a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *to);
76 <a name="l00156"></a>00156 
77 <a name="l00164"></a>00164 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#a2b205a57495f4362a89a415889e80dc">ohcount_sourcefile_set_filenames</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
78 <a name="l00165"></a>00165                                       <span class="keywordtype">char</span> **filenames);
79 <a name="l00166"></a>00166 
80 <a name="l00176"></a>00176 <span class="keywordtype">char</span> **<a class="code" href="sourcefile_8h.html#f717654d914aaf5630438d84852690ea">ohcount_sourcefile_get_filenames</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
81 <a name="l00177"></a>00177 
82 <a name="l00182"></a>00182 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#ecebea5934ca15350c7aefc0283f28c3">ohcount_sourcefile_free</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
83 <a name="l00183"></a>00183 
84 <a name="l00190"></a>00190 <a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *<a class="code" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new</a>();
85 <a name="l00191"></a>00191 
86 <a name="l00198"></a>00198 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#9645f2e3e3cdf8a12b21c7658fe99d52">ohcount_sourcefile_list_add_file</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list,
87 <a name="l00199"></a>00199                                           <span class="keyword">const</span> <span class="keywordtype">char</span> *filepath);
88 <a name="l00200"></a>00200 
89 <a name="l00207"></a>00207 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#0341ae7733a4f6d42af9723fe61ea7ca">ohcount_sourcefile_list_add_directory</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list,
90 <a name="l00208"></a>00208                                            <span class="keyword">const</span> <span class="keywordtype">char</span> *directory);
91 <a name="l00209"></a>00209 
92 <a name="l00215"></a>00215 <a class="code" href="structLocListItem.html" title="Tracks total lines of code, comments, and blanks for multiple languages using a linked...">LocList</a> *<a class="code" href="sourcefile_8h.html#aa1f233ca6c060ad519feae0b535d95a">ohcount_sourcefile_list_analyze_languages</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list);
93 <a name="l00216"></a>00216 
94 <a name="l00221"></a>00221 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#6651000741c6ab4d4a17ed2ecb12aa7d">ohcount_sourcefile_list_free</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list);
95 <a name="l00222"></a>00222 
96 <a name="l00223"></a>00223 <span class="preprocessor">#endif</span>
97 </pre></div></div>
98 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by&nbsp;
99 <a href="http://www.doxygen.org/index.html">
100 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
101 </body>
102 </html>