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:
nobu 2012-05-17 01:39:39 +00:00
parent 58e7c45fc7
commit 7333fbf0f7
2 changed files with 10 additions and 9 deletions

View File

@ -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 * lib/mkmf.rb (MakeMakefile#have_framework): combine -framework option
and its argument with an equal sign not to be separated in merge_libs. and its argument with an equal sign not to be separated in merge_libs.

View File

@ -1,4 +1,3 @@
<%# -*- encoding: UTF-8 -*-%>
/* Copyright 2012 Google Inc. Some Rights Reserved. /* Copyright 2012 Google Inc. Some Rights Reserved.
* Author: yugui@google.com (Yugui Sonoda) * Author: yugui@google.com (Yugui Sonoda)
*/ */
@ -13,14 +12,14 @@ void ruby_init_ext(const char *name, void (*init)(void));
void Init_enc() void Init_enc()
{ {
<% ENCS.each do |enc| -%> % ENCS.each do |enc|
init(Init_<%= enc %>, "enc/<%= enc %>.so"); init(Init_<%= enc %>, "enc/<%= enc %>.so");
<% end -%> % end
init(Init_transdb, "enc/trans/transdb.so"); init(Init_transdb, "enc/trans/transdb.so");
<% TRANS.each do |trans| -%> % TRANS.each do |trans|
<% next if trans == 'trans/transdb' -%> % next if trans == 'trans/transdb'
init(Init_trans_<%= File.basename trans %>, "enc/<%= trans %>.so"); 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 : -%>