MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathDebugDumpNodeList

Function xmlXPathDebugDumpNodeList

ThirdParty/libxml2/vtklibxml2/xpath.c:1121–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119 xmlDebugDumpOneNode(output, cur, depth);
1120}
1121static void
1122xmlXPathDebugDumpNodeList(FILE *output, xmlNodePtr cur, int depth) {
1123 xmlNodePtr tmp;
1124 int i;
1125 char shift[100];
1126
1127 for (i = 0;((i < depth) && (i < 25));i++)
1128 shift[2 * i] = shift[2 * i + 1] = ' ';
1129 shift[2 * i] = shift[2 * i + 1] = 0;
1130 if (cur == NULL) {
1131 fprintf(output, "%s", shift);
1132 fprintf(output, "Node is NULL !\n");
1133 return;
1134
1135 }
1136
1137 while (cur != NULL) {
1138 tmp = cur;
1139 cur = cur->next;
1140 xmlDebugDumpOneNode(output, tmp, depth);
1141 }
1142}
1143
1144static void
1145xmlXPathDebugDumpNodeSet(FILE *output, xmlNodeSetPtr cur, int depth) {

Callers 1

Calls 2

fprintfFunction · 0.85
xmlDebugDumpOneNodeFunction · 0.85

Tested by

no test coverage detected