71 fprintf(stderr,
"mxmlAdd(parent=%p, where=%d, child=%p, node=%p)\n", parent,
83 fprintf(stderr,
" BEFORE: node->parent=%p\n", node->
parent);
86 fprintf(stderr,
" BEFORE: parent->child=%p\n", parent->
child);
87 fprintf(stderr,
" BEFORE: parent->last_child=%p\n", parent->
last_child);
88 fprintf(stderr,
" BEFORE: parent->prev=%p\n", parent->
prev);
89 fprintf(stderr,
" BEFORE: parent->next=%p\n", parent->
next);
109 if (!child || child == parent->
child || child->
parent != parent)
122 parent->
child = node;
136 parent->
child = node;
155 parent->
child = node;
179 fprintf(stderr,
" AFTER: node->parent=%p\n", node->
parent);
182 fprintf(stderr,
" AFTER: parent->child=%p\n", parent->
child);
183 fprintf(stderr,
" AFTER: parent->last_child=%p\n", parent->
last_child);
184 fprintf(stderr,
" AFTER: parent->prev=%p\n", parent->
prev);
185 fprintf(stderr,
" AFTER: parent->next=%p\n", parent->
next);
205 fprintf(stderr,
"mxmlDelete(node=%p)\n", node);
301 fprintf(stderr,
"mxmlNewCDATA(parent=%p, data=\"%s\")\n",
302 parent, data ? data :
"(null)");
344 fprintf(stderr,
"mxmlNewCustom(parent=%p, data=%p, destroy=%p)\n", parent,
352 if ((node = mxml_new(parent,
MXML_CUSTOM)) != NULL)
378 fprintf(stderr,
"mxmlNewElement(parent=%p, name=\"%s\")\n", parent,
379 name ? name :
"(null)");
416 fprintf(stderr,
"mxmlNewInteger(parent=%p, integer=%d)\n", parent, integer);
447 fprintf(stderr,
"mxmlNewOpaque(parent=%p, opaque=\"%s\")\n", parent,
448 opaque ? opaque :
"(null)");
462 if ((node = mxml_new(parent,
MXML_OPAQUE)) != NULL)
485 fprintf(stderr,
"mxmlNewReal(parent=%p, real=%g)\n", parent, real);
492 if ((node = mxml_new(parent,
MXML_REAL)) != NULL)
518 fprintf(stderr,
"mxmlNewText(parent=%p, whitespace=%d, string=\"%s\")\n",
519 parent, whitespace,
string ?
string :
"(null)");
533 if ((node = mxml_new(parent,
MXML_TEXT)) != NULL)
564 fprintf(stderr,
"mxmlNewTextf(parent=%p, whitespace=%d, format=\"%s\", ...)\n",
565 parent, whitespace, format ? format :
"(null)");
579 if ((node = mxml_new(parent,
MXML_TEXT)) != NULL)
581 va_start(ap, format);
604 fprintf(stderr,
"mxmlRemove(node=%p)\n", node);
611 if (!node || !node->
parent)
619 fprintf(stderr,
" BEFORE: node->parent=%p\n", node->
parent);
622 fprintf(stderr,
" BEFORE: node->parent->child=%p\n", node->
parent->
child);
623 fprintf(stderr,
" BEFORE: node->parent->last_child=%p\n", node->
parent->
last_child);
625 fprintf(stderr,
" BEFORE: node->child=%p\n", node->
child);
626 fprintf(stderr,
" BEFORE: node->last_child=%p\n", node->
last_child);
627 fprintf(stderr,
" BEFORE: node->prev=%p\n", node->
prev);
628 fprintf(stderr,
" BEFORE: node->next=%p\n", node->
next);
646 fprintf(stderr,
" AFTER: node->parent=%p\n", node->
parent);
649 fprintf(stderr,
" AFTER: node->parent->child=%p\n", node->
parent->
child);
650 fprintf(stderr,
" AFTER: node->parent->last_child=%p\n", node->
parent->
last_child);
652 fprintf(stderr,
" AFTER: node->child=%p\n", node->
child);
653 fprintf(stderr,
" AFTER: node->last_child=%p\n", node->
last_child);
654 fprintf(stderr,
" AFTER: node->prev=%p\n", node->
prev);
655 fprintf(stderr,
" AFTER: node->next=%p\n", node->
next);
675 _snprintf(element,
sizeof(element),
"?xml version=\"%s\" encoding=\"utf-8\"?",
676 version ? version :
"1.0");
737 fprintf(stderr,
"mxml_new(parent=%p, type=%d)\n", parent, type);
747 fputs(
" returning NULL\n", stderr);
754 fprintf(stderr,
" returning %p\n", node);