summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-10 14:07:13 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-10 14:07:13 +0000
commita4a3c85558a3ae4cec2b920490c07fd56ea4b1b2 (patch)
tree9cee5ac98af309bf083595083c02f46feb8820a6 /tool
parent22fe2621196c18c2afe134b51e1e367f9915275b (diff)
* tool/compile_prelude.rb: print "<internal:prelude>" instead of
"prelude.rb" on stack trace. [ruby-dev:36129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/compile_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb
index 70197aebf37..72cf961bd82 100644
--- a/tool/compile_prelude.rb
+++ b/tool/compile_prelude.rb
@@ -64,7 +64,7 @@ tmp = ERB.new(<<'EOS', nil, '%').result(binding)
#include "vm_core.h"
% preludes.zip(lines_list).each_with_index {|(prelude, (setup_lines, lines)), i|
-static const char prelude_name<%=i%>[] = <%=c_esc(File.basename(prelude))%>;
+static const char prelude_name<%=i%>[] = <%=c_esc("<internal:" + File.basename(prelude, ".rb") + ">")%>;
static const char prelude_code<%=i%>[] =
% (setup_lines+lines).each {|line|
<%=line%>