mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* load.c (Init_load): $: must be readonly. [ruby-dev:38690]
* ruby.c (ruby_prog_init): $-W must be readonly. [ruby-dev:38691] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a02b33742c
commit
5d30ddec17
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Jun 21 22:33:05 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* load.c (Init_load): $: must be readonly. [ruby-dev:38690]
|
||||
|
||||
* ruby.c (ruby_prog_init): $-W must be readonly. [ruby-dev:38691]
|
||||
|
||||
Sun Jun 21 10:47:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (FileUtils::Entry_#copy_file): open with
|
||||
|
|
2
load.c
2
load.c
|
@ -716,7 +716,7 @@ Init_load()
|
|||
static const char var_load_path[] = "$:";
|
||||
ID id_load_path = rb_intern2(var_load_path, sizeof(var_load_path)-1);
|
||||
|
||||
rb_define_hooked_variable(var_load_path, (VALUE*)vm, load_path_getter, 0);
|
||||
rb_define_hooked_variable(var_load_path, (VALUE*)vm, load_path_getter, rb_gvar_readonly_setter);
|
||||
rb_alias_variable(rb_intern("$-I"), id_load_path);
|
||||
rb_alias_variable(rb_intern("$LOAD_PATH"), id_load_path);
|
||||
vm->load_path = rb_ary_new();
|
||||
|
|
2
ruby.c
2
ruby.c
|
@ -1803,7 +1803,7 @@ ruby_prog_init(void)
|
|||
rb_define_hooked_variable("$VERBOSE", &ruby_verbose, 0, verbose_setter);
|
||||
rb_define_hooked_variable("$-v", &ruby_verbose, 0, verbose_setter);
|
||||
rb_define_hooked_variable("$-w", &ruby_verbose, 0, verbose_setter);
|
||||
rb_define_hooked_variable("$-W", &ruby_verbose, opt_W_getter, 0);
|
||||
rb_define_hooked_variable("$-W", &ruby_verbose, opt_W_getter, rb_gvar_readonly_setter);
|
||||
rb_define_variable("$DEBUG", &ruby_debug);
|
||||
rb_define_variable("$-d", &ruby_debug);
|
||||
|
||||
|
|
Loading…
Reference in a new issue