| 1189 | } |
| 1190 | #if defined(LIBXML_XPTR_LOCS_ENABLED) |
| 1191 | static void |
| 1192 | xmlXPathDebugDumpLocationSet(FILE *output, xmlLocationSetPtr cur, int depth) { |
| 1193 | int i; |
| 1194 | char shift[100]; |
| 1195 | |
| 1196 | for (i = 0;((i < depth) && (i < 25));i++) |
| 1197 | shift[2 * i] = shift[2 * i + 1] = ' '; |
| 1198 | shift[2 * i] = shift[2 * i + 1] = 0; |
| 1199 | |
| 1200 | if (cur == NULL) { |
| 1201 | fprintf(output, "%s", shift); |
| 1202 | fprintf(output, "LocationSet is NULL !\n"); |
| 1203 | return; |
| 1204 | |
| 1205 | } |
| 1206 | |
| 1207 | for (i = 0;i < cur->locNr;i++) { |
| 1208 | fprintf(output, "%s", shift); |
| 1209 | fprintf(output, "%d : ", i + 1); |
| 1210 | xmlXPathDebugDumpObject(output, cur->locTab[i], depth + 1); |
| 1211 | } |
| 1212 | } |
| 1213 | #endif /* LIBXML_XPTR_LOCS_ENABLED */ |
| 1214 | |
| 1215 | /** |
no test coverage detected