mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-08 13:39:58 +00:00
mxmlNewInteger(), mxmlNewOpaque(), mxmlNewReal(), mxmlNewText(),
and mxmlNewTextf() incorrectly required a parent node (STR #22)
This commit is contained in:
parent
a44fcd4146
commit
35a7797e2c
5
CHANGES
5
CHANGES
@ -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.
|
||||
|
20
mxml-node.c
20
mxml-node.c
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user