Actions
Bug #1486
closedDL::CParser#parse_struct_signature fails when argument is a String.
Bug #1486:
DL::CParser#parse_struct_signature fails when argument is a String.
Description
=begin
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*/)
=end
Files
Actions