diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-12 00:36:54 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-12 00:36:54 +0000 |
| commit | 95458ae6d610a7b98d7c5de73c352e4cce4c0871 (patch) | |
| tree | 767c941787dfe02766290b092d930237d7c386b6 /eval.c | |
| parent | 354c933ae940e1ae7a109c7322c2e903ab76494d (diff) | |
| download | ruby-95458ae6d610a7b98d7c5de73c352e4cce4c0871.tar.gz ruby-95458ae6d610a7b98d7c5de73c352e4cce4c0871.tar.xz ruby-95458ae6d610a7b98d7c5de73c352e4cce4c0871.zip | |
* ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
protect temporary context object. [ruby-dev:27979]
* ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should
be called before actual variable initialization.
[ruby-dev:27986]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7930,14 +7930,14 @@ rb_f_autoload_p(obj, sym) void Init_load() { - rb_load_path = rb_ary_new(); rb_define_readonly_variable("$:", &rb_load_path); rb_define_readonly_variable("$-I", &rb_load_path); rb_define_readonly_variable("$LOAD_PATH", &rb_load_path); + rb_load_path = rb_ary_new(); - rb_features = rb_ary_new(); rb_define_readonly_variable("$\"", &rb_features); rb_define_readonly_variable("$LOADED_FEATURES", &rb_features); + rb_features = rb_ary_new(); rb_define_global_function("load", rb_f_load, -1); rb_define_global_function("require", rb_f_require, 1); @@ -7947,8 +7947,8 @@ Init_load() rb_define_global_function("autoload?", rb_f_autoload_p, 1); rb_global_variable(&ruby_wrapper); - ruby_dln_librefs = rb_ary_new(); rb_global_variable(&ruby_dln_librefs); + ruby_dln_librefs = rb_ary_new(); } static void |
