From: Minwoo Lee Date: 2009-05-18T22:42:37+09:00 Subject: [ruby-core:23494] [Bug #1486] DL::CParser#parse_struct_signature fails when argument is a String. Bug #1486: DL::CParser#parse_struct_signature fails when argument is a String. http://redmine.ruby-lang.org/issues/show/1486 Author: Minwoo Lee Status: Open, Priority: Normal ruby -v: ruby 1.9.1p0 the result of parse_struct_signature('int a, int b') and parse_struct_signature(['int a', 'int b']) should be same. But, the implementation is like this. if( signature.is_a?(String) ) signature = signature.split("\s*,\s*") end So the result of parse_struct_signature(['int a', 'int b']) is same to parse_struct_signature("int a\s*,\sint b") This code should be changed to signature = signature.split(/\s*,\s*/) ---------------------------------------- http://redmine.ruby-lang.org