[ruby-oci8-commit] [245] trunk/ruby-oci8: * Makefile: add format_c_source target to fix indentation by

nobody at rubyforge.org nobody at rubyforge.org
Sun Feb 17 10:29:30 EST 2008


Revision: 245
Author:   kubo
Date:     2008-02-17 10:29:30 -0500 (Sun, 17 Feb 2008)

Log Message:
-----------
* Makefile: add format_c_source target to fix indentation by
    astyle. <URL:http://astyle.sourceforge.net>
* ext/oci8/error.c, ext/oci8/lob.c, ext/oci8/metadata.c,
  ext/oci8/oci8.c, ext/oci8/oci8.h, ext/oci8/oci8lib.c,
  ext/oci8/ocidatetime.c, ext/oci8/ocinumber.c,
  ext/oci8/oradate.c, ext/oci8/stmt.c, ext/oci8/xmldb.c:
    fix indentation by astyle.
    The command line options are as follows.
      astyle --style=linux --indent=spaces=4 --brackets=linux ext/oci8/*.[ch]

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/Makefile
    trunk/ruby-oci8/ext/oci8/error.c
    trunk/ruby-oci8/ext/oci8/lob.c
    trunk/ruby-oci8/ext/oci8/metadata.c
    trunk/ruby-oci8/ext/oci8/oci8.c
    trunk/ruby-oci8/ext/oci8/oci8.h
    trunk/ruby-oci8/ext/oci8/oci8lib.c
    trunk/ruby-oci8/ext/oci8/ocidatetime.c
    trunk/ruby-oci8/ext/oci8/ocinumber.c
    trunk/ruby-oci8/ext/oci8/oradate.c
    trunk/ruby-oci8/ext/oci8/stmt.c
    trunk/ruby-oci8/ext/oci8/xmldb.c

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ChangeLog	2008-02-17 15:29:30 UTC (rev 245)
@@ -1,4 +1,15 @@
 2008-02-17  KUBO Takehiro  <kubo at jiubao.org>
+	* Makefile: add format_c_source target to fix indentation by
+	    astyle. <URL:http://astyle.sourceforge.net>
+	* ext/oci8/error.c, ext/oci8/lob.c, ext/oci8/metadata.c,
+	  ext/oci8/oci8.c, ext/oci8/oci8.h, ext/oci8/oci8lib.c,
+	  ext/oci8/ocidatetime.c, ext/oci8/ocinumber.c,
+	  ext/oci8/oradate.c, ext/oci8/stmt.c, ext/oci8/xmldb.c:
+	    fix indentation by astyle.
+	    The command line options are as follows.
+	      astyle --style=linux --indent=spaces=4 --brackets=linux ext/oci8/*.[ch]
+
+2008-02-17  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/object.c, ext/oci8/stmt.c:
 	    change from:
 	      switch (fixnum_value) {

Modified: trunk/ruby-oci8/Makefile
===================================================================
--- trunk/ruby-oci8/Makefile	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/Makefile	2008-02-17 15:29:30 UTC (rev 245)
@@ -26,6 +26,9 @@
 site-install:
 	$(RUBY) setup.rb install
 
+format_c_source:
+	astyle --options=none --style=linux --indent=spaces=4 --brackets=linux --suffix=none ext/oci8/*.[ch]
+
 # internal use only
 dist:
 	-rm -rf ruby-oci8-$(VERSION)

Modified: trunk/ruby-oci8/ext/oci8/error.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/error.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/error.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -294,10 +294,10 @@
 
 void oci8_do_raise_init_error(const char *file, int line)
 {
-  VALUE msg = rb_str_new2("OCI Library Initialization Error");
-  VALUE exc = rb_funcall(eOCIError, oci8_id_new, 1, msg);
+    VALUE msg = rb_str_new2("OCI Library Initialization Error");
+    VALUE exc = rb_funcall(eOCIError, oci8_id_new, 1, msg);
 
-  rb_ivar_set(exc, oci8_id_code, rb_ary_new3(1, INT2FIX(-1)));
-  rb_ivar_set(exc, oci8_id_message, rb_ary_new3(1, msg));
-  set_backtrace_and_raise(exc, file, line);
+    rb_ivar_set(exc, oci8_id_code, rb_ary_new3(1, INT2FIX(-1)));
+    rb_ivar_set(exc, oci8_id_message, rb_ary_new3(1, msg));
+    set_backtrace_and_raise(exc, file, line);
 }

Modified: trunk/ruby-oci8/ext/oci8/lob.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/lob.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/lob.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -412,8 +412,8 @@
     newobj = rb_funcall(CLASS_OF(self), oci8_id_new, 1, lob->svc);
     newlob = DATA_PTR(newobj);
     if (have_OCILobLocatorAssign_nb && have_OCILobIsTemporary
-        && OCILobIsTemporary(oci8_envhp, oci8_errhp, lob->base.hp.lob, &is_temporary) == OCI_SUCCESS
-        && is_temporary) {
+            && OCILobIsTemporary(oci8_envhp, oci8_errhp, lob->base.hp.lob, &is_temporary) == OCI_SUCCESS
+            && is_temporary) {
         oci8_svcctx_t *svcctx = oci8_get_svcctx(lob->svc);
         rv = OCILobLocatorAssign_nb(svcctx, svcctx->base.hp.svc, oci8_errhp, lob->base.hp.lob, &newlob->base.hp.lob);
     } else {
@@ -467,8 +467,8 @@
 
     bfile_close(lob);
     oci_lc(OCILobFileSetName(oci8_envhp, oci8_errhp, &lob->base.hp.lob,
-                               RSTRING_ORATEXT(dir_alias), RSTRING_LEN(dir_alias),
-                               RSTRING_ORATEXT(filename), RSTRING_LEN(filename)));
+                             RSTRING_ORATEXT(dir_alias), RSTRING_LEN(dir_alias),
+                             RSTRING_ORATEXT(filename), RSTRING_LEN(filename)));
 }
 
 static VALUE oci8_bfile_initialize(int argc, VALUE *argv, VALUE self)

Modified: trunk/ruby-oci8/ext/oci8/metadata.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/metadata.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/metadata.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -1,7 +1,7 @@
 /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
 /*
  * metadata.c
- * 
+ *
  * Copyright (C) 2006-2007 KUBO Takehiro <kubo at jiubao.org>
  *
  * implement private methods of classes in OCI8::Metadata module.

Modified: trunk/ruby-oci8/ext/oci8/oci8.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/oci8.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/oci8.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -187,10 +187,10 @@
     switch (logon_type) {
     case T_IMPLICIT:
         rv = OCILogon_nb(svcctx, oci8_envhp, oci8_errhp, &svchp,
-                      RSTRING_ORATEXT(vusername), RSTRING_LEN(vusername),
-                      RSTRING_ORATEXT(vpassword), RSTRING_LEN(vpassword),
-                      NIL_P(vdbname) ? NULL : RSTRING_ORATEXT(vdbname),
-                      NIL_P(vdbname) ? 0 : RSTRING_LEN(vdbname));
+                         RSTRING_ORATEXT(vusername), RSTRING_LEN(vusername),
+                         RSTRING_ORATEXT(vpassword), RSTRING_LEN(vpassword),
+                         NIL_P(vdbname) ? NULL : RSTRING_ORATEXT(vdbname),
+                         NIL_P(vdbname) ? 0 : RSTRING_LEN(vdbname));
         svcctx->base.hp.svc = svchp;
         svcctx->base.type = OCI_HTYPE_SVCCTX;
         svcctx->logon_type = T_IMPLICIT;
@@ -223,8 +223,8 @@
 
         /* attach to server and set to OCISvcCtx. */
         rv = OCIServerAttach_nb(svcctx, svcctx->srvhp, oci8_errhp,
-                             NIL_P(vdbname) ? NULL : RSTRING_ORATEXT(vdbname),
-                             NIL_P(vdbname) ? 0 : RSTRING_LEN(vdbname), OCI_DEFAULT);
+                                NIL_P(vdbname) ? NULL : RSTRING_ORATEXT(vdbname),
+                                NIL_P(vdbname) ? 0 : RSTRING_LEN(vdbname), OCI_DEFAULT);
         if (rv != OCI_SUCCESS)
             oci8_raise(oci8_errhp, rv, NULL);
         oci_lc(OCIAttrSet(svcctx->base.hp.ptr, OCI_HTYPE_SVCCTX, svcctx->srvhp, 0, OCI_ATTR_SERVER, oci8_errhp));

Modified: trunk/ruby-oci8/ext/oci8/oci8.h
===================================================================
--- trunk/ruby-oci8/ext/oci8/oci8.h	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/oci8.h	2008-02-17 15:29:30 UTC (rev 245)
@@ -17,7 +17,8 @@
 #include <stdlib.h>
 #include <assert.h>
 #ifdef __cplusplus
-extern "C" {
+extern "C"
+{
 #endif
 #include <oci.h>
 #ifdef __cplusplus
@@ -86,11 +87,11 @@
 #define TO_CHARPTR to_charptr
 static ALWAYS_INLINE OraText *to_oratext(char *c)
 {
-  return (OraText*)c;
+    return (OraText*)c;
 }
 static ALWAYS_INLINE char *to_charptr(OraText *c)
 {
-  return (char*)c;
+    return (char*)c;
 }
 #else
 /* if not gcc, use normal cast. */
@@ -323,7 +324,8 @@
 /* xmldb.c */
 #ifndef XMLCTX_DEFINED
 #define XMLCTX_DEFINED
-struct xmlctx; typedef struct xmlctx xmlctx;
+struct xmlctx;
+typedef struct xmlctx xmlctx;
 #endif
 #ifndef XML_TYPES
 typedef struct xmlnode xmlnode;

Modified: trunk/ruby-oci8/ext/oci8/oci8lib.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/oci8lib.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/oci8lib.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -273,12 +273,12 @@
             tv.tv_usec <<= 1;
     }
     if (rv == OCI_ERROR) {
-       if (oci8_get_error_code(oci8_errhp) == 1013) {
-           if (have_OCIReset)
-               OCIReset(svcctx->base.hp.ptr, oci8_errhp);
-           svcctx->executing_thread = Qnil;
-           rb_raise(eOCIBreak, "Canceled by user request.");
-       }
+        if (oci8_get_error_code(oci8_errhp) == 1013) {
+            if (have_OCIReset)
+                OCIReset(svcctx->base.hp.ptr, oci8_errhp);
+            svcctx->executing_thread = Qnil;
+            rb_raise(eOCIBreak, "Canceled by user request.");
+        }
     }
     svcctx->executing_thread = Qnil;
     return rv;

Modified: trunk/ruby-oci8/ext/oci8/ocidatetime.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/ocidatetime.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/ocidatetime.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -93,7 +93,7 @@
             tz_minute = - tz_minute;
         }
         snprintf(buf, sizeof(buf), "%04d-%02d-%02dT%02d:%02d:%02d.%09d%c%02d:%02d",
-                 year, month, day, hour, minute, sec, fsec, sign, 
+                 year, month, day, hour, minute, sec, fsec, sign,
                  tz_hour, tz_minute);
         return rb_funcall(cDateTime, id_parse, 1, rb_str_new2(buf));
     }

Modified: trunk/ruby-oci8/ext/oci8/ocinumber.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/ocinumber.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/ocinumber.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -240,7 +240,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.sin(x)    => ocinumber
- *  
+ *
  *  Computes the sine of <i>x</i> (expressed in radians). Returns
  *  -1..1.
  */
@@ -256,7 +256,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.tan(x)    => ocinumber
- *  
+ *
  *  Returns the tangent of <i>x</i> (expressed in radians).
  */
 static VALUE omath_tan(VALUE obj, VALUE radian)
@@ -271,7 +271,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.acos(x)    => ocinumber
- *  
+ *
  *  Computes the arc cosine of <i>x</i>. Returns 0..PI.
  */
 static VALUE omath_acos(VALUE obj, VALUE num)
@@ -297,7 +297,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.asin(x)    => ocinumber
- *  
+ *
  *  Computes the arc sine of <i>x</i>. Returns 0..PI.
  */
 static VALUE omath_asin(VALUE obj, VALUE num)
@@ -323,7 +323,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.atan(x)    => ocinumber
- *  
+ *
  *  Computes the arc tangent of <i>x</i>. Returns -{PI/2} .. {PI/2}.
  */
 static VALUE omath_atan(VALUE obj, VALUE num)
@@ -338,7 +338,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.cosh(x)    => ocinumber
- *  
+ *
  *  Computes the hyperbolic cosine of <i>x</i> (expressed in radians).
  */
 static VALUE omath_cosh(VALUE obj, VALUE num)
@@ -353,7 +353,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.sinh(x)    => ocinumber
- *  
+ *
  *  Computes the hyperbolic sine of <i>x</i> (expressed in
  *  radians).
  */
@@ -369,7 +369,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.tanh()    => ocinumber
- *  
+ *
  *  Computes the hyperbolic tangent of <i>x</i> (expressed in
  *  radians).
  */
@@ -385,7 +385,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.exp(x)    => ocinumber
- *  
+ *
  *  Returns e**x.
  */
 static VALUE omath_exp(VALUE obj, VALUE num)
@@ -401,7 +401,7 @@
  *  call-seq:
  *     OCI8::Math.log(numeric)    => ocinumber
  *     OCI8::Math.log(numeric, base_num)  => ocinumber
- *  
+ *
  *  Returns the natural logarithm of <i>numeric</i> for one argument.
  *  Returns the base <i>base_num</i> logarithm of <i>numeric</i> for two arguments.
  */
@@ -436,7 +436,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.log10(numeric)    => ocinumber
- *  
+ *
  *  Returns the base 10 logarithm of <i>numeric</i>.
  */
 static VALUE omath_log10(VALUE obj, VALUE num)
@@ -456,7 +456,7 @@
 /*
  *  call-seq:
  *     OCI8::Math.sqrt(numeric)    => ocinumber
- *  
+ *
  *  Returns the non-negative square root of <i>numeric</i>.
  */
 static VALUE omath_sqrt(VALUE obj, VALUE num)
@@ -663,7 +663,7 @@
             rb_raise(rb_eRangeError, "base is negative and exponent part is not an integral value");
         oci_lc(OCINumberPower(oci8_errhp, _NUMBER(lhs), &n, &r));
     }
-    return oci8_make_ocinumber(&r); 
+    return oci8_make_ocinumber(&r);
 }
 
 /*
@@ -690,7 +690,7 @@
 /*
  *  call-seq:
  *     onum.floor   => integer
- *  
+ *
  *  Returns the largest <code>Integer</code> less than or equal to <i>onum</i>.
  */
 static VALUE onum_floor(VALUE self)
@@ -704,7 +704,7 @@
 /*
  *  call-seq:
  *     onum.ceil    => integer
- *  
+ *
  *  Returns the smallest <code>Integer</code> greater than or equal to
  *  <i>onum</i>.
  */
@@ -720,7 +720,7 @@
  *  call-seq:
  *     onum.round      => integer
  *     onum.round(decplace) => onum
- *  
+ *
  *  Rounds <i>onum</i> to the nearest <code>Integer</code> when no argument.
  *  Rounds <i>onum</i> to a specified decimal place <i>decplace</i> when one argument.
  */
@@ -742,7 +742,7 @@
  *  call-seq:
  *     onum.truncate     => integer
  *     onum.truncate(decplace) => ocinumber
- *  
+ *
  *  Truncates <i>onum</i> to the <code>Integer</code> when no argument.
  *  Truncates <i>onum</i> to a specified decimal place <i>decplace</i> when one argument.
  */
@@ -759,7 +759,7 @@
 /*
  *  call-seq:
  *     onum.round_prec(digits) => ocinumber
- *  
+ *
  *  Rounds <i>onum</i> to a specified number of decimal digits.
  *
  *   OCINumber.new(1.234).round_prec(2)  #=> 1.2
@@ -777,7 +777,7 @@
 /*
  *  call-seq:
  *     onum.to_char(fmt = nil, nls_params = nil)  => string
- *  
+ *
  *  Returns a string containing a representation of self.
  *  <i>fmt</i> and <i>nls_params</i> are same meanings with
  *  <code>TO_CHAR</code> of Oracle function.
@@ -847,7 +847,7 @@
 /*
  *  call-seq:
  *     onum.to_s    => string
- *  
+ *
  *  Returns a string containing a representation of self.
  */
 static VALUE onum_to_s(VALUE self)
@@ -858,7 +858,7 @@
 /*
  *  call-seq:
  *     onum.to_i       => integer
- *  
+ *
  *  Returns <i>onm</i> truncated to an <code>Integer</code>.
  */
 static VALUE onum_to_i(VALUE self)
@@ -872,9 +872,9 @@
 /*
  *  call-seq:
  *     onum.to_f -> float
- *  
+ *
  *  Converts <i>onum</i> to a <code>Float</code>.
- *     
+ *
  */
 static VALUE onum_to_f(VALUE self)
 {
@@ -887,7 +887,7 @@
 /*
  *  call-seq:
  *     onum.to_onum -> onum
- *  
+ *
  */
 static VALUE onum_to_onum(VALUE self)
 {
@@ -897,9 +897,9 @@
 /*
  *  call-seq:
  *     onum.zero?    => true or false
- *  
+ *
  *  Returns <code>true</code> if <i>onum</i> is zero.
- *     
+ *
  */
 static VALUE onum_zero_p(VALUE self)
 {
@@ -912,9 +912,9 @@
 /*
  *  call-seq:
  *     onum.abs -> ocinumber
- *  
+ *
  *  Returns the absolute value of <i>onum</i>.
- *     
+ *
  */
 static VALUE onum_abs(VALUE self)
 {
@@ -927,7 +927,7 @@
 /*
  *  call-seq:
  *     onum.shift(fixnum)    => ocinumber
- *  
+ *
  *  Returns <i>onum</i> * 10**<i>fixnum</i>
  */
 static VALUE onum_shift(VALUE self, VALUE exp)
@@ -1191,7 +1191,7 @@
 
 OCINumber *oci8_get_ocinumber(VALUE num)
 {
-    if (!rb_obj_is_kind_of(num, cOCINumber)) { 
+    if (!rb_obj_is_kind_of(num, cOCINumber)) {
         rb_raise(rb_eTypeError, "invalid argument %s (expect a subclass of %s)", rb_class2name(CLASS_OF(num)), rb_class2name(cOCINumber));
     }
     return _NUMBER(num);

Modified: trunk/ruby-oci8/ext/oci8/oradate.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/oradate.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/oradate.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -144,7 +144,7 @@
     Data_Get_Struct(rhs, ora_date_t, r);
     memcpy(l, r, sizeof(ora_date_t));
     return lhs;
-}  
+}
 
 /*
 =begin
@@ -201,7 +201,7 @@
 {
     ora_date_t *od;
     VALUE ary[6];
-  
+
     Data_Get_Struct(self, ora_date_t, od);
     ary[0] = INT2FIX(Get_year(od));
     ary[1] = INT2FIX(Get_month(od));
@@ -289,13 +289,13 @@
 */
 static VALUE ora_date_trunc(VALUE self)
 {
-  ora_date_t *od;
+    ora_date_t *od;
 
-  Data_Get_Struct(self, ora_date_t, od);
-  od->hour = 1;
-  od->minute = 1;
-  od->second = 1;
-  return self;
+    Data_Get_Struct(self, ora_date_t, od);
+    od->hour = 1;
+    od->minute = 1;
+    od->second = 1;
+    return self;
 }
 
 /*
@@ -347,7 +347,7 @@
     ora_date_t *od;
     Data_Get_Struct(self, ora_date_t, od);
     return rb_str_new((const char*)od, sizeof(ora_date_t));
-}  
+}
 
 static VALUE ora_date_s_load(VALUE klass, VALUE str)
 {
@@ -361,7 +361,7 @@
     obj = Data_Make_Struct(cOraDate, ora_date_t, NULL, xfree, od);
     memcpy(od, RSTRING_PTR(str), sizeof(ora_date_t));
     return obj;
-}  
+}
 
 /*
  * bind_oradate

Modified: trunk/ruby-oci8/ext/oci8/stmt.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/stmt.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/stmt.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -97,17 +97,17 @@
      :position
         the position of the column. It starts from 1.
      :type
-        the type of column. 
+        the type of column.
         ((|String|)), ((|Fixnum|)), ((|Integer|)), ((|Float|)), ((|Time|)),
         ((<OraDate>)), ((<OraNumber>)), or ((|OCI_TYPECODE_RAW|))
      :length
-        When the 2nd argument is 
+        When the 2nd argument is
         * ((|String|)) or ((|OCI_TYPECODE_RAW|)),
           the max length of fetched data.
         * otherwise,
           its value is ignored.
      :mode
-        ((|OCI_DEFAULT|)), or ((|OCI_DYNAMIC_FETCH|)). But now available value is 
+        ((|OCI_DEFAULT|)), or ((|OCI_DYNAMIC_FETCH|)). But now available value is
         ((|OCI_DEFAULT|)) only. Default value is ((|OCI_DEFAULT|))
      :return value
         newly created ((<define handle|OCIDefine>))
@@ -533,7 +533,7 @@
  * Gets the value of the bind variable.
  *
  * In case of binding explicitly, use same key with that of
- * OCI8::Cursor#bind_param. A placeholder can be bound by 
+ * OCI8::Cursor#bind_param. A placeholder can be bound by
  * name or position. If you bind by name, use that name. If you bind
  * by position, use the position.
  *

Modified: trunk/ruby-oci8/ext/oci8/xmldb.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/xmldb.c	2008-02-17 14:58:06 UTC (rev 244)
+++ trunk/ruby-oci8/ext/oci8/xmldb.c	2008-02-17 15:29:30 UTC (rev 245)
@@ -47,8 +47,7 @@
     void *cb[1];
 } xmldomcb;
 
-typedef struct xmlctxhead
-{
+typedef struct xmlctxhead {
     ub4           cw_xmlctxhead;        /* checkword */
     oratext      *name_xmlctxhead;      /* name for context */
     void         *cb_xmlctxhead;        /* top-level function callbacks */
@@ -351,7 +350,7 @@
         attr = XmlDomGetNodeMapItem(xctx, attrs, idx);
         name = XmlDomGetAttrName(xctx, attr);
         value = XmlDomGetAttrValue(xctx, attr);
-        rb_funcall(obj, id_add_attribute, 2, 
+        rb_funcall(obj, id_add_attribute, 2,
                    rb_str_new2_ora(name),
                    value ? rb_str_new2_ora(value) : Qnil);
     }




More information about the ruby-oci8-commit mailing list