diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-25 06:49:35 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-25 06:49:35 +0000 |
commit | 131f694330d1d44add74643a264ff7c4d7f06216 (patch) | |
tree | fdaf9a9df3b7bb7054310eb4a751f261210df3c0 /tool | |
parent | c5581959992c3fd621b48f9fc506454993daf077 (diff) | |
download | ruby-131f694330d1d44add74643a264ff7c4d7f06216.tar.gz |
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/compile_prelude.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb index 1047e418b5..4f63b798c4 100755 --- a/tool/compile_prelude.rb +++ b/tool/compile_prelude.rb @@ -75,7 +75,7 @@ class Prelude end def emit(outfile) - init_name = outfile[/\w+(?=_prelude.c\b)/] || 'prelude' + @init_name = outfile[/\w+(?=_prelude.c\b)/] || 'prelude' erb = ERB.new(<<'EOS', nil, '%') /* -*-c-*- THIS FILE WAS AUTOGENERATED BY tool/compile_prelude.rb. DO NOT EDIT. @@ -152,7 +152,7 @@ prelude_require(VALUE self, VALUE nth) % end void -Init_<%=init_name%>(void) +Init_<%=@init_name%>(void) { % if @have_sublib or @need_ruby_prefix struct prelude_env memo; |