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

ruby-changes:34787

From: suke <ko1@a...>
Date: Sat, 19 Jul 2014 06:20:59 +0900 (JST)
Subject: [ruby-changes:34787] suke:r46870 (trunk): * refactoring

suke	2014-07-19 06:20:43 +0900 (Sat, 19 Jul 2014)

  New Revision: 46870

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

  Log:
    * refactoring

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32ole/win32ole.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46869)
+++ ChangeLog	(revision 46870)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jul 19 06:19:01 2014  Masaki Suketa <masaki.suketa@n...>
+
+	* ext/win32ole/win32ole.c: refactoring. 
+
 Fri Jul 18 22:34:41 2014  Masaki Suketa <masaki.suketa@n...>
 
 	* ext/win32ole/win32ole.c (folevariant_initialize): WIN32OLE_VARIANT
Index: ext/win32ole/win32ole.c
===================================================================
--- ext/win32ole/win32ole.c	(revision 46869)
+++ ext/win32ole/win32ole.c	(revision 46870)
@@ -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.1"
+#define WIN32OLE_VERSION "1.6.2"
 
 typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
     (REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -596,9 +596,9 @@ static VALUE folevariant_ary_aset(int ar https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L596
 static VALUE folevariant_value(VALUE self);
 static VALUE folevariant_vartype(VALUE self);
 static VALUE folevariant_set_value(VALUE self, VALUE val);
-static VALUE fole_record_to_h(VALUE self);
-static VALUE fole_record_typename(VALUE self);
-static VALUE fole_record_method_missing(VALUE self, VALUE member);
+static VALUE folerecord_to_h(VALUE self);
+static VALUE folerecord_typename(VALUE self);
+static VALUE folerecord_method_missing(VALUE self, VALUE member);
 static void init_enc2cp(void);
 static void free_enc2cp(void);
 
@@ -9246,7 +9246,7 @@ folevariant_set_value(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L9246
  *
  */
 static VALUE
-fole_record_to_h(VALUE self)
+folerecord_to_h(VALUE self)
 {
     return rb_ivar_get(self, rb_intern("fields"));
 }
@@ -9283,7 +9283,7 @@ fole_record_to_h(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L9283
  *
  */
 static VALUE
-fole_record_typename(VALUE self)
+folerecord_typename(VALUE self)
 {
     return rb_ivar_get(self, rb_intern("typename"));
 }
@@ -9296,7 +9296,7 @@ fole_record_typename(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L9296
  *  If the member name is not correct, KeyError exception is raised.
  */
 static VALUE
-fole_record_method_missing(VALUE self, VALUE name)
+folerecord_method_missing(VALUE self, VALUE name)
 {
     VALUE fields = rb_ivar_get(self, rb_intern("fields"));
     return rb_hash_fetch(fields, rb_sym_to_s(name));
@@ -9620,9 +9620,9 @@ Init_win32ole(void) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L9620
     rb_define_const(cWIN32OLE_VARIANT, "Nothing", rb_funcall(cWIN32OLE_VARIANT, rb_intern("new"), 2, Qnil, INT2FIX(VT_DISPATCH)));
 
     cWIN32OLE_RECORD = rb_define_class("WIN32OLE_RECORD", rb_cObject);
-    rb_define_method(cWIN32OLE_RECORD, "to_h", fole_record_to_h, 0);
-    rb_define_method(cWIN32OLE_RECORD, "typename", fole_record_typename, 0);
-    rb_define_method(cWIN32OLE_RECORD, "method_missing", fole_record_method_missing, 1);
+    rb_define_method(cWIN32OLE_RECORD, "to_h", folerecord_to_h, 0);
+    rb_define_method(cWIN32OLE_RECORD, "typename", folerecord_typename, 0);
+    rb_define_method(cWIN32OLE_RECORD, "method_missing", folerecord_method_missing, 1);
 
     eWIN32OLERuntimeError = rb_define_class("WIN32OLERuntimeError", rb_eRuntimeError);
 

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

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