mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_eval.c (ruby_eval_string_from_file_protect): initializer element is not computable at load time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d79f355fc
commit
99e63fba29
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Sep 4 11:28:57 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* vm_eval.c (ruby_eval_string_from_file_protect): initializer
|
||||
element is not computable at load time.
|
||||
|
||||
Tue Sep 4 07:48:35 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
|
||||
|
||||
* test/openssl/test_asn1_rb:
|
||||
|
|
|
@ -1174,7 +1174,9 @@ eval_string_from_file_helper(void *data) {
|
|||
|
||||
VALUE
|
||||
ruby_eval_string_from_file_protect(const char *str, const char *filename, int *state) {
|
||||
struct eval_string_from_file_arg arg = { str, filename };
|
||||
struct eval_string_from_file_arg arg;
|
||||
arg.str = str;
|
||||
arg.filename = filename;
|
||||
return rb_protect((VALUE (*)(VALUE))eval_string_from_file_helper, (VALUE)&arg, state);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue