mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
#singleton_methods and so on return Symbols. [ruby-talk:328775] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									7e162b150d
								
							
						
					
					
						commit
						15700ff0be
					
				
					 4 changed files with 19 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Mon Feb 23 10:19:41 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
 | 
			
		||||
	  #singleton_methods and so on return Symbols.  [ruby-talk:328775]
 | 
			
		||||
 | 
			
		||||
Mon Feb 23 10:15:35 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* README.EXT, README.EXT.ja: added macros for the Compatibilities.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1276,6 +1276,11 @@ have_func("rb_reg_new_str", "ruby.h").
 | 
			
		|||
 | 
			
		||||
Means that type rb_io_t is provided.
 | 
			
		||||
 | 
			
		||||
 USE_SYMBOL_AS_METHOD_NAME
 | 
			
		||||
 | 
			
		||||
Means that Symbols will be returned as method names, e.g.,
 | 
			
		||||
Module#methods, #singleton_methods and so on.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Appendix C. Functions Available in extconf.rb
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1376,6 +1376,12 @@ HAVE_RB_IO_T
 | 
			
		|||
 | 
			
		||||
  rb_io_t 型が提供されていることを意味する.
 | 
			
		||||
 | 
			
		||||
USE_SYMBOL_AS_METHOD_NAME
 | 
			
		||||
 | 
			
		||||
  メソッド名を返すメソッド,Module#methods, #singleton_methods
 | 
			
		||||
  などがSymbolを返すことを意味する.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Appendix C. extconf.rbで使える関数たち
 | 
			
		||||
 | 
			
		||||
extconf.rbの中では利用可能なコンパイル条件チェックの関数は以
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -286,6 +286,9 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
 | 
			
		|||
#define ID2SYM(x) (((VALUE)(x)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG)
 | 
			
		||||
#define SYM2ID(x) RSHIFT((unsigned long)x,RUBY_SPECIAL_SHIFT)
 | 
			
		||||
 | 
			
		||||
/* Module#methods, #singleton_methods and so on return Symbols */
 | 
			
		||||
#define USE_SYMBOL_AS_METHOD_NAME 1
 | 
			
		||||
 | 
			
		||||
/* special constants - i.e. non-zero and non-fixnum constants */
 | 
			
		||||
enum ruby_special_consts {
 | 
			
		||||
    RUBY_Qfalse = 0,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue