mxmlNewInteger(), mxmlNewOpaque(), mxmlNewReal(), mxmlNewText(),

and mxmlNewTextf() incorrectly required a parent node (STR #22)
This commit is contained in:
Michael R Sweet 2005-05-14 12:34:29 +00:00
parent a44fcd4146
commit 35a7797e2c
2 changed files with 7 additions and 18 deletions

View File

@ -1,8 +1,11 @@
CHANGES - 04/24/2005
CHANGES - 05/14/2005
--------------------
CHANGES IN Mini-XML 2.2.1
- mxmlNewInteger(), mxmlNewOpaque(), mxmlNewReal(),
mxmlNewText(), and mxmlNewTextf() incorrectly required
a parent node (STR #22)
- Fixed an XML output bug in mxmldoc.
- The "make install" target now uses the install command
to set the proper permissions on UNIX/Linux/OSX.

View File

@ -365,13 +365,6 @@ mxmlNewInteger(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */
fprintf(stderr, "mxmlNewInteger(parent=%p, integer=%d)\n", parent, integer);
#endif /* DEBUG */
/*
* Range check input...
*/
if (!parent)
return (NULL);
/*
* Create the node and set the element name...
*/
@ -408,7 +401,7 @@ mxmlNewOpaque(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */
* Range check input...
*/
if (!parent || !opaque)
if (!opaque)
return (NULL);
/*
@ -441,13 +434,6 @@ mxmlNewReal(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */
fprintf(stderr, "mxmlNewReal(parent=%p, real=%g)\n", parent, real);
#endif /* DEBUG */
/*
* Range check input...
*/
if (!parent)
return (NULL);
/*
* Create the node and set the element name...
*/
@ -486,7 +472,7 @@ mxmlNewText(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */
* Range check input...
*/
if (!parent || !string)
if (!string)
return (NULL);
/*
@ -532,7 +518,7 @@ mxmlNewTextf(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */
* Range check input...
*/
if (!parent || !format)
if (!format)
return (NULL);
/*