summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-19 04:14:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-19 04:14:07 +0000
commit8c3157e43fb507dfefe71949d619115644aa0927 (patch)
treea9d0b59104963f586cb03c496958166930480ec8 /regex.c
parent75ebf3910794079ca1ade31ac4a79e58f0827e03 (diff)
* eval.c (rb_thread_cleanup): current thread may be THREAD_STOPPED,
for example when terminated from signal handler. * regex.c (re_compile_pattern): remove /p support. * regex.h: ditto. * parse.y (parse_regx): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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) {