-void make_segments(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;
- r->k = abs(r->x2 - r->x1) / (abs(r->y2 - r->y1) + 0.001); // FIXME: Hack to prevent floating point exception when y2 = y1
-
-printf("Segment [%.2f; %.2f] -- [%.2f; %.2f]\n", r->x1, r->y1, r->x2, r->y2);
-
- r->sym = e->line;
- 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 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;
+* }
+* }
+* }
+***/