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
Updated by ermaker (Minwoo Lee) over 16 years ago
=begin
Patch Attached.
=end
Updated by nobu (Nobuyoshi Nakada) over 16 years ago
- Status changed from Open to Closed
=begin
=end
Updated by nobu (Nobuyoshi Nakada) over 16 years ago
=begin
Already applied in changeset r23550 and backported in r23757.
=end
Actions