[macruby-changes] [3051] MacRuby/trunk/ext/openssl/ossl_ssl.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 25 01:10:37 PST 2009


Revision: 3051
          http://trac.macosforge.org/projects/ruby/changeset/3051
Author:   lsansonetti at apple.com
Date:     2009-11-25 01:10:32 -0800 (Wed, 25 Nov 2009)
Log Message:
-----------
fixed SSL::SSLSocket.alloc

Modified Paths:
--------------
    MacRuby/trunk/ext/openssl/ossl_ssl.c

Modified: MacRuby/trunk/ext/openssl/ossl_ssl.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_ssl.c	2009-11-25 08:51:04 UTC (rev 3050)
+++ MacRuby/trunk/ext/openssl/ossl_ssl.c	2009-11-25 09:10:32 UTC (rev 3051)
@@ -1622,7 +1622,7 @@
      *
      */
     cSSLSocket = rb_define_class_under(mSSL, "SSLSocket", rb_cObject);
-    rb_define_alloc_func(cSSLSocket, ossl_ssl_s_alloc);
+    rb_objc_define_method(*(VALUE *)cSSLSocket, "alloc", ossl_ssl_s_alloc, 0);
     for(i = 0; i < numberof(ossl_ssl_attr_readers); i++)
         rb_attr(cSSLSocket, rb_intern(ossl_ssl_attr_readers[i]), 1, 0, Qfalse);
     for(i = 0; i < numberof(ossl_ssl_attrs); i++)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091125/734cabfa/attachment-0001.html>


More information about the macruby-changes mailing list