static struct request_area *requests_area;
static struct graph_edge **bfs_queue;
-static struct longline *longlines; int num_longlines;
+static struct longline *longlines;
static struct buffer_line *buffer_line;
static struct buffer_linelabel *buffer_linelabel;
if (dbg_bfs >= VERBOSITY_INDIVIDUAL)
{
printf("BFS called for longline %u\n", longline);
- printf("%d longlines are believed to exist, %d exist\n", num_longlines, GARY_SIZE(longlines));
+ printf("%d longlines exist\n", GARY_SIZE(longlines));
}
for (uns i=0; i<GARY_SIZE(bfs_queue); i++)
if ((node->edges[i]->label) && (node->edges[i]->longline == (uns) -1))
{
GARY_PUSH(longlines);
- longlines[num_longlines].first = node->edges[i];
+ longlines[GARY_SIZE(longlines)-1].first = node->edges[i];
if (dbg_bfs >= VERBOSITY_INDIVIDUAL)
{
printf("Running new BFS\n");
- printf("Creating longline %u\n", num_longlines);
+ printf("Creating longline %u\n", GARY_SIZE(longlines)-1);
}
GARY_RESIZE(bfs_queue, 0);
struct graph_edge **e = GARY_PUSH(bfs_queue);
*e = node->edges[i];
- node->edges[i]->longline = num_longlines;
+ node->edges[i]->longline = GARY_SIZE(longlines)-1;
bfs(node->edges[i]->longline);
if (dbg_bfs >= VERBOSITY_INDIVIDUAL)
printf("Joined %d edges\n", dbg_num_hits); dbg_num_hits = 0;
printf("Planned %u edges\n", GARY_SIZE(bfs_queue));
}
- num_longlines++;
}
}
}