ruby-changes:18051
From: nobu <ko1@a...>
Date: Sat, 4 Dec 2010 07:48:21 +0900 (JST)
Subject: [ruby-changes:18051] Ruby:r30072 (trunk): * lib/mkmf.rb (String#tr_cpp): substitute * with P like as
nobu 2010-12-04 07:46:53 +0900 (Sat, 04 Dec 2010) New Revision: 30072 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30072 Log: * lib/mkmf.rb (String#tr_cpp): substitute * with P like as autconf. Modified files: trunk/ChangeLog trunk/lib/mkmf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30071) +++ ChangeLog (revision 30072) @@ -1,3 +1,8 @@ +Sat Dec 4 07:46:48 2010 Nobuyoshi Nakada <nobu@r...> + + * lib/mkmf.rb (String#tr_cpp): substitute * with P like as + autconf. + Fri Dec 3 22:36:45 2010 Nobuyoshi Nakada <nobu@r...> * vm_insnhelper.c (vm_call_method): protected methods should be Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 30071) +++ lib/mkmf.rb (revision 30072) @@ -184,7 +184,7 @@ # Generates a string used as cpp macro name. def tr_cpp - strip.upcase.tr_s("^A-Z0-9_", "_") + strip.upcase.tr_s("^A-Z0-9_*", "_").tr_s("*", "P") end end class Array -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/