Index: trunk/doc/developer/renames =================================================================== --- trunk/doc/developer/renames (revision 9323) +++ trunk/doc/developer/renames (revision 9324) @@ -1532,3 +1532,42 @@ RemoveArcPoint_op -> pcb_arcop_remove_point Rotate90Arc -> pcb_arcop_rotate90 ChgFlagArc -> pcb_arcop_change_flag +AddLineToBuffer -> pcb_lineop_add_to_buffer +ChangeLineSize -> pcb_lineop_change_size +ChangeLineClearSize -> pcb_lineop_change_clear_size +ChangeLineName -> pcb_lineop_change_name +ChangeLineJoin -> pcb_lineop_change_join +SetLineJoin -> pcb_lineop_set_join +ClrLineJoin -> pcb_lineop_clear_join +InsertPointIntoLine -> pcb_lineop_insert_point +MoveLineToBuffer -> pcb_lineop_move_to_buffer +CopyLine -> pcb_lineop_copy +MoveLine -> pcb_lineop_move +MoveLinePoint -> pcb_lineop_move_point +MoveLinePointWithRoute -> pcb_lineop_move_point_with_route +MoveLineToLayerLowLevel -> pcb_lineop_move_to_layer_low +MoveLineToLayer -> pcb_lineop_move_to_layer +DestroyLine -> pcb_lineop_destroy +RemoveLinePoint -> pcb_lineop_remove_point +RemoveLine_op -> pcb_lineop_remove +Rotate90LinePoint -> pcb_lineop_rotate90_point +Rotate90Line -> pcb_lineop_rotate90 +ChgFlagLine -> pcb_lineop_change_flag +AddArcToBuffer -> pcb_arcop_add_to_buffer +MoveArcToBuffer -> pcb_arcop_move_to_buffer +ChangeArcSize -> pcb_arcop_change_size +ChangeArcClearSize -> pcb_arcop_change_clear_size +ChangeArcRadius -> pcb_arcop_change_radius +ChangeArcAngle -> pcb_arcop_change_angle +ChangeArcJoin -> pcb_arcop_change_join +SetArcJoin -> pcb_arcop_set_join +ClrArcJoin -> pcb_arcop_clear_join +CopyArc -> pcb_arcop_copy +MoveArc -> pcb_arcop_move +MoveArcToLayerLowLevel -> pcb_arcop_move_to_layer_low +MoveArcToLayer -> pcb_arcop_move_to_layer +DestroyArc -> pcb_arcop_destroy +RemoveArc_op -> pcb_arcop_remve +RemoveArcPoint_op -> pcb_arcop_remove_point +Rotate90Arc -> pcb_arcop_rotate90 +ChgFlagArc -> pcb_arcop_change_flag Index: trunk/src/buffer.c =================================================================== --- trunk/src/buffer.c (revision 9323) +++ trunk/src/buffer.c (revision 9324) @@ -53,7 +53,7 @@ * some local identifiers */ static pcb_opfunc_t AddBufferFunctions = { - AddLineToBuffer, + pcb_lineop_add_to_buffer, AddTextToBuffer, AddPolygonToBuffer, AddViaToBuffer, @@ -70,7 +70,7 @@ }; static pcb_opfunc_t MoveBufferFunctions = { - MoveLineToBuffer, + pcb_lineop_move_to_buffer, MoveTextToBuffer, MovePolygonToBuffer, MoveViaToBuffer, @@ -621,7 +621,7 @@ if (destlayer->meta.real.vis) { PCB_LINE_LOOP(sourcelayer); { - if (CopyLine(&ctx, destlayer, line)) + if (pcb_lineop_copy(&ctx, destlayer, line)) changed = 1; } PCB_END_LOOP; Index: trunk/src/change.c =================================================================== --- trunk/src/change.c (revision 9323) +++ trunk/src/change.c (revision 9324) @@ -45,7 +45,7 @@ * some local identifiers */ static pcb_opfunc_t ChangeSizeFunctions = { - ChangeLineSize, + pcb_lineop_change_size, ChangeTextSize, ChangePolyClear, ChangeViaSize, @@ -62,7 +62,7 @@ }; static pcb_opfunc_t Change1stSizeFunctions = { - ChangeLineSize, + pcb_lineop_change_size, ChangeTextSize, ChangePolyClear, ChangeViaSize, @@ -113,7 +113,7 @@ }; static pcb_opfunc_t ChangeClearSizeFunctions = { - ChangeLineClearSize, + pcb_lineop_change_clear_size, NULL, ChangePolygonClearSize, /* just to tell the user not to :-) */ ChangeViaClearSize, @@ -130,7 +130,7 @@ }; static pcb_opfunc_t ChangeNameFunctions = { - ChangeLineName, + pcb_lineop_change_name, ChangeTextName, NULL, ChangeViaName, @@ -198,7 +198,7 @@ }; static pcb_opfunc_t ChangeJoinFunctions = { - ChangeLineJoin, + pcb_lineop_change_join, ChangeTextJoin, NULL, NULL, @@ -270,7 +270,7 @@ }; static pcb_opfunc_t SetJoinFunctions = { - SetLineJoin, + pcb_lineop_set_join, SetTextJoin, NULL, NULL, @@ -321,7 +321,7 @@ }; static pcb_opfunc_t ClrJoinFunctions = { - ClrLineJoin, + pcb_lineop_clear_join, ClrTextJoin, NULL, NULL, Index: trunk/src/copy.c =================================================================== --- trunk/src/copy.c (revision 9323) +++ trunk/src/copy.c (revision 9324) @@ -43,7 +43,7 @@ * some local identifiers */ static pcb_opfunc_t CopyFunctions = { - CopyLine, + pcb_lineop_copy, CopyText, CopyPolygon, CopyVia, Index: trunk/src/flag.c =================================================================== --- trunk/src/flag.c (revision 9323) +++ trunk/src/flag.c (revision 9324) @@ -32,7 +32,7 @@ #include "obj_all_op.h" pcb_opfunc_t ChgFlagFunctions = { - ChgFlagLine, + pcb_lineop_change_flag, ChgFlagText, ChgFlagPolygon, NULL, Index: trunk/src/insert.c =================================================================== --- trunk/src/insert.c (revision 9323) +++ trunk/src/insert.c (revision 9324) @@ -45,7 +45,7 @@ * some local identifiers */ static pcb_opfunc_t InsertFunctions = { - InsertPointIntoLine, + pcb_lineop_insert_point, NULL, InsertPointIntoPolygon, NULL, Index: trunk/src/move.c =================================================================== --- trunk/src/move.c (revision 9323) +++ trunk/src/move.c (revision 9324) @@ -49,7 +49,7 @@ * some local identifiers */ pcb_opfunc_t MoveFunctions = { - MoveLine, + pcb_lineop_move, MoveText, MovePolygon, MoveVia, @@ -57,7 +57,7 @@ MoveElementName, NULL, NULL, - MoveLinePoint, + pcb_lineop_move_point, MovePolygonPoint, pcb_arcop_move, NULL, @@ -66,7 +66,7 @@ }; static pcb_opfunc_t MoveToLayerFunctions = { - MoveLineToLayer, + pcb_lineop_move_to_layer, MoveTextToLayer, MovePolygonToLayer, NULL, @@ -142,17 +142,17 @@ pcb_undo_add_obj_to_move(PCB_TYPE_LINE_POINT, Ptr1, line, &line->Point1, ctx1.move.dx, ctx1.move.dy); - MoveLinePoint(&ctx1, Ptr1, line, &line->Point1); + pcb_lineop_move_point(&ctx1, Ptr1, line, &line->Point1); /* Move point2 form line */ pcb_undo_add_obj_to_move(PCB_TYPE_LINE_POINT, Ptr1, line, &line->Point2, ctx2.move.dx, ctx2.move.dy); - ptr2 = MoveLinePoint(&ctx2, Ptr1, line, &line->Point2); + ptr2 = pcb_lineop_move_point(&ctx2, Ptr1, line, &line->Point2); } /* Otherwise make a normal move */ else if(Type == PCB_TYPE_LINE_POINT) { - ptr2 = MoveLinePointWithRoute(&ctx1, Ptr1, Ptr2, Ptr3); + ptr2 = pcb_lineop_move_point_with_route(&ctx1, Ptr1, Ptr2, Ptr3); } else { pcb_undo_add_obj_to_move(Type, Ptr1, Ptr2, Ptr3, DX, DY); Index: trunk/src/obj_line.c =================================================================== --- trunk/src/obj_line.c (revision 9323) +++ trunk/src/obj_line.c (revision 9324) @@ -289,7 +289,7 @@ /*** ops ***/ /* copies a line to buffer */ -void *AddLineToBuffer(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_add_to_buffer(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { pcb_line_t *line; pcb_layer_t *layer = &ctx->buffer.dst->Layer[pcb_layer_id(ctx->buffer.src, Layer)]; @@ -303,7 +303,7 @@ } /* moves a line to buffer */ -void *MoveLineToBuffer(pcb_opctx_t *ctx, pcb_layer_t * layer, pcb_line_t * line) +void *pcb_lineop_move_to_buffer(pcb_opctx_t *ctx, pcb_layer_t * layer, pcb_line_t * line) { pcb_layer_t *lay = &ctx->buffer.dst->Layer[pcb_layer_id(ctx->buffer.src, layer)]; @@ -326,7 +326,7 @@ } /* changes the size of a line */ -void *ChangeLineSize(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_change_size(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { pcb_coord_t value = (ctx->chgsize.absolute) ? ctx->chgsize.absolute : Line->Thickness + ctx->chgsize.delta; @@ -348,7 +348,7 @@ } /*changes the clearance size of a line */ -void *ChangeLineClearSize(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_change_clear_size(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { pcb_coord_t value = (ctx->chgsize.absolute) ? ctx->chgsize.absolute : Line->Clearance + ctx->chgsize.delta; @@ -377,7 +377,7 @@ } /* changes the name of a line */ -void *ChangeLineName(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_change_name(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { char *old = Line->Number; @@ -387,7 +387,7 @@ } /* changes the clearance flag of a line */ -void *ChangeLineJoin(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_change_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { if (PCB_FLAG_TEST(PCB_FLAG_LOCK, Line)) return (NULL); @@ -407,23 +407,23 @@ } /* sets the clearance flag of a line */ -void *SetLineJoin(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_set_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { if (PCB_FLAG_TEST(PCB_FLAG_LOCK, Line) || PCB_FLAG_TEST(PCB_FLAG_CLEARLINE, Line)) return (NULL); - return ChangeLineJoin(ctx, Layer, Line); + return pcb_lineop_change_join(ctx, Layer, Line); } /* clears the clearance flag of a line */ -void *ClrLineJoin(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_clear_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { if (PCB_FLAG_TEST(PCB_FLAG_LOCK, Line) || !PCB_FLAG_TEST(PCB_FLAG_CLEARLINE, Line)) return (NULL); - return ChangeLineJoin(ctx, Layer, Line); + return pcb_lineop_change_join(ctx, Layer, Line); } /* copies a line */ -void *CopyLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_copy(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { pcb_line_t *line; @@ -441,7 +441,7 @@ } /* moves a line */ -void *MoveLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_move(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { if (Layer->meta.real.vis) EraseLine(Line); @@ -458,7 +458,7 @@ } /* moves one end of a line */ -void *MoveLinePoint(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) +void *pcb_lineop_move_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) { if (Layer) { if (Layer->meta.real.vis) @@ -492,11 +492,11 @@ } /* moves one end of a line */ -void *MoveLinePointWithRoute(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) +void *pcb_lineop_move_point_with_route(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) { if ((conf_core.editor.move_linepoint_uses_route == 0) || !Layer) { pcb_undo_add_obj_to_move(PCB_TYPE_LINE_POINT, Layer, Line, Point, ctx->move.dx, ctx->move.dy); - return MoveLinePoint(ctx, Layer, Line, Point); + return pcb_lineop_move_point(ctx, Layer, Line, Point); } else { /* Move with Route Code */ @@ -528,7 +528,7 @@ } /* moves a line between layers; lowlevel routines */ -void *MoveLineToLayerLowLevel(pcb_opctx_t *ctx, pcb_layer_t * Source, pcb_line_t * line, pcb_layer_t * Destination) +void *pcb_lineop_move_to_layer_low(pcb_opctx_t *ctx, pcb_layer_t * Source, pcb_line_t * line, pcb_layer_t * Destination) { pcb_r_delete_entry(Source->line_tree, (pcb_box_t *) line); @@ -566,7 +566,7 @@ longjmp(i->env, 1); } -void *MoveLineToLayer(pcb_opctx_t *ctx, pcb_layer_t * Layer, pcb_line_t * Line) +void *pcb_lineop_move_to_layer(pcb_opctx_t *ctx, pcb_layer_t * Layer, pcb_line_t * Line) { struct via_info info; pcb_box_t sb; @@ -588,7 +588,7 @@ if (Layer->meta.real.vis) EraseLine(Line); pcb_poly_restore_to_poly(PCB->Data, PCB_TYPE_LINE, Layer, Line); - newone = (pcb_line_t *) MoveLineToLayerLowLevel(ctx, Layer, Line, ctx->move.dst_layer); + newone = (pcb_line_t *) pcb_lineop_move_to_layer_low(ctx, Layer, Line, ctx->move.dst_layer); Line = NULL; pcb_poly_clear_from_poly(PCB->Data, PCB_TYPE_LINE, ctx->move.dst_layer, newone); if (ctx->move.dst_layer->meta.real.vis) @@ -627,7 +627,7 @@ } /* destroys a line from a layer */ -void *DestroyLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_destroy(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { pcb_r_delete_entry(Layer->line_tree, (pcb_box_t *) Line); free(Line->Number); @@ -664,7 +664,7 @@ } /* removes a line point, or a line if the selected point is the end */ -void *RemoveLinePoint(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) +void *pcb_lineop_remove_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) { pcb_point_t other; struct rlp_info info; @@ -676,14 +676,14 @@ info.point = Point; if (setjmp(info.env) == 0) { pcb_r_search(Layer->line_tree, (const pcb_box_t *) Point, NULL, remove_point, &info, NULL); - return RemoveLine_op(ctx, Layer, Line); + return pcb_lineop_remove(ctx, Layer, Line); } pcb_move_obj(PCB_TYPE_LINE_POINT, Layer, info.line, info.point, other.X - Point->X, other.Y - Point->Y); - return (RemoveLine_op(ctx, Layer, Line)); + return (pcb_lineop_remove(ctx, Layer, Line)); } /* removes a line from a layer */ -void *RemoveLine_op(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_remove(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { /* erase from screen */ if (Layer->meta.real.vis) { @@ -704,7 +704,7 @@ ctx.remove.bulk = pcb_false; ctx.remove.destroy_target = NULL; - return RemoveLine_op(&ctx, Layer, Line); + return pcb_lineop_remove(&ctx, Layer, Line); } /* rotates a line in 90 degree steps */ @@ -788,7 +788,7 @@ } /* rotates a line's point */ -void *Rotate90LinePoint(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) +void *pcb_lineop_rotate90_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point) { pcb_point_t *center; @@ -806,7 +806,7 @@ } /* rotates a line */ -void *Rotate90Line(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_rotate90(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { rotate_line1(Layer, Line); pcb_point_rotate90(&Line->Point1, ctx->rotate.center_x, ctx->rotate.center_y, ctx->rotate.number); @@ -816,7 +816,7 @@ } /* inserts a point into a line */ -void *InsertPointIntoLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_insert_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { pcb_line_t *line; pcb_coord_t X, Y; @@ -850,7 +850,7 @@ } #define PCB_LINE_FLAGS (PCB_FLAG_FOUND | PCB_FLAG_RAT | PCB_FLAG_CLEARLINE | PCB_FLAG_SELECTED | PCB_FLAG_AUTO | PCB_FLAG_RUBBEREND | PCB_FLAG_LOCK | PCB_FLAG_VISIT) -void *ChgFlagLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) +void *pcb_lineop_change_flag(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line) { if ((ctx->chgflag.flag & PCB_LINE_FLAGS) != ctx->chgflag.flag) return NULL; Index: trunk/src/obj_line_op.h =================================================================== --- trunk/src/obj_line_op.h (revision 9323) +++ trunk/src/obj_line_op.h (revision 9324) @@ -28,27 +28,27 @@ #include "operation.h" -void *AddLineToBuffer(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *ChangeLineSize(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *ChangeLineClearSize(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *ChangeLineName(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *ChangeLineJoin(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *SetLineJoin(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *ClrLineJoin(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *InsertPointIntoLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *MoveLineToBuffer(pcb_opctx_t *ctx, pcb_layer_t * layer, pcb_line_t * line); -void *CopyLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *MoveLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *MoveLinePoint(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); -void *MoveLinePointWithRoute(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); -void *MoveLineToLayerLowLevel(pcb_opctx_t *ctx, pcb_layer_t * Source, pcb_line_t * line, pcb_layer_t * Destination); -void *MoveLineToLayer(pcb_opctx_t *ctx, pcb_layer_t * Layer, pcb_line_t * Line); -void *DestroyLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *RemoveLinePoint(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); -void *RemoveLine_op(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *Rotate90LinePoint(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); -void *Rotate90Line(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); -void *ChgFlagLine(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_add_to_buffer(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_change_size(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_change_clear_size(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_change_name(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_change_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_set_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_clear_join(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_insert_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_move_to_buffer(pcb_opctx_t *ctx, pcb_layer_t * layer, pcb_line_t * line); +void *pcb_lineop_copy(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_move(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_move_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); +void *pcb_lineop_move_point_with_route(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); +void *pcb_lineop_move_to_layer_low(pcb_opctx_t *ctx, pcb_layer_t * Source, pcb_line_t * line, pcb_layer_t * Destination); +void *pcb_lineop_move_to_layer(pcb_opctx_t *ctx, pcb_layer_t * Layer, pcb_line_t * Line); +void *pcb_lineop_destroy(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_remove_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); +void *pcb_lineop_remove(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_rotate90_point(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line, pcb_point_t *Point); +void *pcb_lineop_rotate90(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); +void *pcb_lineop_change_flag(pcb_opctx_t *ctx, pcb_layer_t *Layer, pcb_line_t *Line); Index: trunk/src/remove.c =================================================================== --- trunk/src/remove.c (revision 9323) +++ trunk/src/remove.c (revision 9324) @@ -40,7 +40,7 @@ * some local types */ static pcb_opfunc_t RemoveFunctions = { - RemoveLine_op, + pcb_lineop_remove, RemoveText_op, RemovePolygon_op, RemoveVia, @@ -48,7 +48,7 @@ NULL, NULL, NULL, - RemoveLinePoint, + pcb_lineop_remove_point, RemovePolygonPoint, pcb_arcop_remve, RemoveRat, @@ -57,7 +57,7 @@ }; static pcb_opfunc_t DestroyFunctions = { - DestroyLine, + pcb_lineop_destroy, DestroyText, DestroyPolygon, DestroyVia, Index: trunk/src/rotate.c =================================================================== --- trunk/src/rotate.c (revision 9323) +++ trunk/src/rotate.c (revision 9324) @@ -53,7 +53,7 @@ * some local identifiers */ pcb_opfunc_t Rotate90Functions = { - Rotate90Line, + pcb_lineop_rotate90, Rotate90Text, Rotate90Polygon, NULL, @@ -61,7 +61,7 @@ Rotate90ElementName, NULL, NULL, - Rotate90LinePoint, + pcb_lineop_rotate90_point, NULL, pcb_arcop_rotate90, NULL, Index: trunk/src_plugins/rubberband_orig/rubberband.c =================================================================== --- trunk/src_plugins/rubberband_orig/rubberband.c (revision 9323) +++ trunk/src_plugins/rubberband_orig/rubberband.c (revision 9324) @@ -752,7 +752,7 @@ pcb_undo_add_obj_to_move(PCB_TYPE_LINE_POINT, ptr[i].Layer, ptr[i].Line, ptr[i].MovedPoint, ptr[i].DX, ptr[i].DY); - MoveLinePoint(ctx[i], ptr[i].Layer, ptr[i].Line, ptr[i].MovedPoint); + pcb_lineop_move_point(ctx[i], ptr[i].Layer, ptr[i].Line, ptr[i].MovedPoint); } rbnd->RubberbandN = 0; } @@ -764,7 +764,7 @@ { /* first clear any marks that we made in the line flags */ PCB_FLAG_CLEAR(PCB_FLAG_RUBBEREND, ptr->Line); - MoveLinePointWithRoute(ctx[0], ptr->Layer, ptr->Line, ptr->MovedPoint); + pcb_lineop_move_point_with_route(ctx[0], ptr->Layer, ptr->Line, ptr->MovedPoint); } else { @@ -774,7 +774,7 @@ /* TODO: Move the entire line using the route calculator when * advanced features such as push-n-shove are implemented. */ - MoveLinePoint(ctx[0], ptr->Layer, ptr->Line, ptr->MovedPoint); + pcb_lineop_move_point(ctx[0], ptr->Layer, ptr->Line, ptr->MovedPoint); } rbnd->RubberbandN--;