Fix mxmlSaveFile() bug...

This commit is contained in:
Michael R Sweet 2003-06-04 00:25:59 +00:00
parent 481a9a630a
commit 9ee636328b
4 changed files with 18 additions and 6 deletions

View File

@ -2,6 +2,11 @@ README - 06/03/2003
-------------------
CHANGES IN Mini-XML 0.92
- mxmlSaveFile() didn't return a value on success.
CHANGES IN Mini-XML 0.91
- mxmlWalkNext() would go into an infinite loop.

View File

@ -1,5 +1,5 @@
#
# "$Id: Makefile.in,v 1.2 2003/06/04 00:12:12 mike Exp $"
# "$Id: Makefile.in,v 1.3 2003/06/04 00:25:59 mike Exp $"
#
# Makefile for mini-XML, a small XML-like file parsing library.
#
@ -109,6 +109,7 @@ testmxml: libmxml.a testmxml.o
@./testmxml temp1.xml >temp2.xml
@if cmp temp1.xml temp2.xml; then \
echo Test passed!; \
rm -f temp1.xml temp2.xml; \
else \
echo Test failed!; \
fi
@ -119,5 +120,5 @@ $(OBJS): Makefile
#
# End of "$Id: Makefile.in,v 1.2 2003/06/04 00:12:12 mike Exp $".
# End of "$Id: Makefile.in,v 1.3 2003/06/04 00:25:59 mike Exp $".
#

View File

@ -14,8 +14,8 @@
<H1 CLASS="title" ALIGN="CENTER">Mini-XML Home Page</H1>
<P CLASS="title" ALIGN="CENTER">Current Release: v0.91 ( <A
HREF="mxml-0.91.tar.gz">download source .tar.gz 40k</A> )</P>
<P CLASS="title" ALIGN="CENTER">Current Release: v0.92 ( <A
HREF="mxml-0.92.tar.gz">download source .tar.gz 40k</A> )</P>
<H2>Introduction</H2>

View File

@ -1,5 +1,5 @@
/*
* "$Id: mxml-file.c,v 1.1 2003/06/03 19:46:30 mike Exp $"
* "$Id: mxml-file.c,v 1.2 2003/06/04 00:25:59 mike Exp $"
*
* File loading code for mini-XML, a small XML-like file parsing library.
*
@ -443,6 +443,12 @@ mxmlSaveFile(mxml_node_t *node, /* I - Node to write */
node = node->next;
}
/*
* Return 0 (success)...
*/
return (0);
}
@ -632,5 +638,5 @@ mxml_write_string(const char *s, /* I - String to write */
/*
* End of "$Id: mxml-file.c,v 1.1 2003/06/03 19:46:30 mike Exp $".
* End of "$Id: mxml-file.c,v 1.2 2003/06/04 00:25:59 mike Exp $".
*/