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:
parent
9e48aed6e1
commit
aebd4a5b11
5 changed files with 14 additions and 6 deletions
|
@ -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>
|
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.
|
* 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>
|
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.
|
dead lock.
|
||||||
|
|
||||||
Wed Apr 25 16:40:44 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
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>
|
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>
|
Tue Apr 24 16:03:25 2001 Hiroshi Igarashi <iga@ruby-lang.org>
|
||||||
|
|
||||||
|
|
2
eval.c
2
eval.c
|
@ -6428,6 +6428,8 @@ block_pass(self, node)
|
||||||
state = EXEC_TAG();
|
state = EXEC_TAG();
|
||||||
if (state == 0) {
|
if (state == 0) {
|
||||||
proc_set_safe_level(block);
|
proc_set_safe_level(block);
|
||||||
|
if (safe > ruby_safe_level)
|
||||||
|
ruby_safe_level = safe;
|
||||||
result = rb_eval(self, node->nd_iter);
|
result = rb_eval(self, node->nd_iter);
|
||||||
}
|
}
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
|
|
|
@ -279,10 +279,10 @@ fdbm_shift(obj)
|
||||||
key = dbm_firstkey(dbm);
|
key = dbm_firstkey(dbm);
|
||||||
if (!key.dptr) return Qnil;
|
if (!key.dptr) return Qnil;
|
||||||
val = dbm_fetch(dbm, key);
|
val = dbm_fetch(dbm, key);
|
||||||
dbm_delete(dbm, key);
|
|
||||||
|
|
||||||
keystr = rb_tainted_str_new(key.dptr, key.dsize);
|
keystr = rb_tainted_str_new(key.dptr, key.dsize);
|
||||||
valstr = rb_tainted_str_new(val.dptr, val.dsize);
|
valstr = rb_tainted_str_new(val.dptr, val.dsize);
|
||||||
|
dbm_delete(dbm, key);
|
||||||
|
|
||||||
return rb_assoc_new(keystr, valstr);
|
return rb_assoc_new(keystr, valstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,10 +68,12 @@ class PStore
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit
|
def commit
|
||||||
|
in_transaction
|
||||||
@abort = false
|
@abort = false
|
||||||
throw :pstore_abort_transaction
|
throw :pstore_abort_transaction
|
||||||
end
|
end
|
||||||
def abort
|
def abort
|
||||||
|
in_transaction
|
||||||
@abort = true
|
@abort = true
|
||||||
throw :pstore_abort_transaction
|
throw :pstore_abort_transaction
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.6.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_VERSION_CODE 164
|
||||||
#define RUBY_RELEASE_CODE 20010501
|
#define RUBY_RELEASE_CODE 20010502
|
||||||
|
|
Loading…
Add table
Reference in a new issue