mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/mkconstants.rb: use whitespaces as a separator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ef6a22144
commit
b6ee29c9c0
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jul 29 20:28:56 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/socket/mkconstants.rb: use whitespaces as a separator.
|
||||||
|
|
||||||
Fri Jul 29 18:59:07 2011 Tanaka Akira <akr@fsij.org>
|
Fri Jul 29 18:59:07 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/socket/mkconstants.rb: add documents for constants.
|
* ext/socket/mkconstants.rb: add documents for constants.
|
||||||
|
|
|
@ -40,7 +40,7 @@ h = {}
|
||||||
COMMENTS = Hash.new { |h, name| h[name] = name }
|
COMMENTS = Hash.new { |h, name| h[name] = name }
|
||||||
|
|
||||||
DATA.each_line {|s|
|
DATA.each_line {|s|
|
||||||
name, default_value, comment = s.chomp.split "\t"
|
name, default_value, comment = s.chomp.split(/\s+/, 3)
|
||||||
next unless name && name[0] != ?#
|
next unless name && name[0] != ?#
|
||||||
|
|
||||||
default_value = nil if default_value == 'nil'
|
default_value = nil if default_value == 'nil'
|
||||||
|
|
Loading…
Reference in a new issue