1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>Memory Allocation</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5</head><body>
6<!-- Generated by Doxygen 1.2.17 -->
7<h1>Memory Allocation</h1><table border=0 cellpadding=0 cellspacing=0>
8<tr><td></td></tr>
9<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
10<tr><td nowrap align=right valign=top>typedef void *(*&nbsp;</td><td valign=bottom><a class="el" href="group__Memory.html#a0">TidyMalloc</a> )(size_t len)</td></tr>
11<tr><td nowrap align=right valign=top>typedef void *(*&nbsp;</td><td valign=bottom><a class="el" href="group__Memory.html#a1">TidyRealloc</a> )(void *buf, size_t len)</td></tr>
12<tr><td nowrap align=right valign=top>typedef void(*&nbsp;</td><td valign=bottom><a class="el" href="group__Memory.html#a2">TidyFree</a> )(void *buf)</td></tr>
13<tr><td nowrap align=right valign=top>typedef void(*&nbsp;</td><td valign=bottom><a class="el" href="group__Memory.html#a3">TidyPanic</a> )(ctmbstr mssg)</td></tr>
14<tr><td colspan=2><br><h2>Functions</h2></td></tr>
15<tr><td nowrap align=right valign=top>Bool&nbsp;</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>
16<tr><td nowrap align=right valign=top>Bool&nbsp;</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>
17<tr><td nowrap align=right valign=top>Bool&nbsp;</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>
18<tr><td nowrap align=right valign=top>Bool&nbsp;</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>
19</table>
20<hr><a name="_details"></a><h2>Detailed Description</h2>
21By 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.
22<p>
23May be used to set environment-specific allocators such as used by web server plugins, etc. <hr><h2>Typedef Documentation</h2>
24<a name="a0" doxytag="tidy.h::TidyMalloc"></a><p>
25<table width="100%" cellpadding="2" cellspacing="0" border="0">
26  <tr>
27    <td class="md">
28      <table cellpadding="0" cellspacing="0" border="0">
29        <tr>
30          <td class="md" nowrap valign="top"> typedef void*(* TidyMalloc)( size_t len )
31      </table>
32    </td>
33  </tr>
34</table>
35<table cellspacing=5 cellpadding=0 border=0>
36  <tr>
37    <td>
38      &nbsp;
39    </td>
40    <td>
41
42<p>
43Callback for "malloc" replacement     </td>
44  </tr>
45</table>
46<a name="a1" doxytag="tidy.h::TidyRealloc"></a><p>
47<table width="100%" cellpadding="2" cellspacing="0" border="0">
48  <tr>
49    <td class="md">
50      <table cellpadding="0" cellspacing="0" border="0">
51        <tr>
52          <td class="md" nowrap valign="top"> typedef void*(* TidyRealloc)( void* buf, size_t len )
53      </table>
54    </td>
55  </tr>
56</table>
57<table cellspacing=5 cellpadding=0 border=0>
58  <tr>
59    <td>
60      &nbsp;
61    </td>
62    <td>
63
64<p>
65Callback for "realloc" replacement     </td>
66  </tr>
67</table>
68<a name="a2" doxytag="tidy.h::TidyFree"></a><p>
69<table width="100%" cellpadding="2" cellspacing="0" border="0">
70  <tr>
71    <td class="md">
72      <table cellpadding="0" cellspacing="0" border="0">
73        <tr>
74          <td class="md" nowrap valign="top"> typedef void(* TidyFree)( void* buf )
75      </table>
76    </td>
77  </tr>
78</table>
79<table cellspacing=5 cellpadding=0 border=0>
80  <tr>
81    <td>
82      &nbsp;
83    </td>
84    <td>
85
86<p>
87Callback for "free" replacement     </td>
88  </tr>
89</table>
90<a name="a3" doxytag="tidy.h::TidyPanic"></a><p>
91<table width="100%" cellpadding="2" cellspacing="0" border="0">
92  <tr>
93    <td class="md">
94      <table cellpadding="0" cellspacing="0" border="0">
95        <tr>
96          <td class="md" nowrap valign="top"> typedef void(* TidyPanic)( ctmbstr mssg )
97      </table>
98    </td>
99  </tr>
100</table>
101<table cellspacing=5 cellpadding=0 border=0>
102  <tr>
103    <td>
104      &nbsp;
105    </td>
106    <td>
107
108<p>
109Callback for "out of memory" panic state     </td>
110  </tr>
111</table>
112<hr><h2>Function Documentation</h2>
113<a name="a4" doxytag="tidy.h::tidySetMallocCall"></a><p>
114<table width="100%" cellpadding="2" cellspacing="0" border="0">
115  <tr>
116    <td class="md">
117      <table cellpadding="0" cellspacing="0" border="0">
118        <tr>
119          <td class="md" nowrap valign="top"> Bool tidySetMallocCall </td>
120          <td class="md" valign="top">(&nbsp;</td>
121          <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a0">TidyMalloc</a>&nbsp;</td>
122          <td class="mdname1" valign="top" nowrap>&nbsp; <em>fmalloc</em>          </td>
123          <td class="md" valign="top">)&nbsp;</td>
124          <td class="md" nowrap></td>
125        </tr>
126
127      </table>
128    </td>
129  </tr>
130</table>
131<table cellspacing=5 cellpadding=0 border=0>
132  <tr>
133    <td>
134      &nbsp;
135    </td>
136    <td>
137
138<p>
139Give Tidy a malloc() replacement     </td>
140  </tr>
141</table>
142<a name="a5" doxytag="tidy.h::tidySetReallocCall"></a><p>
143<table width="100%" cellpadding="2" cellspacing="0" border="0">
144  <tr>
145    <td class="md">
146      <table cellpadding="0" cellspacing="0" border="0">
147        <tr>
148          <td class="md" nowrap valign="top"> Bool tidySetReallocCall </td>
149          <td class="md" valign="top">(&nbsp;</td>
150          <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a1">TidyRealloc</a>&nbsp;</td>
151          <td class="mdname1" valign="top" nowrap>&nbsp; <em>frealloc</em>          </td>
152          <td class="md" valign="top">)&nbsp;</td>
153          <td class="md" nowrap></td>
154        </tr>
155
156      </table>
157    </td>
158  </tr>
159</table>
160<table cellspacing=5 cellpadding=0 border=0>
161  <tr>
162    <td>
163      &nbsp;
164    </td>
165    <td>
166
167<p>
168Give Tidy a realloc() replacement     </td>
169  </tr>
170</table>
171<a name="a6" doxytag="tidy.h::tidySetFreeCall"></a><p>
172<table width="100%" cellpadding="2" cellspacing="0" border="0">
173  <tr>
174    <td class="md">
175      <table cellpadding="0" cellspacing="0" border="0">
176        <tr>
177          <td class="md" nowrap valign="top"> Bool tidySetFreeCall </td>
178          <td class="md" valign="top">(&nbsp;</td>
179          <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a2">TidyFree</a>&nbsp;</td>
180          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ffree</em>          </td>
181          <td class="md" valign="top">)&nbsp;</td>
182          <td class="md" nowrap></td>
183        </tr>
184
185      </table>
186    </td>
187  </tr>
188</table>
189<table cellspacing=5 cellpadding=0 border=0>
190  <tr>
191    <td>
192      &nbsp;
193    </td>
194    <td>
195
196<p>
197Give Tidy a free() replacement     </td>
198  </tr>
199</table>
200<a name="a7" doxytag="tidy.h::tidySetPanicCall"></a><p>
201<table width="100%" cellpadding="2" cellspacing="0" border="0">
202  <tr>
203    <td class="md">
204      <table cellpadding="0" cellspacing="0" border="0">
205        <tr>
206          <td class="md" nowrap valign="top"> Bool tidySetPanicCall </td>
207          <td class="md" valign="top">(&nbsp;</td>
208          <td class="md" nowrap valign="top"><a class="el" href="group__Memory.html#a3">TidyPanic</a>&nbsp;</td>
209          <td class="mdname1" valign="top" nowrap>&nbsp; <em>fpanic</em>          </td>
210          <td class="md" valign="top">)&nbsp;</td>
211          <td class="md" nowrap></td>
212        </tr>
213
214      </table>
215    </td>
216  </tr>
217</table>
218<table cellspacing=5 cellpadding=0 border=0>
219  <tr>
220    <td>
221      &nbsp;
222    </td>
223    <td>
224
225<p>
226Give Tidy an "out of memory" handler     </td>
227  </tr>
228</table>
229<hr><address style="align: right;"><small>Generated on Fri Dec 13 18:27:08 2002 for HTML Tidy by
230<a href="http://www.doxygen.org/index.html">
231<img src="doxygen.png" alt="doxygen" align="middle" border=0 
232width=110 height=53></a>1.2.17 </small></address>
233</body>
234</html>
235