Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 67e32647b06c0323bf90c6b54a6438d1 > files > 483

rpm-apidocs-4.4.2.3-34.el5.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>rpm: popt/poptint.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</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>
<h1>popt/poptint.h File Reference</h1>
<p>
<a href="poptint_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>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpbm__set.html">pbm_set</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structoptionStackEntry.html">optionStackEntry</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpoptContext__s.html">poptContext_s</a></td></tr>

<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#30bc026622afe63f89ff286703bc3bff">__PBM_NBITS</a>&nbsp;&nbsp;&nbsp;(8 * sizeof (<a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#db9435cc1c5ad12ed3a93c06605a0b04">__PBM_IX</a>(d)&nbsp;&nbsp;&nbsp;((d) / __PBM_NBITS)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#cb815ddb11afc336c39ffccc72451cb8">__PBM_MASK</a>(d)&nbsp;&nbsp;&nbsp;((<a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>) 1 &lt;&lt; (((unsigned)(d)) % __PBM_NBITS))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#944972fe1f3370400778955b92f41746">__PBM_BITS</a>(set)&nbsp;&nbsp;&nbsp;((set)-&gt;bits)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#0a7350494d7d8fc4caeb0bb317d186c7">PBM_ALLOC</a>(d)&nbsp;&nbsp;&nbsp;calloc(__PBM_IX (d) + 1, sizeof(<a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#78689d45d1c852a2513fa04271495b0c">PBM_FREE</a>(s)&nbsp;&nbsp;&nbsp;_free(s);</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#087411fde1f2c9163414380e67967297">PBM_SET</a>(d, s)&nbsp;&nbsp;&nbsp;(__PBM_BITS (s)[__PBM_IX (d)] |= __PBM_MASK (d))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#4e17acc093998616198ca7fba92b24d0">PBM_CLR</a>(d, s)&nbsp;&nbsp;&nbsp;(__PBM_BITS (s)[__PBM_IX (d)] &amp;= ~__PBM_MASK (d))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#8606b44323c6450c9efe9ca1fb6b07c6">PBM_ISSET</a>(d, s)&nbsp;&nbsp;&nbsp;((__PBM_BITS (s)[__PBM_IX (d)] &amp; __PBM_MASK (d)) != 0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#4c0e822c85c12157514e1446f8c3f9f7">_</a>(foo)&nbsp;&nbsp;&nbsp;foo</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#63548bd9cc7e21158afe8a24f9e2361e">D_</a>(dom, str)&nbsp;&nbsp;&nbsp;str</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#0c20a067634485b9c68ad5dfe83729d2">POPT_</a>(foo)&nbsp;&nbsp;&nbsp;foo</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#4ccf7c067cb2175b03fcf1fdd55b4b1c">N_</a>(foo)&nbsp;&nbsp;&nbsp;foo</td></tr>

<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a></td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html#2574a8c557fe9a6754ff3b3656943f23">_free</a> (const void *p)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.  <a href="#2574a8c557fe9a6754ff3b3656943f23"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>

<p>
Definition in file <a class="el" href="poptint_8h-source.html">poptint.h</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="4c0e822c85c12157514e1446f8c3f9f7"></a><!-- doxytag: member="poptint.h::_" ref="4c0e822c85c12157514e1446f8c3f9f7" args="(foo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _          </td>
          <td>(</td>
          <td class="paramtype">foo&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;foo</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00103">103</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="944972fe1f3370400778955b92f41746"></a><!-- doxytag: member="poptint.h::__PBM_BITS" ref="944972fe1f3370400778955b92f41746" args="(set)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __PBM_BITS          </td>
          <td>(</td>
          <td class="paramtype">set&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;((set)-&gt;bits)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00037">37</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="db9435cc1c5ad12ed3a93c06605a0b04"></a><!-- doxytag: member="poptint.h::__PBM_IX" ref="db9435cc1c5ad12ed3a93c06605a0b04" args="(d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __PBM_IX          </td>
          <td>(</td>
          <td class="paramtype">d&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;((d) / __PBM_NBITS)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00030">30</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="cb815ddb11afc336c39ffccc72451cb8"></a><!-- doxytag: member="poptint.h::__PBM_MASK" ref="cb815ddb11afc336c39ffccc72451cb8" args="(d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __PBM_MASK          </td>
          <td>(</td>
          <td class="paramtype">d&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;((<a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>) 1 &lt;&lt; (((unsigned)(d)) % __PBM_NBITS))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00031">31</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="30bc026622afe63f89ff286703bc3bff"></a><!-- doxytag: member="poptint.h::__PBM_NBITS" ref="30bc026622afe63f89ff286703bc3bff" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __PBM_NBITS&nbsp;&nbsp;&nbsp;(8 * sizeof (<a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>))          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00029">29</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="63548bd9cc7e21158afe8a24f9e2361e"></a><!-- doxytag: member="poptint.h::D_" ref="63548bd9cc7e21158afe8a24f9e2361e" args="(dom, str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define D_          </td>
          <td>(</td>
          <td class="paramtype">dom,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">str&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;str</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00110">110</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
<p>
Referenced by <a class="el" href="popthelp_8c-source.html#l00110">getArgDescrip()</a>, <a class="el" href="popthelp_8c-source.html#l00147">singleOptionDefaultValue()</a>, <a class="el" href="popthelp_8c-source.html#l00218">singleOptionHelp()</a>, and <a class="el" href="popthelp_8c-source.html#l00500">singleTableHelp()</a>.
</div>
</div><p>
<a class="anchor" name="4ccf7c067cb2175b03fcf1fdd55b4b1c"></a><!-- doxytag: member="poptint.h::N_" ref="4ccf7c067cb2175b03fcf1fdd55b4b1c" args="(foo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define N_          </td>
          <td>(</td>
          <td class="paramtype">foo&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;foo</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00114">114</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="0a7350494d7d8fc4caeb0bb317d186c7"></a><!-- doxytag: member="poptint.h::PBM_ALLOC" ref="0a7350494d7d8fc4caeb0bb317d186c7" args="(d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PBM_ALLOC          </td>
          <td>(</td>
          <td class="paramtype">d&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;calloc(__PBM_IX (d) + 1, sizeof(<a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00039">39</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="4e17acc093998616198ca7fba92b24d0"></a><!-- doxytag: member="poptint.h::PBM_CLR" ref="4e17acc093998616198ca7fba92b24d0" args="(d, s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PBM_CLR          </td>
          <td>(</td>
          <td class="paramtype">d,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;(__PBM_BITS (s)[__PBM_IX (d)] &amp;= ~__PBM_MASK (d))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00042">42</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="78689d45d1c852a2513fa04271495b0c"></a><!-- doxytag: member="poptint.h::PBM_FREE" ref="78689d45d1c852a2513fa04271495b0c" args="(s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PBM_FREE          </td>
          <td>(</td>
          <td class="paramtype">s&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;_free(s);</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00040">40</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="8606b44323c6450c9efe9ca1fb6b07c6"></a><!-- doxytag: member="poptint.h::PBM_ISSET" ref="8606b44323c6450c9efe9ca1fb6b07c6" args="(d, s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PBM_ISSET          </td>
          <td>(</td>
          <td class="paramtype">d,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;((__PBM_BITS (s)[__PBM_IX (d)] &amp; __PBM_MASK (d)) != 0)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00043">43</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="087411fde1f2c9163414380e67967297"></a><!-- doxytag: member="poptint.h::PBM_SET" ref="087411fde1f2c9163414380e67967297" args="(d, s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PBM_SET          </td>
          <td>(</td>
          <td class="paramtype">d,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">s&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;(__PBM_BITS (s)[__PBM_IX (d)] |= __PBM_MASK (d))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00041">41</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<a class="anchor" name="0c20a067634485b9c68ad5dfe83729d2"></a><!-- doxytag: member="poptint.h::POPT_" ref="0c20a067634485b9c68ad5dfe83729d2" args="(foo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define POPT_          </td>
          <td>(</td>
          <td class="paramtype">foo&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;foo</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00111">111</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
<p>
Referenced by <a class="el" href="popthelp_8c-source.html#l00110">getArgDescrip()</a>, <a class="el" href="popt_8c-source.html#l00706">poptGetNextOpt()</a>, <a class="el" href="popthelp_8c-source.html#l00564">poptPrintHelp()</a>, <a class="el" href="popt_8c-source.html#l01180">poptStrerror()</a>, <a class="el" href="popthelp_8c-source.html#l00541">showHelpIntro()</a>, and <a class="el" href="popt_8c-source.html#l00027">strerror()</a>.
</div>
</div><p>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="64172439381f4c94ef342d65717dbc96"></a><!-- doxytag: member="poptint.h::__pbm_bits" ref="64172439381f4c94ef342d65717dbc96" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned int <a class="el" href="poptint_8h.html#64172439381f4c94ef342d65717dbc96">__pbm_bits</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00027">27</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="2574a8c557fe9a6754ff3b3656943f23"></a><!-- doxytag: member="poptint.h::_free" ref="2574a8c557fe9a6754ff3b3656943f23" args="(const void *p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void* _free           </td>
          <td>(</td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>p</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>p</em>&nbsp;</td><td>memory to free </td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>NULL</em>&nbsp;</td><td>always </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="poptint_8h-source.html#l00018">18</a> of file <a class="el" href="poptint_8h-source.html">poptint.h</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on 1 Oct 2013 for rpm by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>