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

ruby-changes:35748

From: suke <ko1@a...>
Date: Tue, 7 Oct 2014 21:48:03 +0900 (JST)
Subject: [ruby-changes:35748] suke:r47830 (trunk): ext/win32ole/win32ole_param.c: refactoring

suke	2014-10-07 21:47:58 +0900 (Tue, 07 Oct 2014)

  New Revision: 47830

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

  Log:
    ext/win32ole/win32ole_param.c: refactoring

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32ole/win32ole_param.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47829)
+++ ChangeLog	(revision 47830)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct  7 21:47:05 2014  Masaki Suketa <masaki.suketa@n...>
+
+	* ext/win32ole/win32ole_param.c: refactoring.
+
 Tue Oct  7 21:40:17 2014  Masaki Suketa <masaki.suketa@n...>
 
 	* ext/win32ole/win32ole_method.c: refactoring. add
Index: ext/win32ole/win32ole_param.c
===================================================================
--- ext/win32ole/win32ole_param.c	(revision 47829)
+++ ext/win32ole/win32ole_param.c	(revision 47830)
@@ -122,7 +122,8 @@ oleparam_ole_param_from_index(VALUE self https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L122
     return self;
 }
 
-static VALUE oleparam_ole_param(VALUE self, VALUE olemethod, int n)
+static VALUE
+oleparam_ole_param(VALUE self, VALUE olemethod, int n)
 {
     struct olemethoddata *pmethod = olemethod_data_get_struct(olemethod);
     return oleparam_ole_param_from_index(self, pmethod->pTypeInfo, pmethod->index, n);
@@ -141,7 +142,8 @@ static VALUE oleparam_ole_param(VALUE se https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L142
  *    param = WIN32OLE_PARAM.new(method, 2) # => #<WIN32OLE_PARAM:Overwrite=true>
  *
  */
-static VALUE foleparam_initialize(VALUE self, VALUE olemethod, VALUE n)
+static VALUE
+foleparam_initialize(VALUE self, VALUE olemethod, VALUE n)
 {
     int idx;
     if (!rb_obj_is_kind_of(olemethod, cWIN32OLE_METHOD)) {
@@ -260,7 +262,8 @@ ole_param_flag_mask(ITypeInfo *pTypeInfo https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L262
  *     param1 = method.params[0]
  *     puts param1.input? # => true
  */
-static VALUE foleparam_input(VALUE self)
+static VALUE
+foleparam_input(VALUE self)
 {
     struct oleparamdata *pparam;
     TypedData_Get_Struct(self, struct oleparamdata, &oleparam_datatype, pparam);
@@ -287,7 +290,8 @@ static VALUE foleparam_input(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L290
  *       Headers false
  *       Processed true
  */
-static VALUE foleparam_output(VALUE self)
+static VALUE
+foleparam_output(VALUE self)
 {
     struct oleparamdata *pparam;
     TypedData_Get_Struct(self, struct oleparamdata, &oleparam_datatype, pparam);
@@ -305,7 +309,8 @@ static VALUE foleparam_output(VALUE self https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L309
  *     param1 = method.params[0]
  *     puts "#{param1.name} #{param1.optional?}" # => Filename true
  */
-static VALUE foleparam_optional(VALUE self)
+static VALUE
+foleparam_optional(VALUE self)
 {
     struct oleparamdata *pparam;
     TypedData_Get_Struct(self, struct oleparamdata, &oleparam_datatype, pparam);
@@ -324,7 +329,8 @@ static VALUE foleparam_optional(VALUE se https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L329
  *     param = method.params[0]
  *     puts "#{param.name} #{param.retval?}"  # => name true
  */
-static VALUE foleparam_retval(VALUE self)
+static VALUE
+foleparam_retval(VALUE self)
 {
     struct oleparamdata *pparam;
     TypedData_Get_Struct(self, struct oleparamdata, &oleparam_datatype, pparam);
@@ -384,7 +390,8 @@ ole_param_default(ITypeInfo *pTypeInfo, https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L390
  *         TextCodepage
  *         TextVisualLayout
  */
-static VALUE foleparam_default(VALUE self)
+static VALUE
+foleparam_default(VALUE self)
 {
     struct oleparamdata *pparam;
     TypedData_Get_Struct(self, struct oleparamdata, &oleparam_datatype, pparam);

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

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