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

and mxmlNewTextf() incorrectly required a parent node (STR #22)
pull/193/head
Michael R Sweet 19 years ago
parent a44fcd4146
commit 35a7797e2c
  1. 5
      CHANGES
  2. 20
      mxml-node.c

@ -1,8 +1,11 @@
CHANGES - 04/24/2005 CHANGES - 05/14/2005
-------------------- --------------------
CHANGES IN Mini-XML 2.2.1 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. - Fixed an XML output bug in mxmldoc.
- The "make install" target now uses the install command - The "make install" target now uses the install command
to set the proper permissions on UNIX/Linux/OSX. to set the proper permissions on UNIX/Linux/OSX.

@ -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); fprintf(stderr, "mxmlNewInteger(parent=%p, integer=%d)\n", parent, integer);
#endif /* DEBUG */ #endif /* DEBUG */
/*
* Range check input...
*/
if (!parent)
return (NULL);
/* /*
* Create the node and set the element name... * 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... * Range check input...
*/ */
if (!parent || !opaque) if (!opaque)
return (NULL); 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); fprintf(stderr, "mxmlNewReal(parent=%p, real=%g)\n", parent, real);
#endif /* DEBUG */ #endif /* DEBUG */
/*
* Range check input...
*/
if (!parent)
return (NULL);
/* /*
* Create the node and set the element name... * 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... * Range check input...
*/ */
if (!parent || !string) if (!string)
return (NULL); return (NULL);
/* /*
@ -532,7 +518,7 @@ mxmlNewTextf(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */
* Range check input... * Range check input...
*/ */
if (!parent || !format) if (!format)
return (NULL); return (NULL);
/* /*

Loading…
Cancel
Save