diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-01 15:25:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-01 15:25:31 +0000 |
commit | 17b19ca0f8c61c2e955a3a040965dcbab70a03b3 (patch) | |
tree | 5ab1a4f4e2641e21b117a6edd4fb2da57d5e5e28 /tool/gen_dummy_probes.rb | |
parent | 66fd9d44d87240164588b42c887b6e3d6ee99308 (diff) | |
download | ruby-17b19ca0f8c61c2e955a3a040965dcbab70a03b3.tar.gz |
* 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
Diffstat (limited to 'tool/gen_dummy_probes.rb')
-rwxr-xr-x | tool/gen_dummy_probes.rb | 1 |
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 |