Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "win32ole.h"
Go to the source code of this file.
Data Structures | |
struct | olerecorddata |
Variables | |
static const rb_data_type_t | olerecord_datatype |
VALUE create_win32ole_record | ( | IRecordInfo * | pri, |
void * | prec | ||
) |
Definition at line 172 of file win32ole_record.c.
References cWIN32OLE_RECORD, folerecord_s_allocate(), and olerecord_set_ivar().
Referenced by ole_variant2val().
Definition at line 282 of file win32ole_record.c.
References cWIN32OLE, cWIN32OLE_TYPELIB, eWIN32OLERuntimeError, HRESULT(), itypelib(), NULL, OLE_ADDREF, ole_raise(), OLE_RELEASE, olerecord_set_ivar(), olerecorddata::pri, rb_eArgError, rb_obj_is_kind_of(), rb_raise(), rb_sym2str, RB_TYPE_P, recordinfo_from_itypelib(), StringValuePtr, T_STRING, T_SYMBOL, and typelib_from_val().
Referenced by Init_win32ole_record().
Definition at line 578 of file win32ole_record.c.
References folerecord_to_h(), folerecord_typename(), PRIsVALUE, Qnil, rb_inspect(), and rb_sprintf().
Referenced by Init_win32ole_record().
Definition at line 451 of file win32ole_record.c.
References LONG_MAX, name, olerecord_ivar_get(), olerecord_ivar_set(), Qnil, rb_check_arity, rb_eRuntimeError, rb_raise(), rb_sym2str, StringValueCStr, and strlen().
Referenced by Init_win32ole_record().
Definition at line 503 of file win32ole_record.c.
References name, olerecord_ivar_get(), rb_eTypeError, rb_raise(), rb_sym2str, RB_TYPE_P, T_STRING, and T_SYMBOL.
Referenced by Init_win32ole_record().
Definition at line 542 of file win32ole_record.c.
References name, olerecord_ivar_set(), rb_eTypeError, rb_raise(), rb_sym2str, RB_TYPE_P, T_STRING, and T_SYMBOL.
Referenced by Init_win32ole_record().
Definition at line 245 of file win32ole_record.c.
References NULL, olerecorddata::pdata, olerecorddata::pri, Qnil, and TypedData_Make_Struct.
Referenced by create_win32ole_record(), and Init_win32ole_record().
Definition at line 358 of file win32ole_record.c.
References rb_intern, and rb_ivar_get().
Referenced by folerecord_inspect(), Init_win32ole_record(), and ole_rec2variant().
Definition at line 395 of file win32ole_record.c.
References rb_intern, and rb_ivar_get().
Referenced by folerecord_inspect(), and Init_win32ole_record().
Definition at line 62 of file win32ole_record.c.
References eWIN32OLERuntimeError, HRESULT(), ole_raise(), ole_val2variant(), ole_vstr2wc(), olerecorddata::pdata, olerecorddata::pri, Qnil, ST_CONTINUE, StringValuePtr, and TypedData_Get_Struct.
Referenced by ole_rec2variant().
void Init_win32ole_record | ( | void | ) |
Definition at line 593 of file win32ole_record.c.
References cWIN32OLE_RECORD, folerecord_initialize(), folerecord_inspect(), folerecord_method_missing(), folerecord_ole_instance_variable_get(), folerecord_ole_instance_variable_set(), folerecord_s_allocate(), folerecord_to_h(), folerecord_typename(), rb_cObject, rb_define_alloc_func(), rb_define_class(), and rb_define_method().
Referenced by Init_win32ole().
void ole_rec2variant | ( | VALUE | rec, |
VARIANT * | var | ||
) |
Definition at line 87 of file win32ole_record.c.
References ALLOC_N, eWIN32OLERuntimeError, folerecord_to_h(), free(), hash2olerec(), HRESULT(), ole_raise(), olerecorddata::pdata, olerecorddata::pri, rb_eRuntimeError, rb_hash_foreach(), rb_raise(), size, TypedData_Get_Struct, and ULONG().
Referenced by ole_val2variant().
|
static |
Definition at line 216 of file win32ole_record.c.
References free(), OLE_FREE, olerecorddata::pdata, and olerecorddata::pri.
Definition at line 401 of file win32ole_record.c.
References rb_hash_fetch(), rb_intern, and rb_ivar_get().
Referenced by folerecord_method_missing(), and folerecord_ole_instance_variable_get().
Definition at line 409 of file win32ole_record.c.
References len, rb_hash_aset(), rb_hash_fetch(), rb_intern, rb_ivar_get(), rb_str_subseq(), RSTRING_LEN, and RSTRING_PTR.
Referenced by folerecord_method_missing(), and folerecord_ole_instance_variable_set().
void olerecord_set_ivar | ( | VALUE | obj, |
IRecordInfo * | pri, | ||
void * | prec | ||
) |
Definition at line 123 of file win32ole_record.c.
References ALLOCA_N, count, HRESULT(), NULL, OLE_ADDREF, OLE_RELEASE, ole_variant2val(), olerecorddata::pdata, olerecorddata::pri, Qnil, rb_hash_aset(), rb_hash_new(), rb_intern, rb_ivar_set(), TypedData_Get_Struct, ULONG(), val, and WC2VSTR.
Referenced by create_win32ole_record(), folerecord_initialize(), and ole_invoke().
|
static |
Definition at line 226 of file win32ole_record.c.
References HRESULT(), olerecorddata::pri, size, and ULONG().
|
static |
Definition at line 30 of file win32ole_record.c.
References count, HRESULT(), NULL, OLE_RELEASE, rb_str_cmp(), and WC2VSTR.
Referenced by folerecord_initialize().
|
static |
Definition at line 23 of file win32ole_record.c.