mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/win32ole/win32ole.c: seperate WIN32OLE_EVENT src from
win32ole.c. * ext/win32ole/win32ole.h: ditto. * ext/win32ole/win32ole_event.c: ditto. * ext/win32ole/win32ole_event.h: ditto. * ext/win32ole/depend: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e759ed78d
commit
cd3d7fe846
6 changed files with 1287 additions and 1265 deletions
|
@ -1,3 +1,12 @@
|
|||
Fri Aug 15 20:34:17 2014 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c: seperate WIN32OLE_EVENT src from
|
||||
win32ole.c.
|
||||
* ext/win32ole/win32ole.h: ditto.
|
||||
* ext/win32ole/win32ole_event.c: ditto.
|
||||
* ext/win32ole/win32ole_event.h: ditto.
|
||||
* ext/win32ole/depend: ditto.
|
||||
|
||||
Fri Aug 15 19:38:00 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* iseq.c (rb_iseq_clone): Should not insert write barrier from
|
||||
|
|
|
@ -7,5 +7,6 @@ win32ole_variable.o : win32ole_variable.c $(WIN32OLE_HEADERS)
|
|||
win32ole_method.o : win32ole_method.c $(WIN32OLE_HEADERS)
|
||||
win32ole_param.o : win32ole_param.c $(WIN32OLE_HEADERS)
|
||||
win32ole_variant.o : win32ole_variant.c $(WIN32OLE_HEADERS)
|
||||
win32ole_event.o : win32ole_event.c $(WIN32OLE_HEADERS)
|
||||
win32ole_record.o : win32ole_record.c $(WIN32OLE_HEADERS)
|
||||
win32ole_error.o : win32ole_error.c $(WIN32OLE_HEADERS)
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -108,6 +108,17 @@
|
|||
#define OLE_GET_TYPEATTR(X, Y) ((X)->lpVtbl->GetTypeAttr((X), (Y)))
|
||||
#define OLE_RELEASE_TYPEATTR(X, Y) ((X)->lpVtbl->ReleaseTypeAttr((X), (Y)))
|
||||
|
||||
struct oledata {
|
||||
IDispatch *pDispatch;
|
||||
};
|
||||
|
||||
#define OLEData_Get_Struct(obj, pole) {\
|
||||
Data_Get_Struct(obj, struct oledata, pole);\
|
||||
if(!pole->pDispatch) {\
|
||||
rb_raise(rb_eRuntimeError, "failed to get Dispatch Interface");\
|
||||
}\
|
||||
}
|
||||
|
||||
VALUE cWIN32OLE;
|
||||
LCID cWIN32OLE_lcid;
|
||||
|
||||
|
@ -119,6 +130,7 @@ VALUE reg_get_val(HKEY hkey, const char *subkey);
|
|||
VALUE reg_get_val2(HKEY hkey, const char *subkey);
|
||||
void ole_initialize(void);
|
||||
VALUE default_inspect(VALUE self, const char *class_name);
|
||||
char *ole_wc2mb(LPWSTR pw);
|
||||
VALUE ole_wc2vstr(LPWSTR pw, BOOL isfree);
|
||||
|
||||
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
|
||||
|
@ -141,6 +153,7 @@ HRESULT typelib_from_val(VALUE obj, ITypeLib **pTypeLib);
|
|||
#include "win32ole_variable.h"
|
||||
#include "win32ole_method.h"
|
||||
#include "win32ole_param.h"
|
||||
#include "win32ole_event.h"
|
||||
#include "win32ole_variant.h"
|
||||
#include "win32ole_record.h"
|
||||
#include "win32ole_error.h"
|
||||
|
|
1254
ext/win32ole/win32ole_event.c
Normal file
1254
ext/win32ole/win32ole_event.c
Normal file
File diff suppressed because it is too large
Load diff
6
ext/win32ole/win32ole_event.h
Normal file
6
ext/win32ole/win32ole_event.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef WIN32OLE_EVENT_H
|
||||
#define WIN32OLE_EVENT_H 1
|
||||
|
||||
void Init_win32ole_event();
|
||||
|
||||
#endif
|
Loading…
Add table
Reference in a new issue