mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-12-22 17:01:46 +00:00
1461 lines
108 KiB
HTML
1461 lines
108 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.6"/>
|
|
<title>The Netsukuku Project: src/llist.c File Reference</title>
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../jquery.js"></script>
|
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
|
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../resize.js"></script>
|
|
<script type="text/javascript" src="../../navtree.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</script>
|
|
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</script>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="../../Logo_netsukuku.jpg"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">The Netsukuku Project
|
|
 <span id="projectnumber">0.0.9</span>
|
|
</div>
|
|
<div id="projectbrief">An Alternative routing method</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.6 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="../../index.html"><span>Main Page</span></a></li>
|
|
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="../../search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="../../files.html"><span>File List</span></a></li>
|
|
<li><a href="../../globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){initNavTree('d4/de1/llist_8c.html','../../');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a></div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Data Structures</a> |
|
|
<a href="#define-members">Macros</a> |
|
|
<a href="#typedef-members">Typedefs</a> |
|
|
<a href="#var-members">Variables</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">llist.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><div class="dynheader">
|
|
This graph shows which files directly or indirectly include this file:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="../../d0/d76/llist_8c__dep__incl.png" border="0" usemap="#src_2llist_8cdep" alt=""/></div>
|
|
<map name="src_2llist_8cdep" id="src_2llist_8cdep">
|
|
<area shape="rect" id="node3" href="../../d7/d3b/gmap_8h.html" title="src/gmap.h" alt="" coords="2637,83,2723,112"/><area shape="rect" id="node30" href="../../d7/d02/radar_8c.html" title="src/radar.c" alt="" coords="141,469,224,499"/><area shape="rect" id="node32" href="../../df/dba/rehook_8c.html" title="src/rehook.c" alt="" coords="2041,469,2135,499"/><area shape="rect" id="node94" href="../../d5/d89/pkts_8h.html" title="src/pkts.h" alt="" coords="993,315,1073,344"/><area shape="rect" id="node102" href="../../d3/d98/andns__snsd_8c.html" title="src/andns_snsd.c" alt="" coords="3152,469,3277,499"/><area shape="rect" id="node119" href="../../d6/d2e/snsd__cache_8h.html" title="src/snsd_cache.h" alt="" coords="3077,237,3203,267"/><area shape="rect" id="node122" href="../../d7/d74/andna__cache_8h.html" title="src/andna_cache.h" alt="" coords="2947,315,3077,344"/><area shape="rect" id="node5" href="../../d4/d18/andna_8c.html" title="src/andna.c" alt="" coords="2816,469,2907,499"/><area shape="rect" id="node7" href="../../d5/dbf/bmap_8h.html" title="src/bmap.h" alt="" coords="1669,160,1755,189"/><area shape="rect" id="node10" href="../../d9/d7f/route_8h.html" title="src/route.h" alt="" coords="1473,237,1556,267"/><area shape="rect" id="node20" href="../../db/d6b/dns__wrapper_8c.html" title="src/dns_wrapper.c" alt="" coords="2328,469,2456,499"/><area shape="rect" id="node59" href="../../db/d73/bmap_8c.html" title="src/bmap.c" alt="" coords="2480,237,2565,267"/><area shape="rect" id="node63" href="../../d9/d45/gmap_8c.html" title="src/gmap.c" alt="" coords="2589,237,2675,267"/><area shape="rect" id="node74" href="../../d8/da0/qspn_8h.html" title="src/qspn.h" alt="" coords="1879,315,1961,344"/><area shape="rect" id="node18" href="../../dc/d21/daemon_8c.html" title="src/daemon.c" alt="" coords="825,469,927,499"/><area shape="rect" id="node22" href="../../d3/dc7/hook_8c.html" title="src/hook.c" alt="" coords="1625,469,1708,499"/><area shape="rect" id="node24" href="../../d1/d6f/igs_8c.html" title="src/igs.c" alt="" coords="499,469,571,499"/><area shape="rect" id="node26" href="../../d4/d3b/netsukuku_8c.html" title="src/netsukuku.c" alt="" coords="2487,469,2601,499"/><area shape="rect" id="node28" href="../../db/de6/qspn_8c.html" title="src/qspn.c" alt="" coords="1473,469,1556,499"/><area shape="rect" id="node34" href="../../df/dbf/route_8c.html" title="src/route.c" alt="" coords="719,469,801,499"/><area shape="rect" id="node36" href="../../d6/d62/tracer_8c.html" title="src/tracer.c" alt="" coords="1079,469,1167,499"/><area shape="rect" id="node51" href="../../da/db5/tracer_8h.html" title="src/tracer.h" alt="" coords="1755,392,1843,421"/><area shape="rect" id="node13" href="../../da/dd7/igs_8h.html" title="src/igs.h" alt="" coords="1319,315,1391,344"/><area shape="rect" id="node44" href="../../df/dd8/iptunnel_8c.html" title="src/iptunnel.c" alt="" coords="1196,315,1295,344"/><area shape="rect" id="node15" href="../../db/d93/netsukuku_8h.html" title="src/netsukuku.h" alt="" coords="1211,392,1325,421"/><area shape="rect" id="node79" href="../../d6/d34/hook_8h.html" title="src/hook.h" alt="" coords="1917,392,2000,421"/><area shape="rect" id="node97" href="../../d5/d05/andna_8h.html" title="src/andna.h" alt="" coords="2683,392,2773,421"/><area shape="rect" id="node112" href="../../df/d05/pkts_8c.html" title="src/pkts.c" alt="" coords="600,392,680,421"/><area shape="rect" id="node100" href="../../de/d85/andns_8c.html" title="src/andns.c" alt="" coords="2984,469,3075,499"/><area shape="rect" id="node126" href="../../d2/de6/andna__cache_8c.html" title="src/andna_cache.c" alt="" coords="3301,392,3432,421"/><area shape="rect" id="node135" href="../../d3/dbf/ntkresolv_8c.html" title="src/ntkresolv.c" alt="" coords="3203,315,3309,344"/><area shape="rect" id="node137" href="../../d7/d48/snsd__cache_8c.html" title="src/snsd_cache.c" alt="" coords="3333,315,3459,344"/><area shape="rect" id="node128" href="../../d1/dd5/andns__snsd_8h.html" title="src/andns_snsd.h" alt="" coords="3152,392,3277,421"/></map>
|
|
</div>
|
|
</div><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Data Structures</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0a/structlinked__list.html">linked_list</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:ab42c923c8aea5151fc13a5ec13374577"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ab42c923c8aea5151fc13a5ec13374577">LLIST_C</a></td></tr>
|
|
<tr class="separator:ab42c923c8aea5151fc13a5ec13374577"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac92348e99cfae025c3893c07fee7b263"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ac92348e99cfae025c3893c07fee7b263">LLIST_HDR</a>(_struct)   _struct *next, *prev</td></tr>
|
|
<tr class="separator:ac92348e99cfae025c3893c07fee7b263"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af8588e963f42d720ff6921adeec671b9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#af8588e963f42d720ff6921adeec671b9">is_list_zero</a>(list)</td></tr>
|
|
<tr class="separator:af8588e963f42d720ff6921adeec671b9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab4dd1e29f2aa75436659f6851ac11acf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ab4dd1e29f2aa75436659f6851ac11acf">list_copy</a>(list, new)</td></tr>
|
|
<tr class="separator:ab4dd1e29f2aa75436659f6851ac11acf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9fd84316dbb5322fe304c896c0137c54"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a9fd84316dbb5322fe304c896c0137c54">list_dup</a>(list)</td></tr>
|
|
<tr class="separator:a9fd84316dbb5322fe304c896c0137c54"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ada5316205a42b2d13752f540e56de02b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b">list_init</a>(list, new)</td></tr>
|
|
<tr class="separator:ada5316205a42b2d13752f540e56de02b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a592368b20531595c9073f54d0795a535"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a592368b20531595c9073f54d0795a535">list_last</a>(list)</td></tr>
|
|
<tr class="separator:a592368b20531595c9073f54d0795a535"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4bb631c8ba40b6a5c904e5cb4c8c7a21"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a4bb631c8ba40b6a5c904e5cb4c8c7a21">list_head</a>(tail)</td></tr>
|
|
<tr class="separator:a4bb631c8ba40b6a5c904e5cb4c8c7a21"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a015a441d3c1f2a2ea6a367c8e494f3ee"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a>(_head, _tail, _new)</td></tr>
|
|
<tr class="separator:a015a441d3c1f2a2ea6a367c8e494f3ee"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1cd77a7febbfa4e68b675a9472d88cfd"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a1cd77a7febbfa4e68b675a9472d88cfd">list_add</a>(_head, _new)</td></tr>
|
|
<tr class="separator:a1cd77a7febbfa4e68b675a9472d88cfd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae02efbc0e7bdcd09888eb04d4b8e3315"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a>(head, list)</td></tr>
|
|
<tr class="separator:ae02efbc0e7bdcd09888eb04d4b8e3315"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a484566bad61abf899b8c469869f2a917"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a484566bad61abf899b8c469869f2a917">list_free</a>(list)</td></tr>
|
|
<tr class="separator:a484566bad61abf899b8c469869f2a917"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae77c0f7dbd9c265233248b9d7dd4a5a1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ae77c0f7dbd9c265233248b9d7dd4a5a1">list_del</a>(head, list)</td></tr>
|
|
<tr class="separator:ae77c0f7dbd9c265233248b9d7dd4a5a1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aabcf43dc6e0cbbc34ac337ab9d4010c9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9">list_ins</a>(list, new)</td></tr>
|
|
<tr class="separator:aabcf43dc6e0cbbc34ac337ab9d4010c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a60b48a2716a717586ee7d3e756f341d9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9">list_substitute</a>(old_list, new_list)</td></tr>
|
|
<tr class="separator:a60b48a2716a717586ee7d3e756f341d9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9dddad83f0a7f04df24f6c6a96a0f96a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a">list_swap</a>(a, b)</td></tr>
|
|
<tr class="separator:a9dddad83f0a7f04df24f6c6a96a0f96a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a326bdbb03c20b81281557b15f65450b3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a326bdbb03c20b81281557b15f65450b3">list_moveback</a>(list)</td></tr>
|
|
<tr class="separator:a326bdbb03c20b81281557b15f65450b3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2f879a7d7472ef68a5c047122f745f07"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a2f879a7d7472ef68a5c047122f745f07">list_movefwd</a>(list)</td></tr>
|
|
<tr class="separator:a2f879a7d7472ef68a5c047122f745f07"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4568d894b0a1fbb3f3aea7545e37fe0a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a4568d894b0a1fbb3f3aea7545e37fe0a">list_moveontop</a>(_head, _list)</td></tr>
|
|
<tr class="separator:a4568d894b0a1fbb3f3aea7545e37fe0a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa158b1794d49f738b8319e19d0e8abed"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">list_for</a>(i)   for(; (i); (i)=(typeof (i))(i)->next)</td></tr>
|
|
<tr class="separator:aa158b1794d49f738b8319e19d0e8abed"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8d22fd274d3f55140951635ffef939d5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a8d22fd274d3f55140951635ffef939d5">list_count</a>(_head)</td></tr>
|
|
<tr class="separator:a8d22fd274d3f55140951635ffef939d5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aca0808d2f76724606019408896befe02"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#aca0808d2f76724606019408896befe02">list_safe_for</a>(_ii, _next_ptr)</td></tr>
|
|
<tr class="separator:aca0808d2f76724606019408896befe02"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adfc73d1b9665527f426c9ee1f0a0228a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#adfc73d1b9665527f426c9ee1f0a0228a">list_pos</a>(list, pos)</td></tr>
|
|
<tr class="separator:adfc73d1b9665527f426c9ee1f0a0228a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae0b546e2bbb26706282c5fff5ba2d810"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ae0b546e2bbb26706282c5fff5ba2d810">list_get_pos</a>(head, list)</td></tr>
|
|
<tr class="separator:ae0b546e2bbb26706282c5fff5ba2d810"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9c676c5a77ee9c18ccaadcb4f99fc990"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a9c676c5a77ee9c18ccaadcb4f99fc990">list_destroy</a>(list)</td></tr>
|
|
<tr class="separator:a9c676c5a77ee9c18ccaadcb4f99fc990"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2922631ba06b9a4c4bff37f8a3057b6d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a2922631ba06b9a4c4bff37f8a3057b6d">list_copy_some</a>(list, check_func, func_args...)</td></tr>
|
|
<tr class="separator:a2922631ba06b9a4c4bff37f8a3057b6d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2e47c19f20d56f439f48d9ce7869ce76"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a2e47c19f20d56f439f48d9ce7869ce76">list_copy_all_yes</a>(_nil)   (1)</td></tr>
|
|
<tr class="separator:a2e47c19f20d56f439f48d9ce7869ce76"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1fd4850d2b84e2a3bb2a2413cbb154d6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a1fd4850d2b84e2a3bb2a2413cbb154d6">list_copy_all</a>(list)   <a class="el" href="../../d4/de1/llist_8c.html#a2922631ba06b9a4c4bff37f8a3057b6d">list_copy_some</a>((list), <a class="el" href="../../d4/de1/llist_8c.html#a2e47c19f20d56f439f48d9ce7869ce76">list_copy_all_yes</a>)</td></tr>
|
|
<tr class="separator:a1fd4850d2b84e2a3bb2a2413cbb154d6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad08aae204ea95914e9f26730a1830ac6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ad08aae204ea95914e9f26730a1830ac6">clist_add</a>(_head, _counter, _list)</td></tr>
|
|
<tr class="separator:ad08aae204ea95914e9f26730a1830ac6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4ce4bd9ddfc8f8637f2dc4b736751b3e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a4ce4bd9ddfc8f8637f2dc4b736751b3e">clist_append</a>(_head, _tail, _counter, _list)</td></tr>
|
|
<tr class="separator:a4ce4bd9ddfc8f8637f2dc4b736751b3e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab56018aa5b5d705eece3d8775cf1cd08"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ab56018aa5b5d705eece3d8775cf1cd08">clist_del</a>(_head, _counter, _list)</td></tr>
|
|
<tr class="separator:ab56018aa5b5d705eece3d8775cf1cd08"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ade81405c564a1f3dd968663b4920ce71"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ade81405c564a1f3dd968663b4920ce71">clist_ins</a>(_head, _counter, _list)</td></tr>
|
|
<tr class="separator:ade81405c564a1f3dd968663b4920ce71"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa41b04b3889bb255014d288cd3812e19"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#aa41b04b3889bb255014d288cd3812e19">clist_join</a>(_head, _counter, _list)</td></tr>
|
|
<tr class="separator:aa41b04b3889bb255014d288cd3812e19"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0db39f01989a1c09c510f8771c9dcc8f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a0db39f01989a1c09c510f8771c9dcc8f">clist_init</a>(_counter)</td></tr>
|
|
<tr class="separator:a0db39f01989a1c09c510f8771c9dcc8f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a015c6c3e113518b261f29287658e6ba6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#a015c6c3e113518b261f29287658e6ba6">clist_destroy</a>(_head, _counter)</td></tr>
|
|
<tr class="separator:a015c6c3e113518b261f29287658e6ba6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab1233e2e14bf5fae6f5f93936eeb8161"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ab1233e2e14bf5fae6f5f93936eeb8161">clist_qsort</a>(_new_head, _head, _counter, _cmp_func)</td></tr>
|
|
<tr class="separator:ab1233e2e14bf5fae6f5f93936eeb8161"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:ac74e6715860967e8472475c49c8fd387"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="../../de/d0a/structlinked__list.html">linked_list</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></td></tr>
|
|
<tr class="separator:ac74e6715860967e8472475c49c8fd387"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
|
|
Variables</h2></td></tr>
|
|
<tr class="memitem:acb6aaaad96c85fbb37d63e780f5787a8"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="../../de/d0a/structlinked__list.html">linked_list</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de1/llist_8c.html#acb6aaaad96c85fbb37d63e780f5787a8">linked_list</a></td></tr>
|
|
<tr class="separator:acb6aaaad96c85fbb37d63e780f5787a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a class="anchor" id="ad08aae204ea95914e9f26730a1830ac6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_add</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ \</div>
|
|
<div class="line"> if(!(*(_counter)) || !(*(_head))) <a class="code" href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b"> list_init</a>(*(_head), (_list)); \</div>
|
|
<div class="line"> else \</div>
|
|
<div class="line"> *((_head))=<a class="code" href="../../d4/de1/llist_8c.html#a1cd77a7febbfa4e68b675a9472d88cfd">list_add</a>(*(_head), (_list)); \</div>
|
|
<div class="line"> (*(_counter))++; \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_a1cd77a7febbfa4e68b675a9472d88cfd"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a1cd77a7febbfa4e68b675a9472d88cfd">list_add</a></div><div class="ttdeci">#define list_add(_head, _new)</div><div class="ttdef"><b>Definition:</b> llist.c:183</div></div>
|
|
<div class="ttc" id="llist_8c_html_ada5316205a42b2d13752f540e56de02b"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b">list_init</a></div><div class="ttdeci">#define list_init(list, new)</div><div class="ttdef"><b>Definition:</b> llist.c:105</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4ce4bd9ddfc8f8637f2dc4b736751b3e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_append</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_tail, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_tca=0, **_targv=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> **)(_tail); \</div>
|
|
<div class="line"> if((_tail)) \</div>
|
|
<div class="line"> _tca=*_targv; \</div>
|
|
<div class="line"> if(!(*(_counter)) || !(*(_head))) <a class="code" href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b"> list_init</a>(*(_head), (_list)); \</div>
|
|
<div class="line"> else { \</div>
|
|
<div class="line"> _tca=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a>(*(_head), _tca, (_list)); \</div>
|
|
<div class="line"> if(_targv) \</div>
|
|
<div class="line"> (*_targv)=_tca; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> (*(_counter))++; \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a015a441d3c1f2a2ea6a367c8e494f3ee"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a></div><div class="ttdeci">#define list_append(_head, _tail, _new)</div><div class="ttdef"><b>Definition:</b> llist.c:158</div></div>
|
|
<div class="ttc" id="llist_8c_html_ada5316205a42b2d13752f540e56de02b"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ada5316205a42b2d13752f540e56de02b">list_init</a></div><div class="ttdeci">#define list_init(list, new)</div><div class="ttdef"><b>Definition:</b> llist.c:105</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab56018aa5b5d705eece3d8775cf1cd08"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_del</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ \</div>
|
|
<div class="line"> if((*(_counter)) > 0) { \</div>
|
|
<div class="line"> *((_head))=<a class="code" href="../../d4/de1/llist_8c.html#ae77c0f7dbd9c265233248b9d7dd4a5a1">list_del</a>(*(_head), (_list)); \</div>
|
|
<div class="line"> (*(_counter))--; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ae77c0f7dbd9c265233248b9d7dd4a5a1"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ae77c0f7dbd9c265233248b9d7dd4a5a1">list_del</a></div><div class="ttdeci">#define list_del(head, list)</div><div class="ttdef"><b>Definition:</b> llist.c:231</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a015c6c3e113518b261f29287658e6ba6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_destroy</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#a9c676c5a77ee9c18ccaadcb4f99fc990">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a9c676c5a77ee9c18ccaadcb4f99fc990"> list_destroy</a>(*((_head))); \</div>
|
|
<div class="line"> (*(_head))=0; \</div>
|
|
<div class="line"> (*(_counter))=0; \</div>
|
|
<div class="line"> 0; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_a9c676c5a77ee9c18ccaadcb4f99fc990"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a9c676c5a77ee9c18ccaadcb4f99fc990">list_destroy</a></div><div class="ttdeci">#define list_destroy(list)</div><div class="ttdef"><b>Definition:</b> llist.c:459</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0db39f01989a1c09c510f8771c9dcc8f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_init</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ \</div>
|
|
<div class="line"> *(_counter)=0; \</div>
|
|
<div class="line"> 0; \</div>
|
|
<div class="line">})</div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ade81405c564a1f3dd968663b4920ce71"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_ins</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ \</div>
|
|
<div class="line"> if(!(*(_counter)) || !(*(_head))) <a class="code" href="../../d4/de1/llist_8c.html#ad08aae204ea95914e9f26730a1830ac6">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ad08aae204ea95914e9f26730a1830ac6"> clist_add</a>((_head), (_counter), (_list)); \</div>
|
|
<div class="line"> else { <a class="code" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9"> list_ins</a>(*(_head), (_list)); \</div>
|
|
<div class="line"> (*(_counter))++; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ad08aae204ea95914e9f26730a1830ac6"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ad08aae204ea95914e9f26730a1830ac6">clist_add</a></div><div class="ttdeci">#define clist_add(_head, _counter, _list)</div><div class="ttdef"><b>Definition:</b> llist.c:520</div></div>
|
|
<div class="ttc" id="llist_8c_html_aabcf43dc6e0cbbc34ac337ab9d4010c9"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9">list_ins</a></div><div class="ttdeci">#define list_ins(list, new)</div><div class="ttdef"><b>Definition:</b> llist.c:246</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa41b04b3889bb255014d288cd3812e19"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_join</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ \</div>
|
|
<div class="line"> if((*(_counter)) > 0) { \</div>
|
|
<div class="line"> *((_head))=<a class="code" href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a>((*(_head)), _list); \</div>
|
|
<div class="line"> (*(_counter))--; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line">} <span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ae02efbc0e7bdcd09888eb04d4b8e3315"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a></div><div class="ttdeci">#define list_join(head, list)</div><div class="ttdef"><b>Definition:</b> llist.c:207</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab1233e2e14bf5fae6f5f93936eeb8161"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define clist_qsort</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_new_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_counter, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_cmp_func </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_hcq=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_head), *_ncq, *_hecq, *_tcq; \</div>
|
|
<div class="line"> int _icq=0, _ccq; \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _ccq = !(_counter) ? <a class="code" href="../../d4/de1/llist_8c.html#a8d22fd274d3f55140951635ffef939d5">list_count</a>(_hcq) : (_counter); <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_tmp_list[_ccq]; \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _ncq=_hcq; <a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> list_for</a>(_ncq) { \</div>
|
|
<div class="line"> _tmp_list[_icq]=_ncq; \</div>
|
|
<div class="line"> _icq++; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> qsort(_tmp_list, _ccq, <span class="keyword">sizeof</span>(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *), (_cmp_func)); \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _tcq=0; \</div>
|
|
<div class="line"> _hecq=_tmp_list[0]; \</div>
|
|
<div class="line"> for(_icq=0; _icq<_ccq; _icq++) \</div>
|
|
<div class="line"> _tcq=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a>(0, _tcq, _tmp_list[_icq]); \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _new_head = (typeof((_head)))_hecq; \</div>
|
|
<div class="line">}) \</div>
|
|
<div class="ttc" id="llist_8c_html_a8d22fd274d3f55140951635ffef939d5"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a8d22fd274d3f55140951635ffef939d5">list_count</a></div><div class="ttdeci">#define list_count(_head)</div><div class="ttdef"><b>Definition:</b> llist.c:379</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a015a441d3c1f2a2ea6a367c8e494f3ee"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a></div><div class="ttdeci">#define list_append(_head, _tail, _new)</div><div class="ttdef"><b>Definition:</b> llist.c:158</div></div>
|
|
<div class="ttc" id="llist_8c_html_aa158b1794d49f738b8319e19d0e8abed"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">list_for</a></div><div class="ttdeci">#define list_for(i)</div><div class="ttdef"><b>Definition:</b> llist.c:372</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af8588e963f42d720ff6921adeec671b9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define is_list_zero</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ \</div>
|
|
<div class="line"> int _iz, _rz=1; \</div>
|
|
<div class="line"> char *_a=(<span class="keywordtype">char</span> *)(list); \</div>
|
|
<div class="line"> for(_iz=0; _iz<<span class="keyword">sizeof</span>(typeof(*(list))); _iz++, _a++) \</div>
|
|
<div class="line"> <span class="keywordflow">if</span>(*_a) { \</div>
|
|
<div class="line"> _rz=0; \</div>
|
|
<div class="line"> break; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> _rz; \</div>
|
|
<div class="line">})</div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1cd77a7febbfa4e68b675a9472d88cfd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_add</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_new </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_hd, *_nd; \</div>
|
|
<div class="line"> _hd=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_head); \</div>
|
|
<div class="line"> _nd=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_new); \</div>
|
|
<div class="line"> if(_hd != _nd) { \</div>
|
|
<div class="line"> _nd-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_hd; \</div>
|
|
<div class="line"> _nd-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=0; \</div>
|
|
<div class="line"> if(_hd) \</div>
|
|
<div class="line"> _hd-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_nd; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> (typeof((_head)))_nd; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="structlinked__list_html_af26edbe8295d8a630ae63411d5d4f3ff"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">linked_list::next</a></div><div class="ttdeci">struct linked_list * next</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="structlinked__list_html_a480b93c566b9c0039f450ce9ca1cb0f4"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">linked_list::prev</a></div><div class="ttdeci">struct linked_list * prev</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a015a441d3c1f2a2ea6a367c8e494f3ee"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_append</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_tail, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_new </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_tt, *_na; \</div>
|
|
<div class="line"> _tt=(_tail) ? (<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_tail) : (<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#a592368b20531595c9073f54d0795a535">list_last</a>((_head)); \</div>
|
|
<div class="line"> _na=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_new); \</div>
|
|
<div class="line"> if(_na != _tt) { \</div>
|
|
<div class="line"> if(_tt) \</div>
|
|
<div class="line"> _tt->next=_na; \</div>
|
|
<div class="line"> if(_na) { \</div>
|
|
<div class="line"> _na->prev=_tt; \</div>
|
|
<div class="line"> _na->next=0; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> _new; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a592368b20531595c9073f54d0795a535"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a592368b20531595c9073f54d0795a535">list_last</a></div><div class="ttdeci">#define list_last(list)</div><div class="ttdef"><b>Definition:</b> llist.c:124</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab4dd1e29f2aa75436659f6851ac11acf"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_copy</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">new </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> _oc, *_lc=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); \</div>
|
|
<div class="line"> if((<span class="keyword">new</span>)) { \</div>
|
|
<div class="line"> _oc.<a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_lc-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>; \</div>
|
|
<div class="line"> _oc.<a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_lc-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>; \</div>
|
|
<div class="line"> memcpy((list), (<span class="keyword">new</span>), <span class="keyword">sizeof</span>(typeof(*(<span class="keyword">new</span>)))); \</div>
|
|
<div class="line"> _lc->prev=_oc.prev; \</div>
|
|
<div class="line"> _lc->next=_oc.next; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line">} <span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="structlinked__list_html_af26edbe8295d8a630ae63411d5d4f3ff"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">linked_list::next</a></div><div class="ttdeci">struct linked_list * next</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="structlinked__list_html_a480b93c566b9c0039f450ce9ca1cb0f4"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">linked_list::prev</a></div><div class="ttdeci">struct linked_list * prev</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1fd4850d2b84e2a3bb2a2413cbb154d6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_copy_all</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td>   <a class="el" href="../../d4/de1/llist_8c.html#a2922631ba06b9a4c4bff37f8a3057b6d">list_copy_some</a>((list), <a class="el" href="../../d4/de1/llist_8c.html#a2e47c19f20d56f439f48d9ce7869ce76">list_copy_all_yes</a>)</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2e47c19f20d56f439f48d9ce7869ce76"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_copy_all_yes</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_nil</td><td>)</td>
|
|
<td>   (1)</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2922631ba06b9a4c4bff37f8a3057b6d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_copy_some</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">check_func, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">func_args... </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_ncs=0, *_hcs=0, *_tcs=0, *_lcs=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); <a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> \</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> list_for</a>(_lcs) { \</div>
|
|
<div class="line"> if(!check_func(((typeof((list)))_lcs), ## func_args )) \</div>
|
|
<div class="line"> continue; \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _ncs=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#a9fd84316dbb5322fe304c896c0137c54">list_dup</a>(((typeof((list)))_lcs)); \</div>
|
|
<div class="line"> if(!_hcs) _hcs=_ncs; \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _tcs=<a class="code" href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a>(0, _tcs, _ncs); \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> (typeof((list)))_hcs; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_a9fd84316dbb5322fe304c896c0137c54"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a9fd84316dbb5322fe304c896c0137c54">list_dup</a></div><div class="ttdeci">#define list_dup(list)</div><div class="ttdef"><b>Definition:</b> llist.c:87</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a015a441d3c1f2a2ea6a367c8e494f3ee"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a015a441d3c1f2a2ea6a367c8e494f3ee">list_append</a></div><div class="ttdeci">#define list_append(_head, _tail, _new)</div><div class="ttdef"><b>Definition:</b> llist.c:158</div></div>
|
|
<div class="ttc" id="llist_8c_html_aa158b1794d49f738b8319e19d0e8abed"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">list_for</a></div><div class="ttdeci">#define list_for(i)</div><div class="ttdef"><b>Definition:</b> llist.c:372</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8d22fd274d3f55140951635ffef939d5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_count</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_lc=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_head); \</div>
|
|
<div class="line"> int _ic=0; <a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> \</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> list_for</a>(_lc) \</div>
|
|
<div class="line"> _ic++; \</div>
|
|
<div class="line"> _ic; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_aa158b1794d49f738b8319e19d0e8abed"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">list_for</a></div><div class="ttdeci">#define list_for(i)</div><div class="ttdef"><b>Definition:</b> llist.c:372</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae77c0f7dbd9c265233248b9d7dd4a5a1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_del</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_lid=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list), *_hed=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(head); \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> _hed=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a>((head), _lid); <a class="code" href="../../d4/de1/llist_8c.html#a484566bad61abf899b8c469869f2a917">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a484566bad61abf899b8c469869f2a917"> list_free</a>(_lid); \</div>
|
|
<div class="line"> (typeof((head)))_hed; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_a484566bad61abf899b8c469869f2a917"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a484566bad61abf899b8c469869f2a917">list_free</a></div><div class="ttdeci">#define list_free(list)</div><div class="ttdef"><b>Definition:</b> llist.c:218</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_ae02efbc0e7bdcd09888eb04d4b8e3315"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a></div><div class="ttdeci">#define list_join(head, list)</div><div class="ttdef"><b>Definition:</b> llist.c:207</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9c676c5a77ee9c18ccaadcb4f99fc990"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_destroy</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_xd=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list), *_id, *_nextd; \</div>
|
|
<div class="line"> _id=_xd; <a class="code" href="../../d4/de1/llist_8c.html#aca0808d2f76724606019408896befe02">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aca0808d2f76724606019408896befe02"> list_safe_for</a>(_id, _nextd) \</div>
|
|
<div class="line"> _xd=<a class="code" href="../../d4/de1/llist_8c.html#ae77c0f7dbd9c265233248b9d7dd4a5a1">list_del</a>(_xd, _id); \</div>
|
|
<div class="line"> (list)=0; \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_aca0808d2f76724606019408896befe02"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aca0808d2f76724606019408896befe02">list_safe_for</a></div><div class="ttdeci">#define list_safe_for(_ii, _next_ptr)</div><div class="ttdef"><b>Definition:</b> llist.c:412</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_ae77c0f7dbd9c265233248b9d7dd4a5a1"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ae77c0f7dbd9c265233248b9d7dd4a5a1">list_del</a></div><div class="ttdeci">#define list_del(head, list)</div><div class="ttdef"><b>Definition:</b> llist.c:231</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9fd84316dbb5322fe304c896c0137c54"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_dup</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_dd; \</div>
|
|
<div class="line"> _dd=<a class="code" href="../../d2/dab/xmalloc_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490">xmalloc</a>(<span class="keyword">sizeof</span>(typeof(*(list)))); \</div>
|
|
<div class="line"> memset(_dd, 0, <span class="keyword">sizeof</span>(typeof(*(list)))); <a class="code" href="../../d4/de1/llist_8c.html#ab4dd1e29f2aa75436659f6851ac11acf">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ab4dd1e29f2aa75436659f6851ac11acf"> list_copy</a>(_dd, (list)); \</div>
|
|
<div class="line"> (typeof((list)))_dd; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="xmalloc_8c_html_a42ccfa6fc49cc4ce90cc44cd05052490"><div class="ttname"><a href="../../d2/dab/xmalloc_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490">xmalloc</a></div><div class="ttdeci">void * xmalloc(size_t size)</div><div class="ttdef"><b>Definition:</b> xmalloc.c:44</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_ab4dd1e29f2aa75436659f6851ac11acf"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ab4dd1e29f2aa75436659f6851ac11acf">list_copy</a></div><div class="ttdeci">#define list_copy(list, new)</div><div class="ttdef"><b>Definition:</b> llist.c:70</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa158b1794d49f738b8319e19d0e8abed"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_for</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">i</td><td>)</td>
|
|
<td>   for(; (i); (i)=(typeof (i))(i)->next)</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a484566bad61abf899b8c469869f2a917"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_free</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> { \</div>
|
|
<div class="line"> memset((list), 0, <span class="keyword">sizeof</span>(typeof(*(list)))); <a class="code" href="../../d8/de3/xmalloc_8h.html#ab8c39548bd8e1164490b0194e6d44e3e">\</a></div>
|
|
<div class="line"><a class="code" href="../../d8/de3/xmalloc_8h.html#ab8c39548bd8e1164490b0194e6d44e3e"> xfree</a>((list)); \</div>
|
|
<div class="line">} <span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="xmalloc_8h_html_ab8c39548bd8e1164490b0194e6d44e3e"><div class="ttname"><a href="../../d8/de3/xmalloc_8h.html#ab8c39548bd8e1164490b0194e6d44e3e">xfree</a></div><div class="ttdeci">#define xfree(__pptr)</div><div class="ttdef"><b>Definition:</b> xmalloc.h:49</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae0b546e2bbb26706282c5fff5ba2d810"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_get_pos</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ \</div>
|
|
<div class="line"> int _igp=0, _egp=0; <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_xgp=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(head); <a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> \</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> list_for</a>(_xgp) { \</div>
|
|
<div class="line"> if(_xgp == (<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list)) { \</div>
|
|
<div class="line"> _egp=1; \</div>
|
|
<div class="line"> break; \</div>
|
|
<div class="line"> } else \</div>
|
|
<div class="line"> _igp++; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> _egp ? _igp : -1; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_aa158b1794d49f738b8319e19d0e8abed"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">list_for</a></div><div class="ttdeci">#define list_for(i)</div><div class="ttdef"><b>Definition:</b> llist.c:372</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4bb631c8ba40b6a5c904e5cb4c8c7a21"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define <a class="el" href="../../d9/d93/structlist__head.html">list_head</a></td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">tail</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_ih=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); \</div>
|
|
<div class="line"> for(; _ih && _ih->prev; _ih=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)_ih->prev); \</div>
|
|
<div class="line"> (typeof((list)))_ih; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ada5316205a42b2d13752f540e56de02b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_init</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">new </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> { <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_li; \</div>
|
|
<div class="line"> if((<span class="keyword">new</span>)) \</div>
|
|
<div class="line"> (list)=(<span class="keyword">new</span>); \</div>
|
|
<div class="line"> else \</div>
|
|
<div class="line"> (list)=(typeof (list))<a class="code" href="../../d2/dab/xmalloc_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490">xmalloc</a>(<span class="keyword">sizeof</span>(typeof(*(list)))); \</div>
|
|
<div class="line"> _li=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); \</div>
|
|
<div class="line"> _li->prev=0; \</div>
|
|
<div class="line"> _li->next=0; \</div>
|
|
<div class="line"> if(!(<span class="keyword">new</span>)) \</div>
|
|
<div class="line"> memset((list), 0, <span class="keyword">sizeof</span>(typeof(*(list)))); \</div>
|
|
<div class="line">} <span class="keywordflow">while</span> (0)</div>
|
|
<div class="ttc" id="xmalloc_8c_html_a42ccfa6fc49cc4ce90cc44cd05052490"><div class="ttname"><a href="../../d2/dab/xmalloc_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490">xmalloc</a></div><div class="ttdeci">void * xmalloc(size_t size)</div><div class="ttdef"><b>Definition:</b> xmalloc.c:44</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aabcf43dc6e0cbbc34ac337ab9d4010c9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_ins</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">new </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> { <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_lin=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list), *_n=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(<span class="keyword">new</span>); \</div>
|
|
<div class="line"> if(_lin->next) \</div>
|
|
<div class="line"> _lin-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_n; \</div>
|
|
<div class="line"> _n-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_lin-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>; \</div>
|
|
<div class="line"> _lin-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_n; \</div>
|
|
<div class="line"> _n-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_lin; \</div>
|
|
<div class="line">} <span class="keywordflow">while</span> (0)</div>
|
|
<div class="ttc" id="structlinked__list_html_af26edbe8295d8a630ae63411d5d4f3ff"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">linked_list::next</a></div><div class="ttdeci">struct linked_list * next</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="structlinked__list_html_a480b93c566b9c0039f450ce9ca1cb0f4"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">linked_list::prev</a></div><div class="ttdeci">struct linked_list * prev</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae02efbc0e7bdcd09888eb04d4b8e3315"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_join</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_lj=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list), *_hj=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(head), *_ret; \</div>
|
|
<div class="line"> if(_lj->next) \</div>
|
|
<div class="line"> _lj-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_lj-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>; \</div>
|
|
<div class="line"> if(_lj->prev) \</div>
|
|
<div class="line"> _lj-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_lj-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>; \</div>
|
|
<div class="line"> _ret = _lj == _hj ? _lj-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a> : _hj; \</div>
|
|
<div class="line"> (typeof((head)))_ret; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="structlinked__list_html_af26edbe8295d8a630ae63411d5d4f3ff"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">linked_list::next</a></div><div class="ttdeci">struct linked_list * next</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="structlinked__list_html_a480b93c566b9c0039f450ce9ca1cb0f4"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">linked_list::prev</a></div><div class="ttdeci">struct linked_list * prev</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a592368b20531595c9073f54d0795a535"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_last</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_il=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); \</div>
|
|
<div class="line"> for(; _il && _il->next; _il=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)_il->next); \</div>
|
|
<div class="line"> (typeof((list)))_il; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a326bdbb03c20b81281557b15f65450b3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_moveback</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_lm=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); \</div>
|
|
<div class="line"> if(_lm->prev) <a class="code" href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a"> list_swap</a>(_lm->prev, _lm); \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a9dddad83f0a7f04df24f6c6a96a0f96a"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a">list_swap</a></div><div class="ttdeci">#define list_swap(a, b)</div><div class="ttdef"><b>Definition:</b> llist.c:285</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2f879a7d7472ef68a5c047122f745f07"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_movefwd</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list</td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_lmf=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); \</div>
|
|
<div class="line"> if(_lmf->next) <a class="code" href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a"> list_swap</a>(_lmf->next, _lmf); \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a9dddad83f0a7f04df24f6c6a96a0f96a"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a9dddad83f0a7f04df24f6c6a96a0f96a">list_swap</a></div><div class="ttdeci">#define list_swap(a, b)</div><div class="ttdef"><b>Definition:</b> llist.c:285</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4568d894b0a1fbb3f3aea7545e37fe0a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_moveontop</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_head, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_hmt=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_head), *_lmt=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(_list); \</div>
|
|
<div class="line"> \</div>
|
|
<div class="line"> if(_hmt != _lmt) { \</div>
|
|
<div class="line"> _hmt=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a>((typeof((_head)))_hmt, _lmt); \</div>
|
|
<div class="line"> _hmt=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)<a class="code" href="../../d4/de1/llist_8c.html#a1cd77a7febbfa4e68b675a9472d88cfd">list_add</a>((typeof((_head)))_hmt, _lmt); \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> (typeof((_head)))_hmt; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_a1cd77a7febbfa4e68b675a9472d88cfd"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a1cd77a7febbfa4e68b675a9472d88cfd">list_add</a></div><div class="ttdeci">#define list_add(_head, _new)</div><div class="ttdef"><b>Definition:</b> llist.c:183</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_ae02efbc0e7bdcd09888eb04d4b8e3315"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ae02efbc0e7bdcd09888eb04d4b8e3315">list_join</a></div><div class="ttdeci">#define list_join(head, list)</div><div class="ttdef"><b>Definition:</b> llist.c:207</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="adfc73d1b9665527f426c9ee1f0a0228a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_pos</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">list, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">pos </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line">({ \</div>
|
|
<div class="line"> int _ip=0; <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_xp=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(list); <a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed"> list_for</a>(_xp) { \</div>
|
|
<div class="line"> if(_ip==(pos)) \</div>
|
|
<div class="line"> break; \</div>
|
|
<div class="line"> else \</div>
|
|
<div class="line"> _ip++; \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line"> (typeof((list)))_xp; \</div>
|
|
<div class="line">})</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_aa158b1794d49f738b8319e19d0e8abed"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aa158b1794d49f738b8319e19d0e8abed">list_for</a></div><div class="ttdeci">#define list_for(i)</div><div class="ttdef"><b>Definition:</b> llist.c:372</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aca0808d2f76724606019408896befe02"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_safe_for</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_ii, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_next_ptr </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">for</span>((_ii) ? (_next_ptr)=(typeof (_ii))(_ii)->next : 0; (_ii); \</div>
|
|
<div class="line"> (_ii)=(_next_ptr), (_ii) ? (_next_ptr)=(typeof (_ii))(_ii)->next : 0)</div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a60b48a2716a717586ee7d3e756f341d9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_substitute</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">old_list, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">new_list </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> *_ns, *_os; \</div>
|
|
<div class="line"> _ns=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(new_list); \</div>
|
|
<div class="line"> _os=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(old_list); \</div>
|
|
<div class="line"> if(_os->next != _ns) \</div>
|
|
<div class="line"> _ns-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_os-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>; \</div>
|
|
<div class="line"> if(_os->prev != _ns) \</div>
|
|
<div class="line"> _ns-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_os-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>; \</div>
|
|
<div class="line"> if(_ns->next) \</div>
|
|
<div class="line"> _ns-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>=_ns; \</div>
|
|
<div class="line"> if(_ns->prev) \</div>
|
|
<div class="line"> _ns-><a class="code" href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">prev</a>-><a class="code" href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">next</a>=_ns; \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="structlinked__list_html_af26edbe8295d8a630ae63411d5d4f3ff"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#af26edbe8295d8a630ae63411d5d4f3ff">linked_list::next</a></div><div class="ttdeci">struct linked_list * next</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="structlinked__list_html_a480b93c566b9c0039f450ce9ca1cb0f4"><div class="ttname"><a href="../../de/d0a/structlinked__list.html#a480b93c566b9c0039f450ce9ca1cb0f4">linked_list::prev</a></div><div class="ttdeci">struct linked_list * prev</div><div class="ttdef"><b>Definition:</b> llist.c:48</div></div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9dddad83f0a7f04df24f6c6a96a0f96a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define list_swap</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">a, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">b </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{ <a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387"> l_list</a> _ltmp, *_aa, *_bb; \</div>
|
|
<div class="line"> _aa=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(a); \</div>
|
|
<div class="line"> _bb=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)(b); \</div>
|
|
<div class="line"> if(_aa->next == _bb) { <a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9"> list_substitute</a>(_aa, _bb); <a class="code" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9"> list_ins</a>(_bb, _aa); \</div>
|
|
<div class="line"> } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(_aa->prev == _bb) { <a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9"> list_substitute</a>(_bb, _aa); <a class="code" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9"> list_ins</a>(_aa, _bb); \</div>
|
|
<div class="line"> } <span class="keywordflow">else</span> { \</div>
|
|
<div class="line"> _ltmp.next=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)_bb->next; \</div>
|
|
<div class="line"> _ltmp.prev=(<a class="code" href="../../de/d0a/structlinked__list.html">l_list</a> *)_bb->prev; <a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9"> list_substitute</a>(_aa, _bb); <a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9">\</a></div>
|
|
<div class="line"><a class="code" href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9"> list_substitute</a>(&_ltmp, _aa); \</div>
|
|
<div class="line"> } \</div>
|
|
<div class="line">}<span class="keywordflow">while</span>(0)</div>
|
|
<div class="ttc" id="llist_8c_html_ac74e6715860967e8472475c49c8fd387"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></div><div class="ttdeci">struct linked_list l_list</div><div class="ttdef"><b>Definition:</b> llist.c:50</div></div>
|
|
<div class="ttc" id="llist_8c_html_a60b48a2716a717586ee7d3e756f341d9"><div class="ttname"><a href="../../d4/de1/llist_8c.html#a60b48a2716a717586ee7d3e756f341d9">list_substitute</a></div><div class="ttdeci">#define list_substitute(old_list, new_list)</div><div class="ttdef"><b>Definition:</b> llist.c:263</div></div>
|
|
<div class="ttc" id="structlinked__list_html"><div class="ttname"><a href="../../de/d0a/structlinked__list.html">linked_list</a></div><div class="ttdef"><b>Definition:</b> llist.c:46</div></div>
|
|
<div class="ttc" id="llist_8c_html_aabcf43dc6e0cbbc34ac337ab9d4010c9"><div class="ttname"><a href="../../d4/de1/llist_8c.html#aabcf43dc6e0cbbc34ac337ab9d4010c9">list_ins</a></div><div class="ttdeci">#define list_ins(list, new)</div><div class="ttdef"><b>Definition:</b> llist.c:246</div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab42c923c8aea5151fc13a5ec13374577"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define LLIST_C</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac92348e99cfae025c3893c07fee7b263"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define LLIST_HDR</td>
|
|
<td>(</td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname">_struct</td><td>)</td>
|
|
<td>   _struct *next, *prev</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Typedef Documentation</h2>
|
|
<a class="anchor" id="ac74e6715860967e8472475c49c8fd387"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef struct <a class="el" href="../../de/d0a/structlinked__list.html">linked_list</a> <a class="el" href="../../d4/de1/llist_8c.html#ac74e6715860967e8472475c49c8fd387">l_list</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Variable Documentation</h2>
|
|
<a class="anchor" id="acb6aaaad96c85fbb37d63e780f5787a8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">struct <a class="el" href="../../de/d0a/structlinked__list.html">linked_list</a> <a class="el" href="../../de/d0a/structlinked__list.html">linked_list</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../d4/de1/llist_8c.html">llist.c</a></li>
|
|
<li class="footer">Generated on Wed Feb 19 2014 16:29:25 for The Netsukuku Project by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|