From 52c8493cdbf58e44e31cad68dd6628c68d43649e Mon Sep 17 00:00:00 2001
From: Michael R Sweet
Date: Wed, 3 Dec 2003 22:17:57 +0000
Subject: [PATCH] Add valgrind target.
More mxmldoc cleanup.
---
Makefile.in | 9 +++++--
documentation.html | 59 ----------------------------------------------
mxml.xml | 11 +--------
mxmldoc.c | 5 ++--
4 files changed, 10 insertions(+), 74 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index e276e5f..b5fa447 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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.
#
@@ -230,6 +230,11 @@ mxml.xml: mxmldoc mxml.h $(PUBLIBOBJS:.o=.c)
$(RM) mxml.xml
./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...
@@ -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 $".
#
diff --git a/documentation.html b/documentation.html
index 2b2443d..5ed7daf 100644
--- a/documentation.html
+++ b/documentation.html
@@ -16,7 +16,6 @@
Structures
Types
Unions
- Variables
@@ -38,7 +37,6 @@
-
-
-Syntax
-
-if((node
-calloc(
- sizeof(mxml_node_t))) NULL);
-
-Arguments
-
-Name | Description |
-
-NULL | |
-
-Returns
-
Add a node to a tree.
@@ -702,22 +683,6 @@ mxmlWalkPrev(
Returns
Previous node or NULL
-
-Current buffer size
-Syntax
-
-if((newbuffer
-realloc(
- buffer, *bufsize)) NULL);
-
-Arguments
-
-Name | Description |
-
-NULL | |
-
-Returns
-Increase the size of the buffer...
@@ -880,29 +845,5 @@ struct mxml_value_u
real | Real number |
text | Text fragment |
-
-
-
-
-Definition
-
-buffer newbuffer;
-
-
-New node
-Definition
-
-mxml_node_t * node;
-
-
-Add to the parent if present...
-Definition
-
-node type type;
-