summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/regex.c b/regex.c
index 776c5914bb..96f16de7e2 100644
--- a/regex.c
+++ b/regex.c
@@ -1698,7 +1698,7 @@ re_compile_pattern(pattern, size, bufp)
PATFETCH_RAW(c);
switch (c) {
- case 'x': case 'p': case 'm': case 'i': case '-':
+ case 'x': case 'm': case 'i': case '-':
for (;;) {
switch (c) {
case '-':
@@ -1716,18 +1716,6 @@ re_compile_pattern(pattern, size, bufp)
options |= RE_OPTION_EXTENDED;
break;
- case 'p':
- if (negative) {
- if ((options&RE_OPTION_POSIXLINE) == RE_OPTION_POSIXLINE) {
- options &= ~RE_OPTION_POSIXLINE;
- }
- }
- else if ((options&RE_OPTION_POSIXLINE) != RE_OPTION_POSIXLINE) {
- options |= RE_OPTION_POSIXLINE;
- }
- push_option = 1;
- break;
-
case 'm':
if (negative) {
if (options&RE_OPTION_MULTILINE) {