summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-10 06:39:55 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-10 06:39:55 +0000
commit2cdd17b458eb2be8dce033217d6debb46b716090 (patch)
treebfac3a4941fbea021d1076245ade342ebadcb2c3
parent9aa75d08ceb497645940f06bf690f3bdb764031e (diff)
* tool/gen_dummy_probes.rb: remove comments in probes.d to fix the
compilation error introduced by r38755. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rwxr-xr-xtool/gen_dummy_probes.rb3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aed4d75..156db79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jan 10 15:35:55 2013 Shugo Maeda <shugo@ruby-lang.org>
+
+ * 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@cookpad.com>
* numeric.c (do_coerce): speed optimization by using rb_check_funcall
diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb
index e3d9232..91191f1 100755
--- a/tool/gen_dummy_probes.rb
+++ b/tool/gen_dummy_probes.rb
@@ -4,6 +4,9 @@
text = ARGF.read
text.gsub!(/^(?!#)(.*)/){$1.upcase}
+# remove comments
+text.gsub!(%r'/\*.*?\*/'m, '')
+
# remove the pragma declarations
text.gsub!(/^#pragma.*$/, '')