Index: trunk/src/libcschem/cnc_poly.c =================================================================== --- trunk/src/libcschem/cnc_poly.c (revision 9495) +++ trunk/src/libcschem/cnc_poly.c (revision 9496) @@ -223,12 +223,12 @@ return found; } -int poly_isc_with_box(csch_chdr_t *obj, csch_rtree_box_t *box) +static int poly_isc_with_box(csch_chdr_t *obj, csch_rtree_box_t *box) { return poly_isc_with_box_(obj, box, NULL); } -int poly_contour_objs_at(csch_cpoly_t *poly, csch_coord_t x, csch_coord_t y, csch_coord_t r, long out[2]) +int csch_poly_contour_objs_at(csch_cpoly_t *poly, csch_coord_t x, csch_coord_t y, csch_coord_t r, long out[2]) { csch_rtree_box_t box; long obj_idx[2]; Index: trunk/src/libcschem/cnc_poly.h =================================================================== --- trunk/src/libcschem/cnc_poly.h (revision 9495) +++ trunk/src/libcschem/cnc_poly.h (revision 9496) @@ -74,7 +74,7 @@ - 1: obj_idx[0] loaded (x;y is on the middle of a contour object) - 2: obj_idx[0] and obj_idx[1] loaded (x;y is near enough to a corner); the corner point is at obj_idx[0] end while obj_idx[1] start point */ -int poly_contour_objs_at(csch_cpoly_t *poly, csch_coord_t x, csch_coord_t y, csch_coord_t r, long obj_idx[2]); +int csch_poly_contour_objs_at(csch_cpoly_t *poly, csch_coord_t x, csch_coord_t y, csch_coord_t r, long obj_idx[2]); /* Returns whether x;y is an endpoint of poly's idxth contour object. If idx is invalid, returns 0. */ Index: trunk/src/plugins/std_tools/tool_arrow.c =================================================================== --- trunk/src/plugins/std_tools/tool_arrow.c (revision 9495) +++ trunk/src/plugins/std_tools/tool_arrow.c (revision 9496) @@ -91,7 +91,7 @@ csch_coord_t r = sch_rnd_slop/2+1; long obj_idx[2], len; - len = poly_contour_objs_at((csch_cpoly_t *)arrow.click_obj, arrow.press_x, arrow.press_y, r, obj_idx); + len = csch_poly_contour_objs_at((csch_cpoly_t *)arrow.click_obj, arrow.press_x, arrow.press_y, r, obj_idx); if ((len == 2) && (tool_polyedit_press_at(hl, arrow.press_chx, arrow.press_chy, (csch_cpoly_t *)arrow.click_obj, obj_idx, 1) == 0)) { /* only on corner */ rnd_tool_select_by_name(hl, "polyedit"); arrow.click = 0; Index: trunk/src/plugins/std_tools/tool_polyedit.c =================================================================== --- trunk/src/plugins/std_tools/tool_polyedit.c (revision 9495) +++ trunk/src/plugins/std_tools/tool_polyedit.c (revision 9496) @@ -234,7 +234,7 @@ if (obj == NULL) return; - len = poly_contour_objs_at((csch_cpoly_t *)obj, x, y, r, obj_idx); + len = csch_poly_contour_objs_at((csch_cpoly_t *)obj, x, y, r, obj_idx); if (len == 2) tool_polyedit_press_at(hl, sch_rnd_crosshair_x, sch_rnd_crosshair_y, (csch_cpoly_t *)obj, obj_idx, 0); } @@ -253,7 +253,7 @@ if ((dx == 0) && (dy == 0)) goto skip; /* do not pollute the undo list */ - len = poly_contour_objs_at(pedit.poly, x, y, r, obj_idx); + len = csch_poly_contour_objs_at(pedit.poly, x, y, r, obj_idx); if (len != 0) { if ((len > 1) || !csch_poly_contour_obj_ends_at(pedit.poly, obj_idx[0], pedit.press_x, pedit.press_y)) { rnd_message(RND_MSG_ERROR, "Polygon corner shall not overlap with the same polygon's edge or corner\n");