Save changes to mxmldoc.c (debug stuff)

Update svn:ignore properties.
pull/193/head
Michael R Sweet 19 years ago
parent 0ac0e5f682
commit 3b4a9a6f4f
  1. 2
      mxml.xml
  2. 51
      mxmldoc.c

@ -839,6 +839,8 @@ the walk to the node's children.</description>
<typedef name="mxml_custom_save_cb_t"> <typedef name="mxml_custom_save_cb_t">
<type>char *(*)(mxml_node_t *)</type> <type>char *(*)(mxml_node_t *)</type>
<description>Custom data save callback function</description> <description>Custom data save callback function</description>
<description>C++ support...</description>
<description>End of &quot;$Id$&quot;.</description>
</typedef> </typedef>
<typedef name="mxml_custom_t"> <typedef name="mxml_custom_t">
<type>struct mxml_custom_s</type> <type>struct mxml_custom_s</type>

@ -1,3 +1,4 @@
#define DEBUG 1
/* /*
* "$Id$" * "$Id$"
* *
@ -520,8 +521,13 @@ find_public(mxml_node_t *node, /* I - Current node */
* A missing or empty description signals a private node... * A missing or empty description signals a private node...
*/ */
#if 0
if (!description || !description->child) if (!description || !description->child)
continue; continue;
#else
if (!description)
continue;
#endif /* 0 */
/* /*
* Look for @private@ in the comment text... * Look for @private@ in the comment text...
@ -1317,7 +1323,21 @@ scan_file(const char *filename, /* I - Filename */
#endif /* DEBUG */ #endif /* DEBUG */
update_comment(typedefnode, update_comment(typedefnode,
mxmlNewText(description, 0, buffer)); mxmlNewText(description, 0, buffer));
typedefnode = NULL;
if (structclass)
{
description = mxmlNewElement(structclass, "description");
update_comment(structclass,
mxmlNewText(description, 0, buffer));
}
else if (enumeration)
{
description = mxmlNewElement(enumeration, "description");
update_comment(enumeration,
mxmlNewText(description, 0, buffer));
}
// typedefnode = NULL;
} }
else if (strcmp(tree->value.element.name, "mxmldoc") && else if (strcmp(tree->value.element.name, "mxmldoc") &&
!mxmlFindElement(tree, tree, "description", !mxmlFindElement(tree, tree, "description",
@ -1423,7 +1443,21 @@ scan_file(const char *filename, /* I - Filename */
#endif /* DEBUG */ #endif /* DEBUG */
update_comment(typedefnode, update_comment(typedefnode,
mxmlNewText(description, 0, buffer)); mxmlNewText(description, 0, buffer));
typedefnode = NULL;
if (structclass)
{
description = mxmlNewElement(structclass, "description");
update_comment(structclass,
mxmlNewText(description, 0, buffer));
}
else if (enumeration)
{
description = mxmlNewElement(enumeration, "description");
update_comment(enumeration,
mxmlNewText(description, 0, buffer));
}
// typedefnode = NULL;
} }
else if (strcmp(tree->value.element.name, "mxmldoc") && else if (strcmp(tree->value.element.name, "mxmldoc") &&
!mxmlFindElement(tree, tree, "description", !mxmlFindElement(tree, tree, "description",
@ -1505,6 +1539,19 @@ scan_file(const char *filename, /* I - Filename */
#endif /* DEBUG */ #endif /* DEBUG */
update_comment(typedefnode, update_comment(typedefnode,
mxmlNewText(description, 0, buffer)); mxmlNewText(description, 0, buffer));
if (structclass)
{
description = mxmlNewElement(structclass, "description");
update_comment(structclass,
mxmlNewText(description, 0, buffer));
}
else if (enumeration)
{
description = mxmlNewElement(enumeration, "description");
update_comment(enumeration,
mxmlNewText(description, 0, buffer));
}
} }
else if (strcmp(tree->value.element.name, "mxmldoc") && else if (strcmp(tree->value.element.name, "mxmldoc") &&
!mxmlFindElement(tree, tree, "description", !mxmlFindElement(tree, tree, "description",

Loading…
Cancel
Save