mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (iseq_s_disasm): accept proc objects. [ruby-core:18762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d79d61202
commit
0f408e10ba
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Oct 8 01:23:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* iseq.c (iseq_s_disasm): accept proc objects. [ruby-core:18762]
|
||||
|
||||
Wed Oct 7 16:42:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* marshal.c (mark_dump_arg, mark_load_arg): ignore already cleaned
|
||||
|
|
9
iseq.c
9
iseq.c
|
@ -1011,6 +1011,15 @@ iseq_s_disasm(VALUE klass, VALUE body)
|
|||
if ((iseq = rb_method_get_iseq(body)) != 0) {
|
||||
ret = rb_iseq_disasm(iseq->self);
|
||||
}
|
||||
else {
|
||||
rb_proc_t *proc;
|
||||
VALUE iseqval;
|
||||
GetProcPtr(body, proc);
|
||||
iseqval = proc->block.iseq->self;
|
||||
if (RUBY_VM_NORMAL_ISEQ_P(iseqval)) {
|
||||
ret = rb_iseq_disasm(iseqval);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.2"
|
||||
#define RUBY_RELEASE_DATE "2009-10-07"
|
||||
#define RUBY_RELEASE_DATE "2009-10-08"
|
||||
#define RUBY_PATCHLEVEL -1
|
||||
#define RUBY_BRANCH_NAME "trunk"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
|||
#define RUBY_VERSION_TEENY 1
|
||||
#define RUBY_RELEASE_YEAR 2009
|
||||
#define RUBY_RELEASE_MONTH 10
|
||||
#define RUBY_RELEASE_DAY 7
|
||||
#define RUBY_RELEASE_DAY 8
|
||||
|
||||
#include "ruby/version.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue