summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/compile_prelude.rb4
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;