Hash :
60f394e9
Author :
Date :
2003-11-16T06:25:42
Finally - found the problem with the page generation (XMLPUBFUN not * doc/html/*.html: Finally - found the problem with the page generation (XMLPUBFUN not recognized by gtkdoc). Re-created the pages using a temporary version of include/libxml/*.h. * testOOMlib.c,include/libxml/encoding.h, include/libxml/schemasInternals.h,include/libxml/valid.h, include/libxml/xlink.h,include/libxml/xmlwin32version.h, include/libxml/xmlwin32version.h.in, include/libxml/xpathInternals.h: minor edit of comments to help automatic documentation generation * doc/docdescr.doc: small elaboration * doc/examples/test1.c,doc/examples/Makefile.am: re-commit (messed up on last try) * xmlreader.c: minor change to clear warning.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>testOOMlib</title><meta name="generator" content="DocBook XSL Stylesheets V1.48"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">
.synopsis, .classsynopsis {
background: #eeeeee;
border: solid 1px #aaaaaa;
padding: 0.5em;
}
.programlisting {
background: #eeeeff;
border: solid 1px #aaaaff;
padding: 0.5em;
}
.variablelist {
padding: 4px;
margin-left: 3em;
}
.navigation {
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.navigation a {
color: #770000;
}
.navigation a:visited {
color: #550000;
}
.navigation .title {
font-size: 200%;
}
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="ch01.html" title="Libxml Programming Notes"><link rel="previous" href="ch01.html" title="Libxml Programming Notes"><link rel="next" href="libxml-wincecompat.html" title="wincecompat"></head><body text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-wincecompat.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="libxml-testOOMlib"></a><div class="titlepage"></div><div class="refnamediv"><h2>testOOMlib</h2><p>testOOMlib — </p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id2625490"></a>Synopsis</h1></h2><pre class="synopsis">
void* <a href="libxml-testOOMlib.html#test-malloc">test_malloc</a> (<GTKDOCLINK HREF="size-t">size_t</GTKDOCLINK> bytes);
void* <a href="libxml-testOOMlib.html#test-realloc">test_realloc</a> (void *memory,
<GTKDOCLINK HREF="size-t">size_t</GTKDOCLINK> bytes);
void <a href="libxml-testOOMlib.html#test-free">test_free</a> (void *memory);
char* <a href="libxml-testOOMlib.html#test-strdup">test_strdup</a> (const char *str);
int (<a href="libxml-testOOMlib.html#TestMemoryFunction">*TestMemoryFunction</a>) (void *data);
int <a href="libxml-testOOMlib.html#test-oom-handling">test_oom_handling</a> (<a href="libxml-testOOMlib.html#TestMemoryFunction">TestMemoryFunction</a> func,
void *data);
int <a href="libxml-testOOMlib.html#test-get-malloc-blocks-outstanding">test_get_malloc_blocks_outstanding</a>
(void);
</pre></div><div class="refsect1"><h2>Description</h2><p>
</p></div><div class="refsect1"><h2>Details</h2><div class="refsect2"><h3><a name="test-malloc"></a>test_malloc ()</h3><pre class="programlisting">void* test_malloc (<GTKDOCLINK HREF="size-t">size_t</GTKDOCLINK> bytes);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>bytes</tt></i>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="test-realloc"></a>test_realloc ()</h3><pre class="programlisting">void* test_realloc (void *memory,
<GTKDOCLINK HREF="size-t">size_t</GTKDOCLINK> bytes);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>memory</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i><tt>bytes</tt></i>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="test-free"></a>test_free ()</h3><pre class="programlisting">void test_free (void *memory);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>memory</tt></i>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="test-strdup"></a>test_strdup ()</h3><pre class="programlisting">char* test_strdup (const char *str);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><i>Returns</i></span> :</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="TestMemoryFunction"></a>TestMemoryFunction ()</h3><pre class="programlisting">int (*TestMemoryFunction) (void *data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>data</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><i>Returns</i></span> :</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="test-oom-handling"></a>test_oom_handling ()</h3><pre class="programlisting">int test_oom_handling (<a href="libxml-testOOMlib.html#TestMemoryFunction">TestMemoryFunction</a> func,
void *data);</pre><p>
Tests how well the given function responds to out-of-memory
situations. Calls the function repeatedly, failing a different
call to <GTKDOCLINK HREF="malloc">malloc</GTKDOCLINK>() each time. If the function ever returns <GTKDOCLINK HREF="FALSE-CAPS">FALSE</GTKDOCLINK>,
the test fails. The function should return <GTKDOCLINK HREF="TRUE-CAPS">TRUE</GTKDOCLINK> whenever something
valid (such as returning an error, or succeeding) occurs, and <GTKDOCLINK HREF="FALSE-CAPS">FALSE</GTKDOCLINK>
if it gets confused in some way.</p><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>func</tt></i>:</span></td><td> function to call
</td></tr><tr><td><span class="term"><i><tt>data</tt></i>:</span></td><td> data to pass to function
</td></tr><tr><td><span class="term"><span class="emphasis"><i>Returns</i></span> :</span></td><td><GTKDOCLINK HREF="TRUE-CAPS">TRUE</GTKDOCLINK> if the function never returns FALSE
</td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="test-get-malloc-blocks-outstanding"></a>test_get_malloc_blocks_outstanding ()</h3><pre class="programlisting">int test_get_malloc_blocks_outstanding
(void);</pre><p>
Get the number of outstanding <GTKDOCLINK HREF="malloc">malloc</GTKDOCLINK>()'d blocks.</p><p>
</p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><span class="emphasis"><i>Returns</i></span> :</span></td><td>number of blocks
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="ch01.html"><b><< Libxml Programming Notes</b></a></td><td align="right"><a accesskey="n" href="libxml-wincecompat.html"><b>wincecompat >></b></a></td></tr></table></body></html>