mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb (String#tr_cpp): substitute * with P like as
autconf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7b0b9df60e
commit
eb8ccbad0a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 4 07:46:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (String#tr_cpp): substitute * with P like as
|
||||
autconf.
|
||||
|
||||
Fri Dec 3 22:36:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_insnhelper.c (vm_call_method): protected methods should be
|
||||
|
|
|
@ -184,7 +184,7 @@ class String
|
|||
|
||||
# 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
|
||||
|
|
Loading…
Add table
Reference in a new issue