mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Update to ruby/spec@e57f49c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a53ee2136f
								
							
						
					
					
						commit
						42921458ff
					
				
					 11 changed files with 127 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -31,6 +31,10 @@ static VALUE bignum_spec_rb_big2ulong(VALUE self, VALUE num) {
 | 
			
		|||
  return ULONG2NUM(rb_big2ulong(num));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static VALUE bignum_spec_RBIGNUM_SIGN(VALUE self, VALUE val) {
 | 
			
		||||
  return INT2FIX(RBIGNUM_SIGN(val));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static VALUE bignum_spec_rb_big_cmp(VALUE self, VALUE x, VALUE y) {
 | 
			
		||||
  return rb_big_cmp(x, y);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -90,6 +94,7 @@ void Init_bignum_spec(void) {
 | 
			
		|||
  rb_define_method(cls, "rb_big2long", bignum_spec_rb_big2long, 1);
 | 
			
		||||
  rb_define_method(cls, "rb_big2str", bignum_spec_rb_big2str, 2);
 | 
			
		||||
  rb_define_method(cls, "rb_big2ulong", bignum_spec_rb_big2ulong, 1);
 | 
			
		||||
  rb_define_method(cls, "RBIGNUM_SIGN", bignum_spec_RBIGNUM_SIGN, 1);
 | 
			
		||||
  rb_define_method(cls, "rb_big_cmp", bignum_spec_rb_big_cmp, 2);
 | 
			
		||||
  rb_define_method(cls, "rb_big_pack", bignum_spec_rb_big_pack, 1);
 | 
			
		||||
  rb_define_method(cls, "rb_big_pack_array", bignum_spec_rb_big_pack_array, 2);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue