ruby-changes:26706
From: shugo <ko1@a...>
Date: Thu, 10 Jan 2013 15:40:05 +0900 (JST)
Subject: [ruby-changes:26706] shugo:r38757 (trunk): * tool/gen_dummy_probes.rb: remove comments in probes.d to fix the
shugo 2013-01-10 15:39:55 +0900 (Thu, 10 Jan 2013) New Revision: 38757 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38757 Log: * tool/gen_dummy_probes.rb: remove comments in probes.d to fix the compilation error introduced by r38755. Modified files: trunk/ChangeLog trunk/tool/gen_dummy_probes.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38756) +++ ChangeLog (revision 38757) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jan 10 15:35:55 2013 Shugo Maeda <shugo@r...> + + * tool/gen_dummy_probes.rb: remove comments in probes.d to fix the + compilation error introduced by r38755. + Thu Jan 10 11:15:04 2013 Kenta Murata <mrkn@c...> * numeric.c (do_coerce): speed optimization by using rb_check_funcall Index: tool/gen_dummy_probes.rb =================================================================== --- tool/gen_dummy_probes.rb (revision 38756) +++ tool/gen_dummy_probes.rb (revision 38757) @@ -4,6 +4,9 @@ https://github.com/ruby/ruby/blob/trunk/tool/gen_dummy_probes.rb#L4 text = ARGF.read text.gsub!(/^(?!#)(.*)/){$1.upcase} +# remove comments +text.gsub!(%r'/\*.*?\*/'m, '') + # remove the pragma declarations text.gsub!(/^#pragma.*$/, '') -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/