summaryrefslogtreecommitdiff
path: root/ext/socket/mkconstants.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-29 11:29:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-29 11:29:49 +0000
commitb6ee29c9c0e86a083f3b11fde8d54ffec9f8d27f (patch)
tree0149c377dfcb5c42e871b3ed07a8a79593760234 /ext/socket/mkconstants.rb
parent8ef6a221443e432a94fb287157eda6f6b95d060b (diff)
* 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
Diffstat (limited to 'ext/socket/mkconstants.rb')
-rw-r--r--ext/socket/mkconstants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index b772648..96370fa 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -40,7 +40,7 @@ h = {}
COMMENTS = Hash.new { |h, name| h[name] = name }
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] != ?#
default_value = nil if default_value == 'nil'