summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 07:08:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 07:08:56 +0000
commit92ecbce72f93136625c41170d927c0896a7f01dc (patch)
tree720de2cc507ec208d7390899d757cf7d45d4ddbb /string.c
parent7d4600012bb36713c946d223c0916777f9ad2143 (diff)
downloadruby-92ecbce72f93136625c41170d927c0896a7f01dc.tar.gz
ruby-92ecbce72f93136625c41170d927c0896a7f01dc.tar.xz
ruby-92ecbce72f93136625c41170d927c0896a7f01dc.zip
* ruby.c (proc_options): -F set compiled regular expression to $;.
[ruby-talk:77381] * string.c (Init_String): no setter type check for $; git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 9d3da9206..ae157f474 100644
--- a/string.c
+++ b/string.c
@@ -3402,6 +3402,6 @@ Init_String()
id_to_s = rb_intern("to_s");
rb_fs = Qnil;
- rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter);
- rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter);
+ rb_define_variable("$;", &rb_fs);
+ rb_define_variable("$-F", &rb_fs);
}