Index: trunk/doc-rnd/hacking/renames =================================================================== --- trunk/doc-rnd/hacking/renames (revision 4870) +++ trunk/doc-rnd/hacking/renames (revision 4871) @@ -290,3 +290,7 @@ FreeConnectionLookupMemory -> pcb_conn_lookup_uninit FreeComponentLookupMemory -> pcb_component_lookup_uninit FreeLayoutLookupMemory -> pcb_layout_lookup_uninit +RatFindHook -> pcb_rat_find_hook +SaveFindFlag -> pcb_save_find_flag +RestoreFindFlag -> pcb_restore_find_flag +DRCAll -> pcb_drc_all Index: trunk/src/find.h =================================================================== --- trunk/src/find.h (revision 4870) +++ trunk/src/find.h (revision 4871) @@ -80,10 +80,10 @@ void pcb_conn_lookup_uninit(void); void pcb_component_lookup_uninit(void); void pcb_layout_lookup_uninit(void); -void RatFindHook(int, void *, void *, void *, pcb_bool, pcb_bool); -void SaveFindFlag(int); -void RestoreFindFlag(void); -int DRCAll(void); +void pcb_rat_find_hook(int, void *, void *, void *, pcb_bool, pcb_bool); +void pcb_save_find_flag(int); +void pcb_restore_find_flag(void); +int pcb_drc_all(void); pcb_bool IsLineInPolygon(pcb_line_t *, pcb_polygon_t *); pcb_bool IsArcInPolygon(pcb_arc_t *, pcb_polygon_t *); pcb_bool IsPadInPolygon(pcb_pad_t *, pcb_polygon_t *); Index: trunk/src/find_act.c =================================================================== --- trunk/src/find_act.c (revision 4870) +++ trunk/src/find_act.c (revision 4871) @@ -55,7 +55,7 @@ "min drill %$mS, min annular ring %$mS\n"), conf_core.editor.grid_unit->allow, PCB->Bloat, PCB->Shrink, PCB->minWid, PCB->minSlk, PCB->minDrill, PCB->minRing); } - count = DRCAll(); + count = pcb_drc_all(); if (gui->drc_gui == NULL || gui->drc_gui->log_drc_overview) { if (count == 0) pcb_message(PCB_MSG_DEFAULT, _("No DRC problems found.\n")); Index: trunk/src/find_drc.c =================================================================== --- trunk/src/find_drc.c (revision 4870) +++ trunk/src/find_drc.c (revision 4871) @@ -319,7 +319,7 @@ * Check for DRC violations * see if the connectivity changes when everything is bloated, or shrunk */ -int DRCAll(void) +int pcb_drc_all(void) { pcb_coord_t x, y; int object_count; Index: trunk/src/find_misc.c =================================================================== --- trunk/src/find_misc.c (revision 4870) +++ trunk/src/find_misc.c (revision 4871) @@ -280,7 +280,7 @@ * find connections for rats nesting * assumes pcb_conn_lookup_init() has already been done */ -void RatFindHook(int type, void *ptr1, void *ptr2, void *ptr3, pcb_bool undo, pcb_bool AndRats) +void pcb_rat_find_hook(int type, void *ptr1, void *ptr2, void *ptr3, pcb_bool undo, pcb_bool AndRats) { User = undo; DumpList(); @@ -449,7 +449,7 @@ /*---------------------------------------------------------------------------- * set up a temporary flag to use */ -void SaveFindFlag(int NewFlag) +void pcb_save_find_flag(int NewFlag) { OldFlag = TheFlag; TheFlag = NewFlag; @@ -458,7 +458,7 @@ /*---------------------------------------------------------------------------- * restore flag */ -void RestoreFindFlag(void) +void pcb_restore_find_flag(void) { TheFlag = OldFlag; } Index: trunk/src/rats.c =================================================================== --- trunk/src/rats.c (revision 4870) +++ trunk/src/rats.c (revision 4871) @@ -403,7 +403,7 @@ for (m = 0; Netl->NetN > 0 && m < Netl->NetN; m++) { a = &Netl->Net[m]; pcb_reset_conns(pcb_false); - RatFindHook(a->Connection[0].type, a->Connection[0].ptr1, a->Connection[0].ptr2, a->Connection[0].ptr2, pcb_false, AndRats); + pcb_rat_find_hook(a->Connection[0].type, a->Connection[0].ptr1, a->Connection[0].ptr2, a->Connection[0].ptr2, pcb_false, AndRats); /* now anybody connected to the first point has PCB_FLAG_DRC set */ /* so move those to this subnet */ CLEAR_FLAG(PCB_FLAG_DRC, (pcb_pin_t *) a->Connection[0].ptr2); @@ -665,7 +665,7 @@ changed = pcb_false; /* initialize finding engine */ pcb_conn_lookup_init(); - SaveFindFlag(PCB_FLAG_DRC); + pcb_save_find_flag(PCB_FLAG_DRC); Nets = (pcb_netlist_t *) calloc(1, sizeof(pcb_netlist_t)); /* now we build another netlist (Nets) for each * net in Wantlist that shows how it actually looks now, @@ -699,7 +699,7 @@ FreeNetListMemory(Nets); free(Nets); pcb_conn_lookup_uninit(); - RestoreFindFlag(); + pcb_restore_find_flag(); if (funcp) return (pcb_true); @@ -750,7 +750,7 @@ } /* initialize finding engine */ pcb_conn_lookup_init(); - SaveFindFlag(PCB_FLAG_DRC); + pcb_save_find_flag(PCB_FLAG_DRC); /* now we build another netlist (Nets) for each * net in Wantlist that shows how it actually looks now, * then fill in any missing connections with rat lines. @@ -781,7 +781,7 @@ } END_LOOP; pcb_conn_lookup_uninit(); - RestoreFindFlag(); + pcb_restore_find_flag(); return result; } Index: trunk/src/select.c =================================================================== --- trunk/src/select.c (revision 4870) +++ trunk/src/select.c (revision 4871) @@ -988,7 +988,7 @@ if (menu->Name && menu->Name[0] != '\0' && menu->Name[1] != '\0' && REGEXEC(menu->Name + 2)) { for (i = menu->EntryN, entry = menu->Entry; i; i--, entry++) if (SeekPad(entry, &conn, pcb_false)) - RatFindHook(conn.type, conn.ptr1, conn.ptr2, conn.ptr2, pcb_true, pcb_true); + pcb_rat_find_hook(conn.type, conn.ptr1, conn.ptr2, conn.ptr2, pcb_true, pcb_true); } } END_LOOP; Index: trunk/src_plugins/autoroute/autoroute.c =================================================================== --- trunk/src_plugins/autoroute/autoroute.c (revision 4870) +++ trunk/src_plugins/autoroute/autoroute.c (revision 4871) @@ -4561,7 +4561,7 @@ } if (ratlist_length(&PCB->Data->Rat) == 0) return (pcb_false); - SaveFindFlag(PCB_FLAG_DRC); + pcb_save_find_flag(PCB_FLAG_DRC); rd = CreateRouteData(); if (1) { @@ -4715,7 +4715,7 @@ pcb_redraw(); } - RestoreFindFlag(); + pcb_restore_find_flag(); #if defined (ROUTE_DEBUG) aabort = 0; #endif Index: trunk/src_plugins/hid_gtk/gui-netlist-window.c =================================================================== --- trunk/src_plugins/hid_gtk/gui-netlist-window.c (revision 4870) +++ trunk/src_plugins/hid_gtk/gui-netlist-window.c (revision 4871) @@ -505,7 +505,7 @@ for (i = selected_net->EntryN, entry = selected_net->Entry; i; i--, entry++) if (SeekPad(entry, &conn, pcb_false)) - RatFindHook(conn.type, conn.ptr1, conn.ptr2, conn.ptr2, pcb_true, pcb_true); + pcb_rat_find_hook(conn.type, conn.ptr1, conn.ptr2, conn.ptr2, pcb_true, pcb_true); SelectConnection(select_flag); pcb_reset_conns(pcb_false); Index: trunk/src_plugins/hid_lesstif/netlist.c =================================================================== --- trunk/src_plugins/hid_lesstif/netlist.c (revision 4870) +++ trunk/src_plugins/hid_lesstif/netlist.c (revision 4871) @@ -120,7 +120,7 @@ for (i = net->EntryN, entry = net->Entry; i; i--, entry++) if (SeekPad(entry, &conn, pcb_false)) - RatFindHook(conn.type, conn.ptr1, conn.ptr2, conn.ptr2, pcb_true, pcb_true); + pcb_rat_find_hook(conn.type, conn.ptr1, conn.ptr2, conn.ptr2, pcb_true, pcb_true); SelectConnection(select_flag); pcb_reset_conns(pcb_false); Index: trunk/src_plugins/mincut/rats_mincut.c =================================================================== --- trunk/src_plugins/mincut/rats_mincut.c (revision 4870) +++ trunk/src_plugins/mincut/rats_mincut.c (revision 4871) @@ -146,7 +146,7 @@ /* perform a search using PCB_FLAG_MINCUT, calling back proc_short_cb() with the connections */ old_cb = find_callback; find_callback = proc_short_cb; - SaveFindFlag(PCB_FLAG_MINCUT); + pcb_save_find_flag(PCB_FLAG_MINCUT); pcb_lookup_conn(x, y, pcb_false, 1, PCB_FLAG_MINCUT); debprintf("- alloced for %d\n", (short_conns_maxid + 1)); @@ -329,7 +329,7 @@ pcb_reset_found_lines_polys(pcb_false); pcb_reset_found_pins_vias_pads(pcb_false); - RestoreFindFlag(); + pcb_restore_find_flag(); find_callback = old_cb; return bad_gr;