ruby-changes:16299
From: yugui <ko1@a...>
Date: Fri, 11 Jun 2010 13:20:50 +0900 (JST)
Subject: [ruby-changes:16299] Ruby:r28271 (ruby_1_9_2): merges r28129 from trunk into ruby_1_9_2.
yugui 2010-06-11 13:20:35 +0900 (Fri, 11 Jun 2010) New Revision: 28271 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28271 Log: merges r28129 from trunk into ruby_1_9_2. -- * ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility by supporting "uint" types in the c parser. [ruby-core:29750] * test/dl/test_cparser.rb: adding a test for "uint" changes. Added files: branches/ruby_1_9_2/test/dl/test_cparser.rb Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/ext/dl/lib/dl/cparser.rb Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 28270) +++ ruby_1_9_2/ChangeLog (revision 28271) @@ -1,3 +1,9 @@ +Thu Jun 3 00:58:45 2010 Aaron Patterson <aaron@t...> + + * ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility + by supporting "uint" types in the c parser. [ruby-core:29750] + * test/dl/test_cparser.rb: adding a test for "uint" changes. + Wed Jun 2 11:40:02 2010 Yukihiro Matsumoto <matz@r...> * compile.c (iseq_compile_each): should consider block on stack, Index: ruby_1_9_2/ext/dl/lib/dl/cparser.rb =================================================================== --- ruby_1_9_2/ext/dl/lib/dl/cparser.rb (revision 28270) +++ ruby_1_9_2/ext/dl/lib/dl/cparser.rb (revision 28271) @@ -73,7 +73,7 @@ return -TYPE_SHORT when "int" return TYPE_INT - when "unsigned int" + when "unsigned int", 'uint' return -TYPE_INT when "long" return TYPE_LONG Index: ruby_1_9_2/test/dl/test_cparser.rb =================================================================== --- ruby_1_9_2/test/dl/test_cparser.rb (revision 0) +++ ruby_1_9_2/test/dl/test_cparser.rb (revision 28271) @@ -0,0 +1,13 @@ +require_relative 'test_base' + +require 'dl/cparser' + +module DL + class TestCParser < TestBase + include DL::CParser + + def test_uint_ctype + assert_equal(-DL::TYPE_INT, parse_ctype('uint')) + end + end +end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/