Index: trunk/src/select.c =================================================================== --- trunk/src/select.c (revision 4804) +++ trunk/src/select.c (revision 4805) @@ -831,7 +831,7 @@ return 0; } -pcb_bool SelectObjectByName(int Type, const char *name_pattern, pcb_bool Flag, search_method_t method) +pcb_bool SelectObjectByName(int Type, const char *name_pattern, pcb_bool Flag, pcb_search_method_t method) { pcb_bool changed = pcb_false; const char **pat = NULL; Index: trunk/src/select.h =================================================================== --- trunk/src/select.h (revision 4804) +++ trunk/src/select.h (revision 4805) @@ -49,9 +49,9 @@ typedef enum { SM_REGEX = 0, SM_LIST = 1 -} search_method_t; +} pcb_search_method_t; -pcb_bool SelectObjectByName(int, const char *, pcb_bool, search_method_t); +pcb_bool SelectObjectByName(int, const char *, pcb_bool, pcb_search_method_t); /* New API */ Index: trunk/src/select_act.c =================================================================== --- trunk/src/select_act.c (revision 4804) +++ trunk/src/select_act.c (revision 4805) @@ -45,7 +45,7 @@ /* --------------------------------------------------------------------------- */ /* Ask the user for a search pattern */ -static char *gui_get_pat(search_method_t * method) +static char *gui_get_pat(pcb_search_method_t * method) { const char *methods[] = { "regexp", "list of names", NULL }; pcb_hid_attribute_t attrs[2]; @@ -156,7 +156,7 @@ commonByName: { const char *pattern = ACTION_ARG(1); - search_method_t method = SM_REGEX; + pcb_search_method_t method = SM_REGEX; if (pattern || (pattern = gui_get_pat(&method)) != NULL) { if (SelectObjectByName(type, pattern, pcb_true, method)) @@ -315,7 +315,7 @@ commonByName: { const char *pattern = ACTION_ARG(1); - search_method_t method = SM_REGEX; + pcb_search_method_t method = SM_REGEX; if (pattern || (pattern = gui_get_pat(&method)) != NULL) { if (SelectObjectByName(type, pattern, pcb_false, method))