| 238 | |
| 239 | |
| 240 | void |
| 241 | pqueue_dump(pqueue_t *q, |
| 242 | FILE *out, |
| 243 | pqueue_print_entry_f print) |
| 244 | { |
| 245 | int i; |
| 246 | |
| 247 | fprintf(stdout,"posn\tleft\tright\tparent\tmaxchild\t...\n"); |
| 248 | for (i = 1; i < (int) q->size ;i++) { |
| 249 | fprintf(stdout, |
| 250 | "%d\t%d\t%d\t%d\t%ul\t", |
| 251 | i, |
| 252 | left(i), right(i), parent(i), |
| 253 | (unsigned int)maxchild(q, i)); |
| 254 | print(out, q->d[i]); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | |
| 259 | void |
nothing calls this directly
no test coverage detected