mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* enc/{emacs_mule,euc_jp}.c (code_to_mbc): suppress warnings.
* enc/iso_8859_{1,2}.c (apply_all_case_fold): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
			
			
This commit is contained in:
		
							parent
							
								
									d8d9bac5c8
								
							
						
					
					
						commit
						5528903d01
					
				
					 4 changed files with 10 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,8 @@
 | 
			
		|||
 | 
			
		||||
#include "regenc.h"
 | 
			
		||||
 | 
			
		||||
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
 | 
			
		||||
 | 
			
		||||
#define ENC_IS_ISO_8859_1_CTYPE(code,ctype) \
 | 
			
		||||
  ((EncISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -107,7 +109,7 @@ apply_all_case_fold(OnigCaseFoldType flag,
 | 
			
		|||
		    OnigEncoding enc ARG_UNUSED)
 | 
			
		||||
{
 | 
			
		||||
  return onigenc_apply_all_case_fold_with_map(
 | 
			
		||||
            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
 | 
			
		||||
            numberof(CaseFoldMap), CaseFoldMap, 1,
 | 
			
		||||
            flag, f, arg);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue