From d44284afaf007083290a4b6b27eddcaf495c4a97 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 23 May 2009 09:53:15 +0000 Subject: * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature): splitting with regexp source string is obsolete. a patch from Minwoo Lee at [ruby-core:23494]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++++- ext/dl/lib/dl/cparser.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b07be16a..276815ebf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ -Sat May 23 18:48:52 2009 Nobuyoshi Nakada +Sat May 23 18:53:13 2009 Nobuyoshi Nakada + + * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature): + splitting with regexp source string is obsolete. a patch from + Minwoo Lee at [ruby-core:23494]. * ext/dl/cptr.c (rb_dlptr_cmp): return signed value, and restric to Fixnum. [ruby-dev:38533] diff --git a/ext/dl/lib/dl/cparser.rb b/ext/dl/lib/dl/cparser.rb index d763f07a1..2e78da5ad 100644 --- a/ext/dl/lib/dl/cparser.rb +++ b/ext/dl/lib/dl/cparser.rb @@ -2,7 +2,7 @@ module DL module CParser def parse_struct_signature(signature, tymap=nil) if( signature.is_a?(String) ) - signature = signature.split("\s*,\s*") + signature = signature.split(/\s*,\s*/) end mems = [] tys = [] -- cgit