Codebase list ohcount / lintian-fixes/main doc / html / parser_8h.html
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

parser_8h.html @lintian-fixes/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: /Users/andy/dev/ohcount/src/parser.h File Reference</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><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>/Users/andy/dev/ohcount/src/parser.h File Reference</h1><code>#include &quot;<a class="el" href="sourcefile_8h_source.html">sourcefile.h</a>&quot;</code><br>

<p>
<a href="parser_8h_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="parser_8h.html#acda938796750ee86c517ff486d1ca93">ohcount_parse</a> (<a class="el" href="structSourceFile.html">SourceFile</a> *sourcefile, int count, void(*callback)(const char *, const char *, int, int, void *), void *userdata)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="acda938796750ee86c517ff486d1ca93"></a><!-- doxytag: member="parser.h::ohcount_parse" ref="acda938796750ee86c517ff486d1ca93" args="(SourceFile *sourcefile, int count, void(*callback)(const char *, const char *, int, int, void *), void *userdata)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ohcount_parse           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSourceFile.html">SourceFile</a> *&nbsp;</td>
          <td class="paramname"> <em>sourcefile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(const char *, const char *, int, int, void *)&nbsp;</td>
          <td class="paramname"> <em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>userdata</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tries to use an existing Ragel parser for the given language. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <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>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>An integer flag indicating whether to count lines or parse entities. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td>A callback to use for every line or entity in the source file discovered (depends on count). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>userdata</em>&nbsp;</td><td>Pointer to userdata used by callback (if any). </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>1 if a Ragel parser is found, 0 otherwise. </dd></dl>

</div>
</div><p>
</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>