| 1168 | } |
| 1169 | |
| 1170 | static void |
| 1171 | xmlXPathDebugDumpValueTree(FILE *output, xmlNodeSetPtr cur, int depth) { |
| 1172 | int i; |
| 1173 | char shift[100]; |
| 1174 | |
| 1175 | for (i = 0;((i < depth) && (i < 25));i++) |
| 1176 | shift[2 * i] = shift[2 * i + 1] = ' '; |
| 1177 | shift[2 * i] = shift[2 * i + 1] = 0; |
| 1178 | |
| 1179 | if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) { |
| 1180 | fprintf(output, "%s", shift); |
| 1181 | fprintf(output, "Value Tree is NULL !\n"); |
| 1182 | return; |
| 1183 | |
| 1184 | } |
| 1185 | |
| 1186 | fprintf(output, "%s", shift); |
| 1187 | fprintf(output, "%d", i + 1); |
| 1188 | xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1); |
| 1189 | } |
| 1190 | #if defined(LIBXML_XPTR_LOCS_ENABLED) |
| 1191 | static void |
| 1192 | xmlXPathDebugDumpLocationSet(FILE *output, xmlLocationSetPtr cur, int depth) { |
no test coverage detected