mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	 a177c2762e
			
		
	
	
		a177c2762e
		
	
	
	
	
		
			
			* load.c (rb_require_internal): tweak the return value, 1 and 0 correspond to true and false in Kernel#require, respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			231 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			231 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #define require(name) ruby_require_internal(name, (unsigned int)sizeof(name)-1)
 | |
| int ruby_require_internal(const char *, int);
 | |
| 
 | |
| void
 | |
| Init_enc(void)
 | |
| {
 | |
|     if (require("enc/encdb.so") == 1) {
 | |
| 	require("enc/trans/transdb.so");
 | |
|     }
 | |
| }
 |