| 1119 | xmlDebugDumpOneNode(output, cur, depth); |
| 1120 | } |
| 1121 | static void |
| 1122 | xmlXPathDebugDumpNodeList(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 | |
| 1144 | static void |
| 1145 | xmlXPathDebugDumpNodeSet(FILE *output, xmlNodeSetPtr cur, int depth) { |
no test coverage detected