diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-06 05:03:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-06 05:03:14 +0000 |
commit | 78b9d778de32da62958844907b556ec63140b4e7 (patch) | |
tree | 07117b31acf83609d465a85e8cf5facd964885b6 /tool | |
parent | 9df94321815bad7f997a2ccfaf81395fb9ec51be (diff) | |
download | ruby-78b9d778de32da62958844907b556ec63140b4e7.tar.gz |
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
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/gen_dummy_probes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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") |