mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* ext/socket/mkconstants.rb (c_str): get rid of a 1.9 feature for
cross compile. [ruby-core:21243] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5a38751d02
commit
f914b5a7c2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jan 11 09:53:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/mkconstants.rb (c_str): get rid of a 1.9 feature for
|
||||||
|
cross compile. [ruby-core:21243]
|
||||||
|
|
||||||
Sun Jan 11 09:47:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jan 11 09:47:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* hash.c (rb_hash_s_create): set nil as the value if assoc length
|
* hash.c (rb_hash_s_create): set nil as the value if assoc length
|
||||||
|
|
|
@ -24,7 +24,7 @@ C_ESC = {
|
||||||
C_ESC_PAT = Regexp.union(*C_ESC.keys)
|
C_ESC_PAT = Regexp.union(*C_ESC.keys)
|
||||||
|
|
||||||
def c_str(str)
|
def c_str(str)
|
||||||
'"' + str.gsub(C_ESC_PAT, C_ESC) + '"'
|
'"' + str.gsub(C_ESC_PAT) {|s| C_ESC[s]} + '"'
|
||||||
end
|
end
|
||||||
|
|
||||||
opt.parse!
|
opt.parse!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue