maint: RE_ICASE, RE_NO_SUB: remove useless '#ifdef's

* sed/regexp.c (compile_regex_1): Remove #ifdef RE_ICASE guard,
since dfa.c uses it unconditionally.  Suggested by Norihiro Tanaka.
Also remove the nearby "#ifdef RE_NO_SUB".  Those macros are guaranteed
to be defined by virtue of configure-time tests that ensure we're using
either a new-enough native glibc (RE_NO_SUB was added in 2004), or the
included replacement.
This commit is contained in:
Jim Meyering committed 2016-12-20 12:25:10 +01:00
1 parent 6df8dd295f
commit 24393537a7
1 file changed
-4
-4
View File
@@ -92,15 +92,11 @@ compile_regex_1 (struct regex *new_regex, int needed_sub)
break;
}
#ifdef RE_ICASE
if (new_regex->flags & REG_ICASE)
syntax |= RE_ICASE;
else
#endif
new_regex->pattern.fastmap = malloc (1 << (sizeof (char) * 8));
#ifdef RE_NO_SUB
syntax |= needed_sub ? 0 : RE_NO_SUB;
#endif
/* If REG_NEWLINE is set, newlines are treated differently. */
if (new_regex->flags & REG_NEWLINE)