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: License Documentation</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 class="current"><a href="pages.html"><span>Related Pages</span></a></li>
13 <li><a href="annotated.html"><span>Data Structures</span></a></li>
14 <li><a href="files.html"><span>Files</span></a></li>
18 <div class="contents">
19 <h1><a class="anchor" name="license_doc"><a class="el" href="structLicense.html" title="Holds a license and its associated details and patterns.">License</a> Documentation </a></h1><dl class="author" compact><dt><b>Author:</b></dt><dd>Mitchell Foral</dd></dl>
20 <h2><a class="anchor" name="license">
21 How to Add a New License</a></h2>
23 <li>Add your license to 'src/licenses.h' and 'src/licenses.c'. Don't forget that two '\'s are required to represent one '\' in a C string. </li>
24 <li>Add your tests to the 'test/src_licenses/' and 'test/expected_licenses/' directories. Note that multiple licenses must be separated by newlines and be in the order they appear in the input file. </li>
25 <li>Run the test suite (a rebuild is not necessary; your added tests are detected and run automatically) to verify your licenses are correctly detected. </li>
26 <li>Rebuild Ohcount. </li>
29 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by
30 <a href="http://www.doxygen.org/index.html">
31 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>