Index: trunk/src_plugins/shand_cmd/command.c =================================================================== --- trunk/src_plugins/shand_cmd/command.c (revision 17410) +++ trunk/src_plugins/shand_cmd/command.c (revision 17411) @@ -78,8 +78,9 @@ %end-doc */ -static int pcb_act_Help(int argc, const char **argv) +static int pcb_act_Help(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; pcb_message(PCB_MSG_INFO, "following commands are supported:\n" " pcb_act_() execute an action command (too numerous to list)\n" " see the manual for the list of action commands\n" @@ -92,6 +93,7 @@ " rn [file] read in a net-list file\n" " s [file] save layout\n" " w [file] save layout\n" " wq [file] save layout and quit\n"); return 0; + PCB_OLD_ACT_END; } /* ---------------------------------------------------------------------- */ @@ -112,8 +114,9 @@ %end-doc */ -static int pcb_act_LoadLayout(int argc, const char **argv) +static int pcb_act_LoadLayout(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; const char *filename, *format = NULL; switch (argc) { @@ -131,6 +134,7 @@ if (!PCB->Changed || pcb_gui->confirm_dialog("OK to override layout data?", 0)) pcb_load_pcb(filename, format, pcb_true, 0); return 0; + PCB_OLD_ACT_END; } /* --------------------------------------------------------------------------- */ @@ -148,8 +152,9 @@ %end-doc */ -static int pcb_act_LoadElementToBuffer(int argc, const char **argv) +static int pcb_act_LoadElementToBuffer(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; const char *filename; switch (argc) { @@ -164,6 +169,7 @@ return 1; } return 0; + PCB_OLD_ACT_END; } /* --------------------------------------------------------------------------- */ @@ -182,8 +188,9 @@ %end-doc */ -static int pcb_act_LoadLayoutToBuffer(int argc, const char **argv) +static int pcb_act_LoadLayoutToBuffer(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; const char *filename, *format = NULL; switch (argc) { @@ -200,6 +207,7 @@ return 1; } return 0; + PCB_OLD_ACT_END; } /* --------------------------------------------------------------------------- */ @@ -217,11 +225,13 @@ %end-doc */ -static int pcb_act_Quit(int argc, const char **argv) +static int pcb_act_Quit(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; if (!PCB->Changed || pcb_gui->close_confirm_dialog() == HID_CLOSE_CONFIRM_OK) pcb_quit_app(); return 0; + PCB_OLD_ACT_END; } static const char pcb_acts_ReallyQuit[] = "q!"; @@ -237,10 +247,12 @@ %end-doc */ -static int pcb_act_ReallyQuit(int argc, const char **argv) +static int pcb_act_ReallyQuit(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; pcb_quit_app(); return 0; + PCB_OLD_ACT_END; } /* ---------------------------------------------------------------------- */ @@ -263,8 +275,9 @@ %end-doc */ -static int pcb_act_LoadNetlist(int argc, const char **argv) +static int pcb_act_LoadNetlist(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; const char *filename; switch (argc) { @@ -281,6 +294,7 @@ PCB->Netlistname = pcb_strdup_strip_wspace(filename); return 0; + PCB_OLD_ACT_END; } /* ---------------------------------------------------------------------- */ @@ -309,8 +323,9 @@ %end-doc */ -static int pcb_act_SaveLayout(int argc, const char **argv) +static int pcb_act_SaveLayout(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; switch (argc) { case 0: if (PCB->Filename) { @@ -336,6 +351,7 @@ return 1; } return 0; + PCB_OLD_ACT_END; } /* --------------------------------------------------------------------------- */ @@ -353,11 +369,13 @@ %end-doc */ -static int pcb_act_SaveLayoutAndQuit(int argc, const char **argv) +static int pcb_act_SaveLayoutAndQuit(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; if (!pcb_act_SaveLayout(argc, argv)) return pcb_act_Quit(0, 0); return 1; + PCB_OLD_ACT_END; } /* --------------------------------------------------------------------------- */ Index: trunk/src_plugins/shape/shape.c =================================================================== --- trunk/src_plugins/shape/shape.c (revision 17410) +++ trunk/src_plugins/shape/shape.c (revision 17411) @@ -315,8 +315,9 @@ static const char pcb_acts_regpoly[] = "regpoly([where,] corners, radius [,rotation])"; static const char pcb_acth_regpoly[] = "Generate regular polygon. Where is x;y and radius is either r or rx;ry. Rotation is in degrees."; -int pcb_act_regpoly(int argc, const char **argv) +int pcb_act_regpoly(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; double rot = 0; pcb_coord_t x, y, rx, ry = 0; pcb_bool succ, have_coords = pcb_false; @@ -367,13 +368,15 @@ pcb_message(PCB_MSG_ERROR, "regpoly(): failed to create the polygon\n"); return 0; + PCB_OLD_ACT_END; } static const char pcb_acts_roundrect[] = "roundrect([where,] width[;height] [,rx[;ry] [,rotation]])"; static const char pcb_acth_roundrect[] = "Generate a rectangle with round corners"; -int pcb_act_roundrect(int argc, const char **argv) +int pcb_act_roundrect(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; int a; pcb_data_t *data; pcb_bool succ, have_coords = pcb_false; @@ -429,12 +432,14 @@ pcb_message(PCB_MSG_ERROR, "roundrect(): failed to create the polygon\n"); return 0; + PCB_OLD_ACT_END; } static const char pcb_acts_circle[] = "circle([where,] diameter)"; static const char pcb_acth_circle[] = "Generate a filled circle (zero length round cap line)"; -int pcb_act_circle(int argc, const char **argv) +int pcb_act_circle(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; int a; pcb_data_t *data; pcb_bool succ, have_coords = pcb_false; @@ -471,6 +476,7 @@ pcb_message(PCB_MSG_ERROR, "circle(): failed to create the polygon\n"); return 0; + PCB_OLD_ACT_END; } #include "shape_dialog.c" Index: trunk/src_plugins/shape/shape_dialog.c =================================================================== --- trunk/src_plugins/shape/shape_dialog.c (revision 17410) +++ trunk/src_plugins/shape/shape_dialog.c (revision 17411) @@ -354,9 +354,11 @@ static const char pcb_acts_shape[] = "shape()"; static const char pcb_acth_shape[] = "Interactive shape generator."; -int pcb_act_shape(int argc, const char **argv) +int pcb_act_shape(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; pcb_shape_dialog(PCB, PCB_PASTEBUFFER->Data, pcb_shape_current_layer, pcb_false); return 0; + PCB_OLD_ACT_END; } Index: trunk/src_plugins/sketch_route/sketch_route.c =================================================================== --- trunk/src_plugins/sketch_route/sketch_route.c (revision 17410) +++ trunk/src_plugins/sketch_route/sketch_route.c (revision 17411) @@ -35,9 +35,11 @@ static const char pcb_acts_skroute[] = "skroute(TODO)"; static const char pcb_acth_skroute[] = "TODO"; -int pcb_act_skroute(int argc, const char **argv) +int pcb_act_skroute(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; return 0; + PCB_OLD_ACT_END; } pcb_hid_action_t sketch_route_action_list[] = { Index: trunk/src_plugins/smartdisperse/smartdisperse.c =================================================================== --- trunk/src_plugins/smartdisperse/smartdisperse.c (revision 17410) +++ trunk/src_plugins/smartdisperse/smartdisperse.c (revision 17411) @@ -117,8 +117,9 @@ #define set_visited(obj) htpi_set(&visited, ((void *)(obj)), 1) #define is_visited(obj) htpi_has(&visited, ((void *)(obj))) -static int pcb_act_smartdisperse(int argc, const char **argv) +static int pcb_act_smartdisperse(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; const char *function = ARG(0); pcb_netlist_t *Nets; htpi_t visited; @@ -233,6 +234,7 @@ pcb_board_set_changed_flag(1); return 0; + PCB_OLD_ACT_END; } static pcb_hid_action_t smartdisperse_action_list[] = { Index: trunk/src_plugins/stroke/stroke.c =================================================================== --- trunk/src_plugins/stroke/stroke.c (revision 17410) +++ trunk/src_plugins/stroke/stroke.c (revision 17411) @@ -99,8 +99,9 @@ static const char pcb_acts_stroke[] = "stroke(gesture, seq)"; static const char pcb_acth_stroke[] = "Various gesture recognition related functions"; -static int pcb_act_stroke(int argc, const char **argv) +static int pcb_act_stroke(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; if (argc < 1) PCB_ACT_FAIL(stroke); @@ -125,6 +126,7 @@ else PCB_ACT_FAIL(stroke); return 0; + PCB_OLD_ACT_END; } /*** administration ***/ Index: trunk/src_plugins/teardrops/teardrops.c =================================================================== --- trunk/src_plugins/teardrops/teardrops.c (revision 17410) +++ trunk/src_plugins/teardrops/teardrops.c (revision 17411) @@ -248,8 +248,9 @@ } } -static int pcb_act_teardrops(int argc, const char **argv) +static int pcb_act_teardrops(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; pcb_box_t *b; pcb_rtree_it_t it; new_arcs = 0; @@ -264,6 +265,7 @@ pcb_undo_inc_serial(); return 0; + PCB_OLD_ACT_END; } static pcb_hid_action_t teardrops_action_list[] = { Index: trunk/src_plugins/vendordrill/vendor.c =================================================================== --- trunk/src_plugins/vendordrill/vendor.c (revision 17410) +++ trunk/src_plugins/vendordrill/vendor.c (revision 17411) @@ -121,11 +121,13 @@ sizes for your vendor. %end-doc */ -int pcb_act_ApplyVendor(int argc, const char **argv) +int pcb_act_ApplyVendor(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; pcb_event(PCB_EVENT_BUSY, NULL); apply_vendor_map(); return 0; + PCB_OLD_ACT_END; } /* ************************************************************ */ @@ -142,12 +144,14 @@ %end-doc */ -int pcb_act_UnloadVendor(int argc, const char **argv) +int pcb_act_UnloadVendor(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; cached_drill = -1; vendor_free_all(); return 0; + PCB_OLD_ACT_END; } /* ************************************************************ */ @@ -170,8 +174,9 @@ %end-doc */ -int pcb_act_LoadVendorFrom(int argc, const char **argv) +int pcb_act_LoadVendorFrom(int oargc, const char **oargv) { + PCB_OLD_ACT_BEGIN; const char *fname = NULL; static char *default_file = NULL; const char *sval; @@ -314,6 +319,7 @@ free((char*)fname); lht_dom_uninit(doc); return 0; + PCB_OLD_ACT_END; } static int apply_vendor_pstk1(pcb_pstk_t *pstk, pcb_cardinal_t *tot)