diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-15 07:20:07 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-15 07:20:07 +0000 |
commit | 0fd3fe001d5f0862200f6fb69b289b42518c0a6b (patch) | |
tree | 3472cfcb33fdfec2dff808add0a1775f34334960 /template | |
parent | 4bd1d6b2a1b4df3d2e9d2725dba379cc16893b8d (diff) | |
download | ruby-0fd3fe001d5f0862200f6fb69b289b42518c0a6b.tar.gz |
* lib/erb.rb: Render erb with array buffer for function call optimization.
[fix GH-1143]
* lib/rdoc/erb_partial.rb: ditto.
* template/verconf.h.tmpl: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/verconf.h.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template/verconf.h.tmpl b/template/verconf.h.tmpl index 9325aee0ff..9e09b776ea 100644 --- a/template/verconf.h.tmpl +++ b/template/verconf.h.tmpl @@ -52,7 +52,7 @@ % R["exec_prefix"] = '"RUBY_EXEC_PREFIX"' % R["prefix"] = '"RUBY_EXEC_PREFIX"' % exec_prefix_pat = /\A"#{Regexp.quote(rbconfig::CONFIG['exec_prefix'])}(?=\/|\z)/ -% _erbout.gsub!(/^(#define\s+(\S+)\s+)(.*)/) { +% _erbout = [_erbout.join.gsub!(/^(#define\s+(\S+)\s+)(.*)/) { % pre, name, repl = $1, $2, $3 % pat = %["#{name}"] % c = C.merge(R.reject {|key, value| key == name or value.include?(pat)}) @@ -60,4 +60,4 @@ % repl.gsub!(/^""(?!$)|(.)""$/, '\1') % repl.sub!(exec_prefix_pat, 'RUBY_EXEC_PREFIX"') % pre + repl -% } +% }] |