<html> <head> <title>Embryo: Heap Functions</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> <meta name="author" content="Andres Blanc" > <link rel="icon" href="img/favicon.png" type="image/x-icon"> <link rel="shortcut icon" href="img/favicon.png" type="image/x-icon"> <link rel="icon" href="img/favicon.png" type="image/ico"> <link rel="shortcut icon" href="img/favicon.png" type="image/ico"> <link rel="stylesheet" type="text/css" media="screen" href="e.css"> <link rel="stylesheet" type="text/css" media="screen" href="edoxy.css"> </head> <body> <div id="container"> <div id="header"> <div class="layout"> <h1><span>Enlightenment</span></h1> <h2><span>Beauty at your fingertips</span></h2> <div class="menu-container"> <div class="menu"> <ul> <li class="current"><a href="http://web.enlightenment.org/p.php?p=docs">Docs</a></li> <li><a href="http://trac.enlightenment.org/e">Tracker</a></li> <li><a href="http://www.enlightenment.org/p.php?p=contact">Contact</a></li> <li><a href="http://www.enlightenment.org/p.php?p=contribute">Contribute</a></li> <li><a href="http://www.enlightenment.org/p.php?p=support">Support</a></li> <li><a href="http://www.enlightenment.org/p.php?p=download">Download</a></li> <li><a href="http://www.enlightenment.org/p.php?p=about">About</a></li> <li><a href="http://www.enlightenment.org/p.php?p=news">News</a></li> <li><a href="http://www.enlightenment.org/">Home</a></li> </ul> </div> </div> <div class="doxytitle"> Embryo Documentation <small>at 2 Jul 2010</small> </div> <div class="menu-container"> <div class="submenu"> <ul class="current"> <li><a href="todo.html">Todo</a></li> <li><a href="files.html">Files</a></li> <li><a href="annotated.html">Data Structures</a></li> <li><a href="globals.html">Globals</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="pages.html">Related Pages</a></li> <li class="current"><a href="index.html">Main Page</a></li> </ul> </div> </div> <div class="clear"></div> </div> </div> <div id="content"> <div class="layout"> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="contents"> <h1>Heap Functions</h1> <p>The heap is an area of memory that can be allocated for program use at runtime. <a href="#_details">More...</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">EAPI Embryo_Cell </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Embryo__Heap__Group.html#ga9dc1279d6ed98dfd66bed904e2dfadec">embryo_data_heap_push</a> (Embryo_Program *ep, int cells)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Increases the size of the heap of the given virtual machine by the given number of Embryo_Cells. <a href="#ga9dc1279d6ed98dfd66bed904e2dfadec"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">EAPI void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Embryo__Heap__Group.html#gaba1369c72afa0acb6e437ef6923dae63">embryo_data_heap_pop</a> (Embryo_Program *ep, Embryo_Cell down_to)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Decreases the size of the heap of the given virtual machine down to the given size. <a href="#gaba1369c72afa0acb6e437ef6923dae63"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>The heap is an area of memory that can be allocated for program use at runtime. </p> <p>The heap functions here change the amount of heap memory available. </p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="gaba1369c72afa0acb6e437ef6923dae63"></a><!-- doxytag: member="embryo_amx.c::embryo_data_heap_pop" ref="gaba1369c72afa0acb6e437ef6923dae63" args="(Embryo_Program *ep, Embryo_Cell down_to)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">EAPI void embryo_data_heap_pop </td> <td>(</td> <td class="paramtype">Embryo_Program * </td> <td class="paramname"> <em>ep</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Embryo_Cell </td> <td class="paramname"> <em>down_to</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Decreases the size of the heap of the given virtual machine down to the given size. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ep</em> </td><td>The program with the given virtual machine. </td></tr> <tr><td valign="top"></td><td valign="top"><em>down_to</em> </td><td>The given size. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ga9dc1279d6ed98dfd66bed904e2dfadec"></a><!-- doxytag: member="embryo_amx.c::embryo_data_heap_push" ref="ga9dc1279d6ed98dfd66bed904e2dfadec" args="(Embryo_Program *ep, int cells)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">EAPI Embryo_Cell embryo_data_heap_push </td> <td>(</td> <td class="paramtype">Embryo_Program * </td> <td class="paramname"> <em>ep</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>cells</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Increases the size of the heap of the given virtual machine by the given number of Embryo_Cells. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ep</em> </td><td>The program with the given virtual machine. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cells</em> </td><td>The given number of Embryo_Cells. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The address of the new memory region on success. <code>EMBRYO_CELL_NONE</code> otherwise. </dd></dl> <p>References <a class="el" href="Embryo_8h_source.html#l00083">EMBRYO_CELL_NONE</a>.</p> <p>Referenced by <a class="el" href="embryo__amx_8c_source.html#l01048">embryo_program_run()</a>.</p> </div> </div> </div> <div id="push"></div> </div> <!-- #content --> </div> <!-- .layout --> </div> <!-- #container --> <div id="footer"> <table><tr> <td class="poweredby"><img src="doxygen.png"></td> <td class="copyright">Copyright ©2010 Enlightenment</td> <td class="generated">Docs generated Fri Jul 2 11:50:27 2010</td> </tr></table> </div> </body> </html>