Index: trunk/src/conf_core.c =================================================================== --- trunk/src/conf_core.c (revision 2533) +++ trunk/src/conf_core.c (revision 2534) @@ -47,11 +47,7 @@ conf_clamp_to(CFT_COORD, conf_core.design.via_drilling_hole, 0, MAX_COORD, DEFAULT_DRILLINGHOLE * conf_core.design.via_thickness / 100); conf_clamp(CFT_COORD, conf_core.design.max_width, MIN_SIZE, MAX_COORD); conf_clamp(CFT_COORD, conf_core.design.max_height, MIN_SIZE, MAX_COORD); -#if defined(HAVE_REGCOMP) || defined(HAVE_RE_COMP) conf_force_set_bool(conf_core.rc.have_regex, 1); -#else - conf_force_set_bool(conf_core.rc.have_regex, 0); -#endif conf_ro("rc/have_regex"); conf_force_set_str(conf_core.rc.path.prefix, PCB_PREFIX); conf_ro("rc/path/prefix"); Index: trunk/src/select.h =================================================================== --- trunk/src/select.h (revision 2533) +++ trunk/src/select.h (revision 2534) @@ -47,8 +47,6 @@ SM_LIST = 1 } search_method_t; -#if defined(HAVE_REGCOMP) || defined(HAVE_RE_COMP) bool SelectObjectByName(int, char *, bool, search_method_t); -#endif #endif Index: trunk/src/select_act.c =================================================================== --- trunk/src/select_act.c (revision 2533) +++ trunk/src/select_act.c (revision 2534) @@ -122,10 +122,9 @@ { char *function = ACTION_ARG(0); if (function) { - switch (funchash_get(function, NULL)) { -#if defined(HAVE_REGCOMP) || defined(HAVE_RE_COMP) - int type; - /* select objects by their names */ + int type; + + switch (funchash_get(function, NULL)) { /* select objects by their names */ case F_ElementByName: type = PCB_TYPE_ELEMENT; goto commonByName; @@ -161,7 +160,6 @@ } break; } -#endif /* defined(HAVE_REGCOMP) || defined(HAVE_RE_COMP) */ /* select a single object */ case F_ToggleObject: @@ -283,9 +281,8 @@ { char *function = ACTION_ARG(0); if (function) { + int type; switch (funchash_get(function, NULL)) { -#if defined(HAVE_REGCOMP) || defined(HAVE_RE_COMP) - int type; /* select objects by their names */ case F_ElementByName: type = PCB_TYPE_ELEMENT; @@ -322,7 +319,6 @@ } break; } -#endif /* defined(HAVE_REGCOMP) || defined(HAVE_RE_COMP) */ /* all objects in block */ case F_Block: