[前][次][番号順一覧][スレッド一覧]

ruby-changes:25711

From: naruse <ko1@a...>
Date: Tue, 20 Nov 2012 22:48:18 +0900 (JST)
Subject: [ruby-changes:25711] naruse:r37768 (trunk): * Makefile.in (.d.h): replace char * to const char * because somehow

naruse	2012-11-20 22:48:04 +0900 (Tue, 20 Nov 2012)

  New Revision: 37768

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37768

  Log:
    * Makefile.in (.d.h): replace char * to const char * because somehow
      current dtrace removes const of function declaration in probes.d.

  Modified files:
    trunk/ChangeLog
    trunk/Makefile.in

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37767)
+++ ChangeLog	(revision 37768)
@@ -1,3 +1,8 @@
+Tue Nov 20 22:35:02 2012  NARUSE, Yui  <naruse@r...>
+
+	* Makefile.in (.d.h): replace char * to const char * because somehow
+	  current dtrace removes const of function declaration in probes.d.
+
 Tue Nov 20 21:41:04 2012  Koichi Sasada  <ko1@a...>
 
 	* include/ruby/debug.h: introduced.
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 37767)
+++ Makefile.in	(revision 37768)
@@ -335,7 +335,7 @@
 .d.h:
 	@$(ECHO) translating probes $<
 	$(Q) $(DTRACE) -o $@.tmp -h -s $<
-	$(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/PROBES_H/g' $@.tmp > $@
+	$(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/PROBES_H/g' -e 's/(char \*/(const char */g' -e 's/, char \*/, const char */g' $@.tmp > $@
 	$(Q) $(RM) $@.tmp
 
 probes.@OBJEXT@: $(srcdir)/probes.d

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]