mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	ruby.h: OFFT2NUM redefinition
* include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro to convert int type to VALUE if found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									fa1e2d957e
								
							
						
					
					
						commit
						d2b4011a94
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Sun May 12 21:12:42 2013  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
 | 
			
		||||
	  to convert int type to VALUE if found.
 | 
			
		||||
 | 
			
		||||
Wed May  8 13:46:52 2013  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/intern.h (rb_iv_set, rb_iv_get): removed. Because
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -239,6 +239,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
 | 
			
		|||
#define ULL2NUM(v) rb_ull2inum(v)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef OFFT2NUM
 | 
			
		||||
#if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
 | 
			
		||||
# define OFFT2NUM(v) LL2NUM(v)
 | 
			
		||||
#elif SIZEOF_OFF_T == SIZEOF_LONG
 | 
			
		||||
| 
						 | 
				
			
			@ -246,6 +247,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
 | 
			
		|||
#else
 | 
			
		||||
# define OFFT2NUM(v) INT2NUM(v)
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
 | 
			
		||||
# define SIZET2NUM(v) ULL2NUM(v)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue