mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
WIN32OLE#[] should accept multi argments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d64a44875
commit
4cef04b494
3 changed files with 15 additions and 5 deletions
|
|
@ -1,3 +1,10 @@
|
|||
Wed Mar 29 20:54:44 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c (fole_getproperty): WIN32OLE#[] should accept
|
||||
multi arguments.
|
||||
|
||||
* ext/win32ole/tests/testWIN32OLE.rb (test_setproperty_bracket): ditto.
|
||||
|
||||
Wed Mar 29 10:07:44 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/nkf/nkf-utf8/nkf.c (nkf_each_char_to_hex, encode_fallback_subchar,
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ class TestWin32OLE < RUNIT::TestCase
|
|||
assert_equal(10, sheet.range("A1").value)
|
||||
sheet['Cells', 1, 2] = 10
|
||||
assert_equal(10, sheet.range("B1").value)
|
||||
assert_equal(10, sheet['Cells', 1, 2].value)
|
||||
ensure
|
||||
book.saved = true
|
||||
end
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
|
||||
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
|
||||
|
||||
#define WIN32OLE_VERSION "0.6.5"
|
||||
#define WIN32OLE_VERSION "0.6.6"
|
||||
|
||||
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
|
||||
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
|
||||
|
|
@ -2476,10 +2476,12 @@ fole_setproperty(argc, argv, self)
|
|||
* puts excel['Visible'] # => false
|
||||
*/
|
||||
static VALUE
|
||||
fole_getproperty(self, property)
|
||||
VALUE self, property;
|
||||
fole_getproperty(argc, argv, self)
|
||||
int argc;
|
||||
VALUE *argv;
|
||||
VALUE self;
|
||||
{
|
||||
return ole_invoke(1, &property, self, DISPATCH_PROPERTYGET);
|
||||
return ole_invoke(argc, argv, self, DISPATCH_PROPERTYGET);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
@ -6110,7 +6112,7 @@ Init_win32ole()
|
|||
|
||||
|
||||
rb_define_method(cWIN32OLE, "invoke", fole_invoke, -1);
|
||||
rb_define_method(cWIN32OLE, "[]", fole_getproperty, 1);
|
||||
rb_define_method(cWIN32OLE, "[]", fole_getproperty, -1);
|
||||
rb_define_method(cWIN32OLE, "_invoke", fole_invoke2, 3);
|
||||
rb_define_method(cWIN32OLE, "_getproperty", fole_getproperty2, 3);
|
||||
rb_define_method(cWIN32OLE, "_setproperty", fole_setproperty2, 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue