📄 group__apr__ring.html
字号:
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">lep, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>ep1, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>epN, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>link </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<b>Value:</b><pre class="fragment"><div><span class="keywordflow">do</span> { \
<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((ep1), link) = (lep); \
<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((epN), link) = <a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((lep), link); \
<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>(<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((lep), link), link) = (epN); \
<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((lep), link) = (ep1); \
} <span class="keywordflow">while</span> (0)
</div></pre>Splice the sequence ep1..epN into the ring after element lep (..lep.. becomes ..lep..ep1..epN..) <dl compact><dt><b>Warning:</b></dt><dd>This doesn't work for splicing after the last element or on empty rings... see APR_RING_SPLICE_TAIL for one that does </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>lep</em> </td><td>Element in the ring to splice after </td></tr>
<tr><td></td><td valign=top><em>ep1</em> </td><td>First element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>epN</em> </td><td>Last element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>link</em> </td><td>The name of the APR_RING_ENTRY in the element struct </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="ga10" doxytag="apr_ring.h::APR_RING_SPLICE_BEFORE" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_RING_SPLICE_BEFORE </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">lep, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>ep1, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>epN, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>link </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<b>Value:</b><pre class="fragment"><div><span class="keywordflow">do</span> { \
<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((epN), link) = (lep); \
<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((ep1), link) = <a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((lep), link); \
<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>(<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((lep), link), link) = (ep1); \
<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((lep), link) = (epN); \
} <span class="keywordflow">while</span> (0)
</div></pre>Splice the sequence ep1..epN into the ring before element lep (..lep.. becomes ..ep1..epN..lep..) <dl compact><dt><b>Warning:</b></dt><dd>This doesn't work for splicing before the first element or on empty rings... see APR_RING_SPLICE_HEAD for one that does </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>lep</em> </td><td>Element in the ring to splice before </td></tr>
<tr><td></td><td valign=top><em>ep1</em> </td><td>First element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>epN</em> </td><td>Last element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>link</em> </td><td>The name of the APR_RING_ENTRY in the element struct </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="ga14" doxytag="apr_ring.h::APR_RING_SPLICE_HEAD" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_RING_SPLICE_HEAD </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">hp, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>ep1, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>epN, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>elem, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>link </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<b>Value:</b><pre class="fragment"><div><a class="code" href="group__apr__ring.html#ga11">APR_RING_SPLICE_AFTER</a>(<a class="code" href="group__apr__ring.html#ga2">APR_RING_SENTINEL</a>((hp), elem, link), \
(ep1), (epN), link)
</div></pre>Splice the sequence ep1..epN into the ring before the first element (..hp.. becomes ..hp..ep1..epN..) <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>hp</em> </td><td>Head of the ring </td></tr>
<tr><td></td><td valign=top><em>ep1</em> </td><td>First element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>epN</em> </td><td>Last element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>elem</em> </td><td>The name of the element struct </td></tr>
<tr><td></td><td valign=top><em>link</em> </td><td>The name of the APR_RING_ENTRY in the element struct </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="ga15" doxytag="apr_ring.h::APR_RING_SPLICE_TAIL" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_RING_SPLICE_TAIL </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">hp, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>ep1, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>epN, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>elem, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>link </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<b>Value:</b><pre class="fragment"><div><a class="code" href="group__apr__ring.html#ga10">APR_RING_SPLICE_BEFORE</a>(<a class="code" href="group__apr__ring.html#ga2">APR_RING_SENTINEL</a>((hp), elem, link), \
(ep1), (epN), link)
</div></pre>Splice the sequence ep1..epN into the ring after the last element (..hp.. becomes ..ep1..epN..hp..) <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>hp</em> </td><td>Head of the ring </td></tr>
<tr><td></td><td valign=top><em>ep1</em> </td><td>First element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>epN</em> </td><td>Last element in the sequence to splice in </td></tr>
<tr><td></td><td valign=top><em>elem</em> </td><td>The name of the element struct </td></tr>
<tr><td></td><td valign=top><em>link</em> </td><td>The name of the APR_RING_ENTRY in the element struct </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="ga20" doxytag="apr_ring.h::APR_RING_UNSPLICE" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_RING_UNSPLICE </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">ep1, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>epN, <tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>link </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<b>Value:</b><pre class="fragment"><div><span class="keywordflow">do</span> { \
<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>(<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((ep1), link), link) = \
<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((epN), link); \
<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>(<a class="code" href="group__apr__ring.html#ga5">APR_RING_NEXT</a>((epN), link), link) = \
<a class="code" href="group__apr__ring.html#ga6">APR_RING_PREV</a>((ep1), link); \
} <span class="keywordflow">while</span> (0)
</div></pre>Unsplice a sequence of elements from a ring <dl compact><dt><b>Warning:</b></dt><dd>The unspliced sequence is left with dangling pointers at either end </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>ep1</em> </td><td>First element in the sequence to unsplice </td></tr>
<tr><td></td><td valign=top><em>epN</em> </td><td>Last element in the sequence to unsplice </td></tr>
<tr><td></td><td valign=top><em>link</em> </td><td>The name of the APR_RING_ENTRY in the element struct </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 7 13:18:26 2005 for Apache Portable Runtime by
<a href="../../../www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -