[前][次][番号順一覧][スレッド一覧]

ruby-changes:13678

From: tenderlove <ko1@a...>
Date: Sun, 25 Oct 2009 09:12:07 +0900 (JST)
Subject: [ruby-changes:13678] Ruby:r25463 (trunk): * ext/dl/handle.c (**) adding documentation

tenderlove	2009-10-25 09:11:56 +0900 (Sun, 25 Oct 2009)

  New Revision: 25463

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25463

  Log:
    * ext/dl/handle.c (**) adding documentation
    * test/dl/test_handle.rb (test_NEXT) testing the NEXT handle

  Modified files:
    trunk/ext/dl/handle.c
    trunk/test/dl/test_handle.rb

Index: ext/dl/handle.c
===================================================================
--- ext/dl/handle.c	(revision 25462)
+++ ext/dl/handle.c	(revision 25463)
@@ -51,6 +51,12 @@
     0, dlhandle_free, dlhandle_memsize,
 };
 
+/*
+ * call-seq: close
+ *
+ * Close this DL::Handle.  Calling close more than once will raise a
+ * DL::DLError exception.
+ */
 VALUE
 rb_dlhandle_close(VALUE self)
 {
Index: test/dl/test_handle.rb
===================================================================
--- test/dl/test_handle.rb	(revision 25462)
+++ test/dl/test_handle.rb	(revision 25463)
@@ -122,5 +122,15 @@
       handle.disable_close
       assert !handle.close_enabled?, 'close is enabled'
     end
+
+    def test_NEXT
+      handle = DL::Handle::NEXT
+      assert handle['malloc']
+    end
+
+    def test_DEFAULT
+      handle = DL::Handle::DEFAULT
+      assert handle['malloc']
+    end
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]