- fprintf(stderr, "open list: ");
- for(x = s->open; x; x = x->next) {
- fprintf(stderr, "(%d,%d)", HL_cantor_x(x->hex), HL_cantor_y(x->hex));
- }
- fprintf(stderr, "\n");
- fprintf(stderr, "closed list: ");
- for(x = s->closed; x; x = x->next) {
- fprintf(stderr, "(%d,%d)", HL_cantor_x(x->hex), HL_cantor_y(x->hex));
- }
- fprintf(stderr, "\n");
+ dump_list("open", s->open);
+ dump_list("closed", s->closed);