зеркало из https://github.com/github/ruby.git
* ext/win32ole/win32ole.c (fev_initialize): initialization
handler instance variable. * test/win32ole/test_win32ole_typelib.rb (test_s_typelibs): fix the warning of shadowing outer local variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8dcd42552f
Коммит
06df4049ed
|
@ -1,3 +1,11 @@
|
|||
Mon Sep 29 20:13:05 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c (fev_initialize): initialization
|
||||
handler instance variable.
|
||||
|
||||
* test/win32ole/test_win32ole_typelib.rb (test_s_typelibs):
|
||||
fix the warning of shadowing outer local variable.
|
||||
|
||||
Mon Sep 29 19:59:00 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c (rescue_callback): use rb_write_error
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
|
||||
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
|
||||
|
||||
#define WIN32OLE_VERSION "1.3.2"
|
||||
#define WIN32OLE_VERSION "1.3.3"
|
||||
|
||||
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
|
||||
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
|
||||
|
@ -8116,6 +8116,7 @@ fev_initialize(int argc, VALUE *argv, VALUE self)
|
|||
ev_advise(argc, argv, self);
|
||||
evs_push(self);
|
||||
rb_ivar_set(self, id_events, rb_ary_new());
|
||||
fev_set_handler(self, Qnil);
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ if defined?(WIN32OLE_TYPELIB)
|
|||
tlibs = WIN32OLE_TYPELIB.typelibs
|
||||
assert_instance_of(Array, tlibs)
|
||||
assert(tlibs.size > 0)
|
||||
tlib = tlibs.find {|tlib| tlib.name == "Microsoft Shell Controls And Automation"}
|
||||
tlib = tlibs.find {|t| t.name == "Microsoft Shell Controls And Automation"}
|
||||
assert(tlib)
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче