Index: trunk/doc-rnd/hacking/renames =================================================================== --- trunk/doc-rnd/hacking/renames (revision 5095) +++ trunk/doc-rnd/hacking/renames (revision 5096) @@ -1415,3 +1415,9 @@ ActionChkBuffer -> pcb_act_ChkBuffer chkbuffer_help -> pcb_acth_ChkBuffer chkbuffer_syntax -> pcb_acts_ChkBuffer +ActionFreeRotateBuffer -> pcb_act_FreeRotateBuffer +freerotatebuffer_help -> pcb_acth_FreeRotateBuffer +freerotatebuffer_syntax -> pcb_acts_FreeRotateBuffer +ActionPasteBuffer -> pcb_act_PasteBuffer +pastebuffer_help -> pcb_acth_PasteBuffer +pastebuffer_syntax -> pcb_acts_PasteBuffer Index: trunk/src/buffer.c =================================================================== --- trunk/src/buffer.c (revision 5095) +++ trunk/src/buffer.c (revision 5096) @@ -138,9 +138,9 @@ /*---------------------------------------------------------------------------*/ -static const char loadfootprint_syntax[] = "pcb_load_footprint(filename[,refdes,value])"; +static const char pcb_acts_LoadFootprint[] = "pcb_load_footprint(filename[,refdes,value])"; -static const char loadfootprint_help[] = "Loads a single footprint by name."; +static const char pcb_acth_LoadFootprint[] = "Loads a single footprint by name."; /* %start-doc actions LoadFootprint @@ -150,7 +150,7 @@ %end-doc */ -int pcb_load_footprint(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +int pcb_act_LoadFootprint(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) { const char *name = PCB_ACTION_ARG(0); const char *refdes = PCB_ACTION_ARG(1); @@ -158,7 +158,7 @@ pcb_element_t *e; if (!name) - PCB_AFAIL(loadfootprint); + PCB_ACT_FAIL(LoadFootprint); if (pcb_element_load_footprint_by_name(PCB_PASTEBUFFER, name)) return 1; @@ -349,9 +349,9 @@ /* -------------------------------------------------------------------------- */ -static const char freerotatebuffer_syntax[] = "pcb_buffer_free_rotate([Angle])"; +static const char pcb_acts_FreeRotateBuffer[] = "pcb_buffer_free_rotate([Angle])"; -static const char freerotatebuffer_help[] = +static const char pcb_acth_FreeRotateBuffer[] = "Rotates the current paste buffer contents by the specified angle. The\n" "angle is given in degrees. If no angle is given, the user is prompted\n" "for one.\n"; @@ -362,7 +362,7 @@ %end-doc */ -int ActionFreeRotateBuffer(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +int pcb_act_FreeRotateBuffer(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) { const char *angle_s; @@ -710,11 +710,11 @@ /* ---------------------------------------------------------------------- */ -static const char pastebuffer_syntax[] = +static const char pcb_acts_PasteBuffer[] = "PasteBuffer(AddSelected|Clear|1..PCB_MAX_BUFFER)\n" "PasteBuffer(Rotate, 1..3)\n" "PasteBuffer(Convert|Restore|Mirror)\n" "PasteBuffer(ToLayout, X, Y, units)\n" "PasteBuffer(Save, Filename, [format], [force])"; -static const char pastebuffer_help[] = "Various operations on the paste buffer."; +static const char pcb_acth_PasteBuffer[] = "Various operations on the paste buffer."; /* %start-doc actions PasteBuffer @@ -769,7 +769,7 @@ %end-doc */ -static int ActionPasteBuffer(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +static int pcb_act_PasteBuffer(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) { const char *function = argc ? argv[0] : ""; const char *sbufnum = argc > 1 ? argv[1] : ""; @@ -874,7 +874,7 @@ } else { pcb_notify_crosshair_change(pcb_true); - PCB_AFAIL(pastebuffer); + PCB_ACT_FAIL(PasteBuffer); } oldx = x; @@ -903,14 +903,14 @@ /* --------------------------------------------------------------------------- */ pcb_hid_action_t buffer_action_list[] = { - {"FreeRotateBuffer", 0, ActionFreeRotateBuffer, - freerotatebuffer_help, freerotatebuffer_syntax} + {"FreeRotateBuffer", 0, pcb_act_FreeRotateBuffer, + pcb_acth_FreeRotateBuffer, pcb_acts_FreeRotateBuffer} , - {"LoadFootprint", 0, pcb_load_footprint, - loadfootprint_help, loadfootprint_syntax} + {"LoadFootprint", 0, pcb_act_LoadFootprint, + pcb_acth_LoadFootprint, pcb_acts_LoadFootprint} , - {"PasteBuffer", 0, ActionPasteBuffer, - pastebuffer_help, pastebuffer_syntax} + {"PasteBuffer", 0, pcb_act_PasteBuffer, + pcb_acth_PasteBuffer, pcb_acts_PasteBuffer} }; PCB_REGISTER_ACTIONS(buffer_action_list, NULL) Index: trunk/src/buffer.h =================================================================== --- trunk/src/buffer.h (revision 5095) +++ trunk/src/buffer.h (revision 5096) @@ -56,7 +56,7 @@ void *pcb_copy_obj_to_buffer(pcb_data_t *, pcb_data_t *, int, void *, void *, void *); /* This action is called from ActionElementAddIf() */ -int pcb_load_footprint(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y); +int pcb_act_LoadFootprint(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y); /* pastes the contents of the buffer to the layout. Only visible objects are handled by the routine. */ Index: trunk/src/object_act.c =================================================================== --- trunk/src/object_act.c (revision 5095) +++ trunk/src/object_act.c (revision 5096) @@ -549,7 +549,7 @@ printf(" ... Footprint not on board, need to add it.\n"); #endif /* Not on board, need to add it. */ - if (pcb_load_footprint(argc, args, x, y)) { + if (pcb_act_LoadFootprint(argc, args, x, y)) { number_of_footprints_not_found++; return 1; } @@ -590,7 +590,7 @@ pcb_element_t *pe; /* Different footprint, we need to swap them out. */ - if (pcb_load_footprint(argc, args, x, y)) { + if (pcb_act_LoadFootprint(argc, args, x, y)) { number_of_footprints_not_found++; return 1; } Index: trunk/src/rats_patch.c =================================================================== --- trunk/src/rats_patch.c (revision 5095) +++ trunk/src/rats_patch.c (revision 5096) @@ -416,7 +416,7 @@ /* check if the footprint is available */ a[0] = fpname; a[1] = NULL; - if (pcb_load_footprint(1, a, x, y) != 0) { + if (pcb_act_LoadFootprint(1, a, x, y) != 0) { pcb_message(PCB_MSG_DEFAULT, "Can't load footprint %s\n", fpname); return 1; } @@ -430,7 +430,7 @@ a[1] = element->Name[1].TextString; a[2] = element->Name[2].TextString; a[3] = NULL; - pcb_load_footprint(3, a, element->MarkX, element->MarkY); + pcb_act_LoadFootprint(3, a, element->MarkX, element->MarkY); pcb_buffer_copy_to_layout(element->MarkX, element->MarkY); pcb_ratspatch_append_optimize(PCB, RATP_CHANGE_ATTRIB, a[1], "footprint", fpname); pcb_element_remove(element);