1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (block_pass): should not downgrade safe level.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-05-02 04:16:31 +00:00
parent 9e48aed6e1
commit aebd4a5b11
5 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,7 @@
Wed May 2 11:46:13 2001 K.Kosako <kosako@sofnec.co.jp>
* eval.c (block_pass): should not downgrade safe level.
Tue May 1 17:55:58 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (yylex): lex_state after RESCUE_MOD should be EXPR_BEG.
@ -24,7 +28,7 @@ Thu Apr 26 22:30:43 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
Thu Apr 26 10:36:09 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_thread_schedule): inifinite sleep should not cause
* eval.c (rb_thread_schedule): infinite sleep should not cause
dead lock.
Wed Apr 25 16:40:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
@ -33,7 +37,7 @@ Wed Apr 25 16:40:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
Wed Apr 25 15:36:15 2001 K.Kosako <kosako@sofnec.co.jp>
* eval.c (yield_under): need not to prohibit at safe leve 4.
* eval.c (yield_under): need not to prohibit at safe level 4.
Tue Apr 24 16:03:25 2001 Hiroshi Igarashi <iga@ruby-lang.org>

2
eval.c
View file

@ -6428,6 +6428,8 @@ block_pass(self, node)
state = EXEC_TAG();
if (state == 0) {
proc_set_safe_level(block);
if (safe > ruby_safe_level)
ruby_safe_level = safe;
result = rb_eval(self, node->nd_iter);
}
POP_TAG();

View file

@ -279,10 +279,10 @@ fdbm_shift(obj)
key = dbm_firstkey(dbm);
if (!key.dptr) return Qnil;
val = dbm_fetch(dbm, key);
dbm_delete(dbm, key);
keystr = rb_tainted_str_new(key.dptr, key.dsize);
valstr = rb_tainted_str_new(val.dptr, val.dsize);
dbm_delete(dbm, key);
return rb_assoc_new(keystr, valstr);
}

View file

@ -68,10 +68,12 @@ class PStore
end
def commit
in_transaction
@abort = false
throw :pstore_abort_transaction
end
def abort
in_transaction
@abort = true
throw :pstore_abort_transaction
end

View file

@ -1,4 +1,4 @@
#define RUBY_VERSION "1.6.4"
#define RUBY_RELEASE_DATE "2001-05-01"
#define RUBY_RELEASE_DATE "2001-05-02"
#define RUBY_VERSION_CODE 164
#define RUBY_RELEASE_CODE 20010501
#define RUBY_RELEASE_CODE 20010502