Index: acompnet.c =================================================================== --- acompnet.c (revision 31800) +++ acompnet.c (revision 31801) @@ -47,7 +47,7 @@ rnd_coord_t r; } overlap_t; -static rnd_r_dir_t overlap(const rnd_rnd_box_t *box, void *closure) +static rnd_r_dir_t overlap(const rnd_box_t *box, void *closure) { pcb_any_obj_t *obj = (pcb_any_obj_t *)box; overlap_t *ovl = (overlap_t *)closure; @@ -75,7 +75,7 @@ TODO("move this to search.[ch]") /* Search for object(s) on a specific layer */ -static rnd_r_dir_t pcb_search_on_layer(pcb_layer_t *layer, const rnd_rnd_box_t *bbox, rnd_r_dir_t (*cb)(const rnd_rnd_box_t *box, void *closure), void *closure) +static rnd_r_dir_t pcb_search_on_layer(pcb_layer_t *layer, const rnd_box_t *bbox, rnd_r_dir_t (*cb)(const rnd_box_t *box, void *closure), void *closure) { rnd_r_dir_t res, fin = 0; @@ -105,7 +105,7 @@ static void acompnet_mesh_addpt(pcb_meshgraph_t *gr, pcb_layer_t *layer, double x, double y, int score, double sep) { overlap_t ovl; - rnd_rnd_box_t bbox; + rnd_box_t bbox; x = rnd_round(x); y = rnd_round(y); @@ -181,7 +181,7 @@ acompnet_mesh(&gr, PCB_CURRLAYER(PCB)); { /* temporary hack for testing: fixed, off-mesh start/end */ - rnd_rnd_box_t bbox; + rnd_box_t bbox; bbox.X1 = RND_MM_TO_COORD(6.35); bbox.X2 = bbox.X1+1; bbox.Y1 = RND_MM_TO_COORD(21.5); bbox.Y2 = bbox.Y1+1; is = pcb_msgr_add_node(&gr, &bbox, 0); Index: meshgraph.c =================================================================== --- meshgraph.c (revision 31800) +++ meshgraph.c (revision 31801) @@ -45,7 +45,7 @@ gr->next_id = 1; } -long int pcb_msgr_add_node(pcb_meshgraph_t *gr, rnd_rnd_box_t *bbox, int score) +long int pcb_msgr_add_node(pcb_meshgraph_t *gr, rnd_box_t *bbox, int score) { pcb_meshnode_t *nd = malloc(sizeof(pcb_meshnode_t)); nd->bbox = *bbox; @@ -103,7 +103,7 @@ htip_set(&open, startid, curr); for(;;) { rnd_rtree_box_t sb; - rnd_rnd_box_t *b; + rnd_box_t *b; rnd_rtree_it_t it; double tentative_g, best; Index: meshgraph.h =================================================================== --- meshgraph.h (revision 31800) +++ meshgraph.h (revision 31801) @@ -5,7 +5,7 @@ #include typedef struct { - rnd_rnd_box_t bbox; + rnd_box_t bbox; long int id; long int came_from; double gscore, fscore; @@ -20,7 +20,7 @@ } pcb_meshgraph_t; void pcb_msgr_init(pcb_meshgraph_t *gr); -long int pcb_msgr_add_node(pcb_meshgraph_t *gr, rnd_rnd_box_t *bbox, int score); +long int pcb_msgr_add_node(pcb_meshgraph_t *gr, rnd_box_t *bbox, int score); int pcb_msgr_astar(pcb_meshgraph_t *gr, long int startid, long int endid); #endif