diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-29 11:29:49 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-29 11:29:49 +0000 |
| commit | bca74ae5ea5fb768c3644b31f21b6ad7bb06881d (patch) | |
| tree | 4aa3575d97952fd767e3eca67f185fee700d8e50 | |
| parent | 63d65bec1834119d9cf23ab38f47cfa9f65eb775 (diff) | |
* ext/socket/mkconstants.rb: use whitespaces as a separator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ext/socket/mkconstants.rb | 2 |
2 files changed, 5 insertions, 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> * ext/socket/mkconstants.rb: add documents for constants. diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index b772648cce..96370fa64e 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' |
