<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Memory Allocation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.17 --> <h1>Memory Allocation</h1><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Typedefs</h2></td></tr> <tr><td nowrap align=right valign=top>typedef void *(* </td><td valign=bottom><a class="el" href="group__Memory.html#a0">TidyMalloc</a> )(size_t len)</td></tr> <tr><td nowrap align=right valign=top>typedef void *(* </td><td valign=bottom><a class="el" href="group__Memory.html#a1">TidyRealloc</a> )(void *buf, size_t len)</td></tr> <tr><td nowrap align=right valign=top>typedef void(* </td><td valign=bottom><a class="el" href="group__Memory.html#a2">TidyFree</a> )(void *buf)</td></tr> <tr><td nowrap align=right valign=top>typedef void(* </td><td valign=bottom><a class="el" href="group__Memory.html#a3">TidyPanic</a> )(ctmbstr mssg)</td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top>Bool </td><td valign=bottom><a class="el" href="group__Memory.html#a4">tidySetMallocCall</a> (<a class="el" href="group__Memory.html#a0">TidyMalloc</a> fmalloc)</td></tr> <tr><td nowrap align=right valign=top>Bool </td><td valign=bottom><a class="el" href="group__Memory.html#a5">tidySetReallocCall</a> (<a class="el" href="group__Memory.html#a1">TidyRealloc</a> frealloc)</td></tr> <tr><td nowrap align=right valign=top>Bool </td><td valign=bottom><a class="el" href="group__Memory.html#a6">tidySetFreeCall</a> (<a class="el" href="group__Memory.html#a2">TidyFree</a> ffree)</td></tr> <tr><td nowrap align=right valign=top>Bool </td><td valign=bottom><a class="el" href="group__Memory.html#a7">tidySetPanicCall</a> (<a class="el" href="group__Memory.html#a3">TidyPanic</a> fpanic)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> By default, Tidy will use its own wrappers around standard C malloc/free calls. These wrappers will abort upon any failures. If any are set, all must be set. Pass NULL to clear previous setting. <p> May be used to set environment-specific allocators such as used by web server plugins, etc. <hr><h2>Typedef Documentation</h2> <a name="a0" doxytag="tidy.h::TidyMalloc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> typedef void*(* TidyMalloc)( size_t len ) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Callback for "malloc" replacement </td> </tr> </table> <a name="a1" doxytag="tidy.h::TidyRealloc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> typedef void*(* TidyRealloc)( void* buf, size_t len ) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Callback for "realloc" replacement </td> </tr> </table> <a name="a2" doxytag="tidy.h::TidyFree"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> typedef void(* TidyFree)( void* buf ) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Callback for "free" replacement </td> </tr> </table> <a name="a3" doxytag="tidy.h::TidyPanic"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> typedef void(* TidyPanic)( ctmbstr mssg ) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Callback for "out of memory" panic state </td> </tr> </table> <hr><h2>Function Documentation</h2> <a name="a4" doxytag="tidy.h::tidySetMallocCall"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Bool tidySetMallocCall </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a0">TidyMalloc</a> </td> <td class="mdname1" valign="top" nowrap> <em>fmalloc</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Give Tidy a malloc() replacement </td> </tr> </table> <a name="a5" doxytag="tidy.h::tidySetReallocCall"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Bool tidySetReallocCall </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a1">TidyRealloc</a> </td> <td class="mdname1" valign="top" nowrap> <em>frealloc</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Give Tidy a realloc() replacement </td> </tr> </table> <a name="a6" doxytag="tidy.h::tidySetFreeCall"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Bool tidySetFreeCall </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a2">TidyFree</a> </td> <td class="mdname1" valign="top" nowrap> <em>ffree</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Give Tidy a free() replacement </td> </tr> </table> <a name="a7" doxytag="tidy.h::tidySetPanicCall"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Bool tidySetPanicCall </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a3">TidyPanic</a> </td> <td class="mdname1" valign="top" nowrap> <em>fpanic</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Give Tidy an "out of memory" handler </td> </tr> </table> <hr><address style="align: right;"><small>Generated on Fri Dec 13 18:27:08 2002 for HTML Tidy by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.17 </small></address> </body> </html>