summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-22 07:29:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-22 07:29:50 +0000
commitb8f39362b29f3b2f4a34d3b4b24c05edc9612854 (patch)
treec912f7e56e53ea692fae294f5f87d997cb3b44fb /re.c
parente4e5edd5c30ea8b3b0f85e1469e0379e2b67e21e (diff)
/p is back for transit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/re.c b/re.c
index 1295ef2..ef1614d 100644
--- a/re.c
+++ b/re.c
@@ -791,33 +791,33 @@ rb_reg_initialize(obj, s, len, options)
default:
FL_SET(re, reg_kcode);
break;
- case 8:
+ case 16:
kcode_none(re);
break;
- case 16:
+ case 32:
kcode_euc(re);
break;
- case 24:
+ case 48:
kcode_sjis(re);
break;
- case 32:
+ case 64:
kcode_utf8(re);
break;
}
- if (options & ~0x7) {
+ if (options & ~0xf) {
kcode_set_option((VALUE)re);
}
if (ruby_ignorecase) {
options |= RE_OPTION_IGNORECASE;
FL_SET(re, REG_CASESTATE);
}
- re->ptr = make_regexp(s, len, options & 0x7);
+ re->ptr = make_regexp(s, len, options & 0xf);
re->str = ALLOC_N(char, len+1);
memcpy(re->str, s, len);
re->str[len] = '\0';
re->len = len;
- if (options & ~0x7) {
+ if (options & ~0xf) {
kcode_reset_option();
}
}