From 78b9d778de32da62958844907b556ec63140b4e7 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 6 Jul 2016 05:03:14 +0000 Subject: probes.dmyh: remove preprocessor directives * tool/gen_dummy_probes.rb: remove include and conditional directives from probes.dmyh which are removed by preprocessing. * common.mk: remove unnecessary dependencies on vm_opts.h via probes.dmyh. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/gen_dummy_probes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/gen_dummy_probes.rb') diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb index 7d63cdfa3e..45222830f3 100755 --- a/tool/gen_dummy_probes.rb +++ b/tool/gen_dummy_probes.rb @@ -9,8 +9,8 @@ text = ARGF.read # remove comments text.gsub!(%r'(?:^ *)?/\*.*?\*/\n?'m, '') -# remove the pragma declarations -text.gsub!(/^#pragma.*\n/, '') +# remove the pragma declarations and ifdefs +text.gsub!(/^#(?:pragma|include|if|endif).*\n/, '') # replace the provider section with the start of the header file text.gsub!(/provider ruby \{/, "#ifndef\t_PROBES_H\n#define\t_PROBES_H\n#define DTRACE_PROBES_DISABLED 1\n") -- cgit v1.2.3