-/***
-* void make_segments_old(void)
-* {
-* printf("Analysing %u longlines\n", GARY_SIZE(longlines));
-* for (uns i=0; i<GARY_SIZE(longlines); i++)
-* {
-* if (! longlines[i].first->label) continue;
-* // printf("Survived! %s\n", osm_val_decode(longlines[i].first->text->text));
-* printf("New longline\n");
-*
-* if (longlines[i].first->label->type != SYMBOLIZER_TEXT)
-* {
-* printf("Heh?\n");
-* exit(42);
-* }
-* struct request_line *request = GARY_PUSH(requests_line);
-* request->request.ind = -1;
-* request->request.type = REQUEST_LINE;
-*
-* GARY_INIT(request->segments, 0);
-* request->num_segments = 0;
-*
-* // ->num_variants FIXME
-* // ->variants FIXME
-*
-* struct graph_edge *e = longlines[i].first;
-*
-* if (! e) printf("Oops\n");
-* num_requests++;
-* while (e)
-* {
-* if (! e->label) break;
-*
-* struct request_segment *r = GARY_PUSH(request->segments);
-* request->num_segments++;
-*
-* r->request.ind = num_requests++;
-* r->request.type = REQUEST_SEGMENT;
-*
-* struct osm_node *n = e->n1->o;
-* r->x1 = n->x;
-* r->y1 = n->y;
-* n = e->n2->o;
-* r->x2 = n->x;
-* r->y2 = n->y;
-*
-* printf("Segment [%.2f; %.2f] -- [%.2f; %.2f]\n", r->x1, r->y1, r->x2, r->y2);
-*
-* r->zindex = e->zindex;
-* r->variant = malloc(sizeof(struct point_variant)); // FIXME
-* switch (e->label->type)
-* {
-* case SYMBOLIZER_TEXT: ;
-* struct sym_text *st = malloc(sizeof(struct sym_text));
-* ((struct symbol *) st)->o = e->label->o;
-* ((struct symbol *) st)->type = SYMBOLIZER_TEXT;
-* st->x = r->x1;
-* st->y = r->y1;
-* st->text = ((struct sym_text *) e->label)->text;
-* st->text_color = ((struct sym_text *) e->label)->text_color;
-* st->font = ((struct sym_text *) e->label)->font;
-* st->opacity = ((struct sym_text *) e->label)->opacity;
-* st->halo_color = ((struct sym_text *) e->label)->halo_color;
-* st->halo_radius = ((struct sym_text *) e->label)->halo_radius;
-* st->halo_opacity = ((struct sym_text *) e->label)->halo_opacity;
-* st->tw = ((struct sym_text *) e->label)->tw;
-* st->th = ((struct sym_text *) e->label)->th;
-* st->td = ((struct sym_text *) e->label)->td;
-* r->label = (struct symbol *) st;
-* // FIXME: This shall be done in more elegant way
-* make_bitmap_label(r->variant, (struct sym_text *) e->label);
-* break;
-* default:
-* // FIXME
-* printf("Got here?\n");
-* ;
-* }
-*
-* e = e->next;
-* }
-* }
-* }
-***/
-
-/***
-* void dump_linelabel_requests(void)
-* {
-* for (uns i=0; i<GARY_SIZE(requests_line); i++)
-* {
-* print_label(requests_line[i].segments[0].label);
-* }
-* }
-***/
+void dump_linelabel_requests(void)
+{
+ for (uns i=0; i<GARY_SIZE(requests_line); i++)
+ {
+ if (requests_line[i].sections[0].num_segments == 0)
+ {
+ printf("HEY!\n");
+ continue;
+ }
+ printf("Request for linelabel, %d sections\n", GARY_SIZE(requests_line[i].sections));
+ print_label(requests_line[i].sections[0].segments[0].label);
+ for (uns j=0; j<GARY_SIZE(requests_line[i].sections); j++)
+ {
+ printf("%d section, %d segments\n", j, GARY_SIZE(requests_line[i].sections[j].segments));
+ for (uns k=0; k<GARY_SIZE(requests_line[i].sections[j].segments); k++)
+ {
+ struct request_segment *rs = &requests_line[i].sections[j].segments[k];
+ printf("[%.2f; %.2f] -- [%.2f; %.2f]\n", rs->x1, rs->y1, rs->x2, rs->y2);
+ }
+ }
+ printf("\n");
+ }
+}