mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* iseq.c (iseq_s_disasm): check for proc first. based on the
patch by Roger Pack in [ruby-core:27626]. [ruby-core:27227] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									34271a335e
								
							
						
					
					
						commit
						03a284b8bd
					
				
					 3 changed files with 11 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Thu Jan 21 08:45:03 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* iseq.c (iseq_s_disasm): check for proc first.  based on the
 | 
			
		||||
	  patch by Roger Pack in [ruby-core:27626].  [ruby-core:27227]
 | 
			
		||||
 | 
			
		||||
Wed Jan 20 16:09:59 2010  URABE Shyouhei  <shyouhei@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* common.mk (compile.$(OBJEXT)): dependencies lacking.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								iseq.c
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								iseq.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1012,10 +1012,7 @@ iseq_s_disasm(VALUE klass, VALUE body)
 | 
			
		|||
 | 
			
		||||
    rb_secure(1);
 | 
			
		||||
 | 
			
		||||
    if ((iseq = rb_method_get_iseq(body)) != 0) {
 | 
			
		||||
	ret = rb_iseq_disasm(iseq->self);
 | 
			
		||||
    }
 | 
			
		||||
    else if (rb_obj_is_proc(body)) {
 | 
			
		||||
    if (rb_obj_is_proc(body)) {
 | 
			
		||||
	rb_proc_t *proc;
 | 
			
		||||
	VALUE iseqval;
 | 
			
		||||
	GetProcPtr(body, proc);
 | 
			
		||||
| 
						 | 
				
			
			@ -1024,6 +1021,9 @@ iseq_s_disasm(VALUE klass, VALUE body)
 | 
			
		|||
	    ret = rb_iseq_disasm(iseqval);
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
    else if ((iseq = rb_method_get_iseq(body)) != 0) {
 | 
			
		||||
	ret = rb_iseq_disasm(iseq->self);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return ret;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
#define RUBY_VERSION "1.9.2"
 | 
			
		||||
#define RUBY_RELEASE_DATE "2010-01-20"
 | 
			
		||||
#define RUBY_RELEASE_DATE "2010-01-21"
 | 
			
		||||
#define RUBY_PATCHLEVEL -1
 | 
			
		||||
#define RUBY_BRANCH_NAME "trunk"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -8,7 +8,7 @@
 | 
			
		|||
#define RUBY_VERSION_TEENY 1
 | 
			
		||||
#define RUBY_RELEASE_YEAR 2010
 | 
			
		||||
#define RUBY_RELEASE_MONTH 1
 | 
			
		||||
#define RUBY_RELEASE_DAY 20
 | 
			
		||||
#define RUBY_RELEASE_DAY 21
 | 
			
		||||
 | 
			
		||||
#include "ruby/version.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue