Index: select.c =================================================================== --- select.c (revision 30911) +++ select.c (revision 30912) @@ -164,7 +164,7 @@ return changed; } -static void fix_box_dir(pcb_box_t *Box, int force_pos) +static void fix_box_dir(rnd_box_t *Box, int force_pos) { #define swap(a,b) \ do { \ @@ -216,7 +216,7 @@ * length of the list. Returns NULL on no match. */ TODO("cleanup: should be rewritten with generic ops and rtree") -static long int *ListBlock_(pcb_board_t *pcb, pcb_box_t *Box, rnd_bool Flag, int *len) +static long int *ListBlock_(pcb_board_t *pcb, rnd_box_t *Box, rnd_bool Flag, int *len) { int changed = 0; int used = 0, alloced = 0; @@ -393,7 +393,7 @@ #undef append -static int pcb_obj_near_box(pcb_any_obj_t *obj, pcb_box_t *box) +static int pcb_obj_near_box(pcb_any_obj_t *obj, rnd_box_t *box) { switch(obj->type) { case PCB_OBJ_RAT: @@ -410,12 +410,12 @@ typedef struct { pcb_board_t *pcb; - pcb_box_t box; + rnd_box_t box; rnd_bool flag; rnd_bool invert; } select_ctx_t; -static pcb_r_dir_t pcb_select_block_cb(const pcb_box_t *box, void *cl) +static pcb_r_dir_t pcb_select_block_cb(const rnd_box_t *box, void *cl) { select_ctx_t *ctx = cl; pcb_any_obj_t *obj = (pcb_any_obj_t *)box; @@ -445,7 +445,7 @@ * Flag determines if the block is to be selected or unselected * returns pcb_true if the state of any object has changed */ -rnd_bool pcb_select_block(pcb_board_t *pcb, pcb_box_t *Box, rnd_bool flag, rnd_bool vis_only, rnd_bool invert) +rnd_bool pcb_select_block(pcb_board_t *pcb, rnd_box_t *Box, rnd_bool flag, rnd_bool vis_only, rnd_bool invert) { select_ctx_t ctx; @@ -464,7 +464,7 @@ /* ---------------------------------------------------------------------- * List all visible objects within the passed box */ -long int *pcb_list_block(pcb_board_t *pcb, pcb_box_t *Box, int *len) +long int *pcb_list_block(pcb_board_t *pcb, rnd_box_t *Box, int *len) { return ListBlock_(pcb, Box, 1, len); }