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

ruby-changes:34944

From: suke <ko1@a...>
Date: Fri, 1 Aug 2014 20:20:16 +0900 (JST)
Subject: [ruby-changes:34944] suke:r47026 (trunk): * ext/win32ole/win32ole.c (ole_variant2val): call

suke	2014-08-01 20:20:05 +0900 (Fri, 01 Aug 2014)

  New Revision: 47026

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

  Log:
    * ext/win32ole/win32ole.c (ole_variant2val): call
      folerecord_s_allocate instead of WIN32OLE_RECORD.new.

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32ole/win32ole.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47025)
+++ ChangeLog	(revision 47026)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Aug  1 20:17:33 2014  Masaki Suketa <masaki.suketa@n...>
+
+	* ext/win32ole/win32ole.c (ole_variant2val): call
+	  folerecord_s_allocate instead of WIN32OLE_RECORD.new.
+
 Fri Aug  1 18:39:57 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* test/date/test_date.rb: remove commented-out code.
Index: ext/win32ole/win32ole.c
===================================================================
--- ext/win32ole/win32ole.c	(revision 47025)
+++ ext/win32ole/win32ole.c	(revision 47026)
@@ -143,7 +143,7 @@ const IID IID_IMultiLanguage2 = {0xDCCFC https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L143
 
 #define WC2VSTR(x) ole_wc2vstr((x), TRUE)
 
-#define WIN32OLE_VERSION "1.6.9"
+#define WIN32OLE_VERSION "1.7.0"
 
 typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
     (REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -2435,7 +2435,7 @@ ole_variant2val(VARIANT *pvar) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L2435
     {
         IRecordInfo *pri = V_RECORDINFO(pvar);
         void *prec = V_RECORD(pvar);
-        obj = rb_funcall(cWIN32OLE_RECORD, rb_intern("new"), 0);
+        obj = folerecord_s_allocate(cWIN32OLE_RECORD);
         olerecord_set_ivar(obj, pri, prec);
         break;
     }

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

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