mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
enc/encinit.c.erb: use %-lines
* enc/encinit.c.erb: use %-lines to adjust indent in the generated file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58e7c45fc7
commit
7333fbf0f7
2 changed files with 10 additions and 9 deletions
|
@ -1,4 +1,6 @@
|
|||
Thu May 17 10:37:07 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu May 17 10:39:36 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* enc/encinit.c.erb: use %-lines to adjust indent in the generated file.
|
||||
|
||||
* lib/mkmf.rb (MakeMakefile#have_framework): combine -framework option
|
||||
and its argument with an equal sign not to be separated in merge_libs.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<%# -*- encoding: UTF-8 -*-%>
|
||||
/* Copyright 2012 Google Inc. Some Rights Reserved.
|
||||
* Author: yugui@google.com (Yugui Sonoda)
|
||||
*/
|
||||
|
@ -13,14 +12,14 @@ void ruby_init_ext(const char *name, void (*init)(void));
|
|||
|
||||
void Init_enc()
|
||||
{
|
||||
<% ENCS.each do |enc| -%>
|
||||
% ENCS.each do |enc|
|
||||
init(Init_<%= enc %>, "enc/<%= enc %>.so");
|
||||
<% end -%>
|
||||
% end
|
||||
|
||||
init(Init_transdb, "enc/trans/transdb.so");
|
||||
<% TRANS.each do |trans| -%>
|
||||
<% next if trans == 'trans/transdb' -%>
|
||||
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 -%>
|
||||
% end
|
||||
}
|
||||
<%# vim: set fenc=utf-8 ft=eruby sw=2 : -%>
|
||||
<%# vim: set ft=eruby sw=2 : -%>
|
||||
|
|
Loading…
Reference in a new issue