Save changes to mxmldoc.c (debug stuff)

Update svn:ignore properties.
This commit is contained in:
Michael R Sweet 2006-05-07 18:07:39 +00:00
parent 0ac0e5f682
commit 3b4a9a6f4f
2 changed files with 51 additions and 2 deletions

View File

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

View File

@ -1,3 +1,4 @@
#define DEBUG 1
/*
* "$Id$"
*
@ -520,8 +521,13 @@ find_public(mxml_node_t *node, /* I - Current node */
* A missing or empty description signals a private node...
*/
#if 0
if (!description || !description->child)
continue;
#else
if (!description)
continue;
#endif /* 0 */
/*
* Look for @private@ in the comment text...
@ -1317,7 +1323,21 @@ scan_file(const char *filename, /* I - Filename */
#endif /* DEBUG */
update_comment(typedefnode,
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") &&
!mxmlFindElement(tree, tree, "description",
@ -1423,7 +1443,21 @@ scan_file(const char *filename, /* I - Filename */
#endif /* DEBUG */
update_comment(typedefnode,
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") &&
!mxmlFindElement(tree, tree, "description",
@ -1505,6 +1539,19 @@ scan_file(const char *filename, /* I - Filename */
#endif /* DEBUG */
update_comment(typedefnode,
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") &&
!mxmlFindElement(tree, tree, "description",