Codebase list ohcount / d4c3f612-6685-4dc0-9339-5433a0a275c0/main doc / html / detector_doc.html
d4c3f612-6685-4dc0-9339-5433a0a275c0/main

Tree @d4c3f612-6685-4dc0-9339-5433a0a275c0/main (Download .tar.gz)

detector_doc.html @d4c3f612-6685-4dc0-9339-5433a0a275c0/mainraw · history · blame

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ohcount: Detector Documentation</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1><a class="anchor" name="detector_doc">Detector Documentation </a></h1><h2><a class="anchor" name="language">
How to Add a New Language</a></h2>
<ul>
<li>Add your language to 'src/languages.h' and 'src/hash/languages.gperf'. </li>
<li>Update 'src/hash/extensions.gperf' to identify files that use the new language (or 'src/hash/filenames.gperf'). </li>
<li>Regenerate the hash header files with 'src/hash/generate_headers'. </li>
<li>Add your tests to 'test/unit/detector_test.h', rebuild the tests, and run them to confirm the detector changes. </li>
<li>Follow the detailed instructions in the Parser Documentation. </li>
<li>Rebuild Ohcount. </li>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>