Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > bac5fede712203208ef64743259eb319 > files > 27

embryo-devel-1.0.0-2.fc15.i686.rpm

<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 Tue Feb 8 2011</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.7.3 -->
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>Heap Functions</h1>  </div>
</div>
<div class="contents">

<p>The heap is an area of memory that can be allocated for program use at runtime.  
<a href="#_details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">EAPI Embryo_Cell&#160;</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">&#160;</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&#160;</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">&#160;</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 *&#160;</td>
          <td class="paramname"><em>ep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Embryo_Cell&#160;</td>
          <td class="paramname"><em>down_to</em>&#160;</td>
        </tr>
        <tr>
          <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 class="params">
    <tr><td class="paramname">ep</td><td>The program with the given virtual machine. </td></tr>
    <tr><td class="paramname">down_to</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 *&#160;</td>
          <td class="paramname"><em>ep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cells</em>&#160;</td>
        </tr>
        <tr>
          <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 class="params">
    <tr><td class="paramname">ep</td><td>The program with the given virtual machine. </td></tr>
    <tr><td class="paramname">cells</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.html#a570d5164a5f3d5d05f63e2e60c6ba7ad">EMBRYO_CELL_NONE</a>.</p>

<p>Referenced by <a class="el" href="group__Embryo__Run__Group.html#ga29c5d998350f875882c2672c9be617c6">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 &copy;2011 Enlightenment</td>
      <td class="generated">Docs generated Tue Feb 8 2011 18:11:42</td>
    </tr></table>
  </div>


</body>
</html>