Files
fpocket/doc/deprecated/programmers_guide/html/memhandler_8h_source.html
2020-06-06 16:04:20 +02:00

134 lines
8.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>fpocket: memhandler.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<img src="fpocket_logo_small.png" width="545" height="150">
<!-- Generated by Doxygen 1.5.9 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
var num=this.id.replace(/[^[0-9]/g,'');
var button=this.firstChild;
var sectionDiv=document.getElementById('dynsection'+num);
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
sectionDiv.style.display='block';
button.src='open.gif';
}else{
sectionDiv.style.display='none';
button.src='closed.gif';
}
}
function initDynSections(){
var divs=document.getElementsByTagName('div');
var sectionCounter=1;
for(var i=0;i<divs.length-1;i++){
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
var header=divs[i];
var section=divs[i+1];
var button=header.firstChild;
if (button!='IMG'){
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
button=document.createElement('img');
divs[i].insertBefore(button,divs[i].firstChild);
}
header.style.cursor='pointer';
header.onclick=changeDisplayState;
header.id='dynheader'+sectionCounter;
button.src='closed.gif';
section.id='dynsection'+sectionCounter;
section.style.display='none';
section.style.marginLeft='14px';
sectionCounter++;
}
}
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>memhandler.h</h1><a href="memhandler_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> COPYRIGHT DISCLAIMER</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment"> Vincent Le Guilloux, Peter Schmidtke and Pierre Tuffery, hereby</span>
<a name="l00006"></a>00006 <span class="comment"> disclaim all copyright interest in the program “fpocket” (which</span>
<a name="l00007"></a>00007 <span class="comment"> performs protein cavity detection) written by Vincent Le Guilloux and Peter</span>
<a name="l00008"></a>00008 <span class="comment"> Schmidtke.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment"> Vincent Le Guilloux 28 November 2008</span>
<a name="l00011"></a>00011 <span class="comment"> Peter Schmidtke 28 November 2008</span>
<a name="l00012"></a>00012 <span class="comment"> Pierre Tuffery 28 November 2008</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment"> GNU GPL</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment"> This file is part of the fpocket package.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment"> fpocket is free software: you can redistribute it and/or modify</span>
<a name="l00019"></a>00019 <span class="comment"> it under the terms of the GNU General Public License as published by</span>
<a name="l00020"></a>00020 <span class="comment"> the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00021"></a>00021 <span class="comment"> (at your option) any later version.</span>
<a name="l00022"></a>00022 <span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment"> fpocket is distributed in the hope that it will be useful,</span>
<a name="l00024"></a>00024 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00025"></a>00025 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00026"></a>00026 <span class="comment"> GNU General Public License for more details.</span>
<a name="l00027"></a>00027 <span class="comment"></span>
<a name="l00028"></a>00028 <span class="comment"> You should have received a copy of the GNU General Public License</span>
<a name="l00029"></a>00029 <span class="comment"> along with fpocket. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00030"></a>00030 <span class="comment"></span>
<a name="l00031"></a>00031 <span class="comment">**/</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="preprocessor">#ifndef DH_MEMHANDLER</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define DH_MEMHANDLER</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="comment">/* -----------------------------INCLUDES--------------------------------------*/</span>
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;unistd.h&gt;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;ctype.h&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;limits.h&gt;</span>
<a name="l00044"></a>00044
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="comment">/* -------------------------------MACROS--------------------------------------*/</span>
<a name="l00047"></a>00047
<a name="l00048"></a><a class="code" href="memhandler_8h.html#8a57038b88458823b98d134429bee762">00048</a> <span class="preprocessor">#define M_EXIT 1 </span><span class="comment">/**&lt; exit flag*/</span>
<a name="l00049"></a><a class="code" href="memhandler_8h.html#4ea8501c8a1fa369fd57f72776a74ab2">00049</a> <span class="preprocessor">#define M_CONTINUE 0 </span><span class="comment">/**&lt; continue flag */</span>
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <span class="comment">/* ------------------------- PUBLIC STRUCTURES ------------------------------ */</span>
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="comment">/* ----------------------------PROTOTYPES-------------------------------------*/</span>
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="keywordtype">void</span>* <a class="code" href="memhandler_8c.html#52d7260a38c396cb2dd1dd7abcfd61cb">my_malloc</a>(<span class="keywordtype">size_t</span> nb) ;
<a name="l00056"></a>00056 <span class="keywordtype">void</span>* <a class="code" href="memhandler_8c.html#e1a54755aeeb11b927875d686a5248c7">my_calloc</a>(<span class="keywordtype">size_t</span> nb, <span class="keywordtype">size_t</span> s) ;
<a name="l00057"></a>00057 <span class="keywordtype">void</span>* <a class="code" href="memhandler_8c.html#ede15d67c845c05e9b2bfb59b8ab6cf7">my_realloc</a>(<span class="keywordtype">void</span> *<a class="code" href="structptr__node.html#cd388f7d69011add91232e01caeb6a44">ptr</a>, <span class="keywordtype">size_t</span> nb) ;
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="memhandler_8c.html#a49400242a007d208c641f79856ea4c6">my_free</a>(<span class="keywordtype">void</span> *bloc) ;
<a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="memhandler_8c.html#43e8f90500abd74cfb3c2902915b0b33">my_exit</a>(<span class="keywordtype">void</span>) ;
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="memhandler_8c.html#506df742641c3db2e00869a5c2f4dcd9">free_all</a>(<span class="keywordtype">void</span>) ;
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="memhandler_8c.html#a766572a8cc9a5223991ea29f4086cb5">print_ptr_lst</a>(<span class="keywordtype">void</span>) ;
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 5 22:10:40 2009 for fpocket by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>