Add valgrind target.

More mxmldoc cleanup.
web
Michael R Sweet 21 years ago
parent 6bc3523143
commit 52c8493cdb
  1. 9
      Makefile.in
  2. 59
      documentation.html
  3. 11
      mxml.xml
  4. 5
      mxmldoc.c

@ -1,5 +1,5 @@
# #
# "$Id: Makefile.in,v 1.13 2003/09/28 21:09:03 mike Exp $" # "$Id: Makefile.in,v 1.14 2003/12/03 22:17:57 mike Exp $"
# #
# Makefile for mini-XML, a small XML-like file parsing library. # Makefile for mini-XML, a small XML-like file parsing library.
# #
@ -230,6 +230,11 @@ mxml.xml: mxmldoc mxml.h $(PUBLIBOBJS:.o=.c)
$(RM) mxml.xml $(RM) mxml.xml
./mxmldoc mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >documentation.html ./mxmldoc mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >documentation.html
valgrind: mxmldoc
$(RM) valgrind.xml
valgrind --leak-check=yes ./mxmldoc valgrind.xml mxml.h \
$(PUBLIBOBJS:.o=.c) >valgrind.html 2>valgrind.out
# #
# All object files depend on the makefile... # All object files depend on the makefile...
@ -239,5 +244,5 @@ $(OBJS): Makefile config.h
# #
# End of "$Id: Makefile.in,v 1.13 2003/09/28 21:09:03 mike Exp $". # End of "$Id: Makefile.in,v 1.14 2003/12/03 22:17:57 mike Exp $".
# #

@ -16,7 +16,6 @@
<li><a href="#_structures">Structures</a></li> <li><a href="#_structures">Structures</a></li>
<li><a href="#_types">Types</a></li> <li><a href="#_types">Types</a></li>
<li><a href="#_unions">Unions</a></li> <li><a href="#_unions">Unions</a></li>
<li><a href="#_variables">Variables</a></li>
</ul> </ul>
<hr noshade/> <hr noshade/>
<h1><a name="_enumerations">Enumerations</a></h1> <h1><a name="_enumerations">Enumerations</a></h1>
@ -38,7 +37,6 @@
<hr noshade/> <hr noshade/>
<h1><a name="_functions">Functions</a></h1> <h1><a name="_functions">Functions</a></h1>
<ul> <ul>
<li><a href="#calloc"><tt>calloc()</tt></a></li>
<li><a href="#mxmlAdd"><tt>mxmlAdd()</tt></a></li> <li><a href="#mxmlAdd"><tt>mxmlAdd()</tt></a></li>
<li><a href="#mxmlDelete"><tt>mxmlDelete()</tt></a></li> <li><a href="#mxmlDelete"><tt>mxmlDelete()</tt></a></li>
<li><a href="#mxmlElementGetAttr"><tt>mxmlElementGetAttr()</tt></a></li> <li><a href="#mxmlElementGetAttr"><tt>mxmlElementGetAttr()</tt></a></li>
@ -65,24 +63,7 @@
<li><a href="#mxmlSetTextf"><tt>mxmlSetTextf()</tt></a></li> <li><a href="#mxmlSetTextf"><tt>mxmlSetTextf()</tt></a></li>
<li><a href="#mxmlWalkNext"><tt>mxmlWalkNext()</tt></a></li> <li><a href="#mxmlWalkNext"><tt>mxmlWalkNext()</tt></a></li>
<li><a href="#mxmlWalkPrev"><tt>mxmlWalkPrev()</tt></a></li> <li><a href="#mxmlWalkPrev"><tt>mxmlWalkPrev()</tt></a></li>
<li><a href="#realloc"><tt>realloc()</tt></a></li>
</ul> </ul>
<h2><a name="calloc">calloc()</a></h2>
<p></p>
<h3>Syntax</h3>
<pre>
if((node
calloc(
sizeof(<a href="#mxml_node_t">mxml_node_t</a>))) NULL);
</pre>
<h3>Arguments</h3>
<p class="table"><table align="center" border="1" width="80%">
<thead><tr><th>Name</th><th>Description</th></tr></thead>
<tbody>
<tr><td><tt>NULL</tt></td><td></td></tr>
</tbody></table></p>
<h3>Returns</h3>
<p></p>
<h2><a name="mxmlAdd">mxmlAdd()</a></h2> <h2><a name="mxmlAdd">mxmlAdd()</a></h2>
<p>Add a node to a tree. <p>Add a node to a tree.
@ -702,22 +683,6 @@ mxmlWalkPrev(
</tbody></table></p> </tbody></table></p>
<h3>Returns</h3> <h3>Returns</h3>
<p>Previous node or NULL</p> <p>Previous node or NULL</p>
<h2><a name="realloc">realloc()</a></h2>
<p>Current buffer size</p>
<h3>Syntax</h3>
<pre>
if((newbuffer
realloc(
buffer, *bufsize)) NULL);
</pre>
<h3>Arguments</h3>
<p class="table"><table align="center" border="1" width="80%">
<thead><tr><th>Name</th><th>Description</th></tr></thead>
<tbody>
<tr><td><tt>NULL</tt></td><td></td></tr>
</tbody></table></p>
<h3>Returns</h3>
<p>Increase the size of the buffer...</p>
<hr noshade/> <hr noshade/>
<h1><a name="_structures">Structures</a></h1> <h1><a name="_structures">Structures</a></h1>
<ul> <ul>
@ -880,29 +845,5 @@ struct mxml_value_u
<tr><td><tt>real</tt></td><td>Real number</td></tr> <tr><td><tt>real</tt></td><td>Real number</td></tr>
<tr><td><tt>text</tt></td><td>Text fragment</td></tr> <tr><td><tt>text</tt></td><td>Text fragment</td></tr>
</tbody></table></p> </tbody></table></p>
<hr noshade/>
<h1><a name="_variables">Variables</a></h1>
<ul>
<li><a href="#newbuffer"><tt>newbuffer</tt></a></li>
<li><a href="#node"><tt>node</tt></a></li>
<li><a href="#type"><tt>type</tt></a></li>
</ul>
<h2><a name="newbuffer">newbuffer</a></h2>
<h3>Definition</h3>
<pre>
buffer newbuffer;
</pre>
<h2><a name="node">node</a></h2>
<p>New node</p>
<h3>Definition</h3>
<pre>
<a href="#mxml_node_t">mxml_node_t</a> * node;
</pre>
<h2><a name="type">type</a></h2>
<p>Add to the parent if present...</p>
<h3>Definition</h3>
<pre>
node type type;
</pre>
</body> </body>
</html> </html>

@ -1,7 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<function name="calloc"><returnvalue><description/><type>if((node</type></returnvalue>
<description/><argument name="NULL"><type>sizeof(mxml_node_t)))</type></argument>
</function>
<function name="mxmlAdd"><description>Add a node to a tree. <function name="mxmlAdd"><description>Add a node to a tree.
Adds the specified node to the parent. If the child argument is not Adds the specified node to the parent. If the child argument is not
@ -321,10 +318,4 @@ name="element"><type>mxml_element_t</type><description>Element</description></va
<variable name="opaque"><type>char *</type><description>Opaque string</description></variable> <variable name="opaque"><type>char *</type><description>Opaque string</description></variable>
<variable name="real"><type>double</type><description>Real number</description></variable> <variable name="real"><type>double</type><description>Real number</description></variable>
<variable name="text"><type>mxml_text_t</type><description>Text fragment</description></variable> <variable name="text"><type>mxml_text_t</type><description>Text fragment</description></variable>
</union><variable name="newbuffer"><type>buffer</type></variable> </union>
<variable name="node"><type>mxml_node_t *</type><description>New node</description></variable>
<function name="realloc"><returnvalue><description>Increase the size of the buffer...</description><type>if((newbuffer</type></returnvalue>
<description>Current buffer size</description><argument name="NULL"><type>buffer,
*bufsize))</type></argument>
</function>
<variable name="type"><type>node type</type><description>Add to the parent if present...</description></variable>

@ -1,6 +1,6 @@
//#define DEBUG 1 //#define DEBUG 1
/* /*
* "$Id: mxmldoc.c,v 1.19 2003/12/03 04:26:30 mike Exp $" * "$Id: mxmldoc.c,v 1.20 2003/12/03 22:17:57 mike Exp $"
* *
* Documentation generator using mini-XML, a small XML-like file parsing * Documentation generator using mini-XML, a small XML-like file parsing
* library. * library.
@ -612,7 +612,6 @@ scan_file(const char *filename, /* I - Filename */
{ {
mxmlDelete(type); mxmlDelete(type);
type = NULL; type = NULL;
braces --;
} }
braces ++; braces ++;
@ -2141,5 +2140,5 @@ ws_cb(mxml_node_t *node, /* I - Element node */
/* /*
* End of "$Id: mxmldoc.c,v 1.19 2003/12/03 04:26:30 mike Exp $". * End of "$Id: mxmldoc.c,v 1.20 2003/12/03 22:17:57 mike Exp $".
*/ */

Loading…
Cancel
Save