mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* enc/encinit.c.erb (Init_enc): no K&R style anymore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			593 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			593 B
		
	
	
	
		
			Text
		
	
	
	
	
	
/* Copyright 2012 Google Inc. Some Rights Reserved.
 | 
						|
 * Author: yugui@google.com (Yugui Sonoda)
 | 
						|
 */
 | 
						|
#include <stdio.h>
 | 
						|
 | 
						|
#define init(func, name) {	\
 | 
						|
    extern void func(void);	\
 | 
						|
    ruby_init_ext(name, func);	\
 | 
						|
}
 | 
						|
 | 
						|
void ruby_init_ext(const char *name, void (*init)(void));
 | 
						|
 | 
						|
void
 | 
						|
Init_enc(void)
 | 
						|
{
 | 
						|
% ENCS.each do |enc|
 | 
						|
    init(Init_<%= enc %>, "enc/<%= enc %>.so");
 | 
						|
% end
 | 
						|
 | 
						|
    init(Init_transdb, "enc/trans/transdb.so");
 | 
						|
% TRANS.each do |trans|
 | 
						|
%   next if trans == 'trans/transdb'
 | 
						|
    init(Init_trans_<%= File.basename trans %>, "enc/<%= trans %>.so");
 | 
						|
% end
 | 
						|
}
 | 
						|
<%# vim: set ft=eruby sw=2 : -%>
 |