diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-24 07:36:46 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-24 07:36:46 +0000 |
| commit | 8e3dcfe2554e446841bb3adf59665c5293d6f5a4 (patch) | |
| tree | 8658d67aa2e06436229c2228630854c6d488800f | |
| parent | 91ffbf7b21f37b242ddfe93b42d3e7678a0fb1b9 (diff) | |
| download | ruby-8e3dcfe2554e446841bb3adf59665c5293d6f5a4.tar.gz ruby-8e3dcfe2554e446841bb3adf59665c5293d6f5a4.tar.xz ruby-8e3dcfe2554e446841bb3adf59665c5293d6f5a4.zip | |
inspect,to_s dump core
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | re.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -248,13 +248,14 @@ rb_reg_desc(s, len, re) { VALUE str = rb_str_new2("/"); - rb_reg_check(re); rb_reg_expr_str(str, s, len); rb_str_cat2(str, "/"); if (re) { + rb_reg_check(re); if (RREGEXP(re)->ptr->options & RE_OPTION_MULTILINE) rb_str_cat2(str, "m"); - if (RREGEXP(re)->ptr->options & RE_OPTION_POSIXLINE) + /* /p is obsolete; to be removed */ + if ((RREGEXP(re)->ptr->options & RE_OPTION_POSIXLINE) == RE_OPTION_POSIXLINE) rb_str_cat2(str, "p"); if (RREGEXP(re)->ptr->options & RE_OPTION_IGNORECASE) rb_str_cat2(str, "i"); |
