1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* Makefile.in (.d.h): replace char * to const char * because somehow

current dtrace removes const of function declaration in probes.d.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-11-20 13:48:04 +00:00
parent 3ee0326bf9
commit 1196b798d6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Nov 20 22:35:02 2012 NARUSE, Yui <naruse@ruby-lang.org>
* 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@atdot.net>
* include/ruby/debug.h: introduced.

View file

@ -335,7 +335,7 @@ enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
.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