summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 15:25:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-01 15:25:31 +0000
commit17b19ca0f8c61c2e955a3a040965dcbab70a03b3 (patch)
tree5ab1a4f4e2641e21b117a6edd4fb2da57d5e5e28
parent66fd9d44d87240164588b42c887b6e3d6ee99308 (diff)
* tool/gen_dummy_probes.rb: add mode name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xtool/gen_dummy_probes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb
index 46af8cbb5c..e3d9232e52 100755
--- a/tool/gen_dummy_probes.rb
+++ b/tool/gen_dummy_probes.rb
@@ -22,5 +22,6 @@ text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3)')
text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3, arg4)')
text.gsub!(/ *PROBE ([^\(]*)(\([^\)]*\));/, "#define RUBY_DTRACE_\\1_ENABLED() 0\n#define RUBY_DTRACE_\\1\\2\ do \{ \} while\(0\)")
+puts "/* -*- c -*- */"
print text