[Groonga-commit] groonga/groonga at 0e8b17f [master] Indent

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 21 17:38:26 JST 2014


Kouhei Sutou	2014-08-21 17:38:26 +0900 (Thu, 21 Aug 2014)

  New Revision: 0e8b17f43df5e1ea883d1609bf15fab11fbbec9b
  https://github.com/groonga/groonga/commit/0e8b17f43df5e1ea883d1609bf15fab11fbbec9b

  Message:
    Indent

  Modified files:
    lib/str.c

  Modified: lib/str.c (+15 -15)
===================================================================
--- lib/str.c    2014-08-21 17:35:45 +0900 (69e4e05)
+++ lib/str.c    2014-08-21 17:38:26 +0900 (255f802)
@@ -2772,26 +2772,26 @@ grn_text_otoj(grn_ctx *ctx, grn_obj *bulk, grn_obj *obj, grn_obj_format *format)
         if (GRN_BULK_VSIZE(obj) == 0) {
           GRN_TEXT_PUTS(ctx, bulk, "null");
         } else {
-        grn_obj *table = grn_ctx_at(ctx, obj->header.domain);
-        grn_id id = GRN_RECORD_VALUE(obj);
-        if (table && table->header.type != GRN_TABLE_NO_KEY) {
-          /* todo : temporal patch. grn_table_at() is kinda costful... */
-          if (grn_table_at(ctx, table, id)) {
-            grn_obj *accessor = grn_obj_column(ctx, table,
-                                               GRN_COLUMN_NAME_KEY,
-                                               GRN_COLUMN_NAME_KEY_LEN);
-            if (accessor) {
-              grn_obj_get_value(ctx, accessor, id, &buf);
-              grn_obj_unlink(ctx, accessor);
+          grn_obj *table = grn_ctx_at(ctx, obj->header.domain);
+          grn_id id = GRN_RECORD_VALUE(obj);
+          if (table && table->header.type != GRN_TABLE_NO_KEY) {
+            /* todo : temporal patch. grn_table_at() is kinda costful... */
+            if (grn_table_at(ctx, table, id)) {
+              grn_obj *accessor = grn_obj_column(ctx, table,
+                                                 GRN_COLUMN_NAME_KEY,
+                                                 GRN_COLUMN_NAME_KEY_LEN);
+              if (accessor) {
+                grn_obj_get_value(ctx, accessor, id, &buf);
+                grn_obj_unlink(ctx, accessor);
+              }
             }
+            grn_text_otoj(ctx, bulk, &buf, format);
+          } else {
+            grn_text_lltoa(ctx, bulk, id);
           }
-          grn_text_otoj(ctx, bulk, &buf, format);
-        } else {
-          grn_text_lltoa(ctx, bulk, id);
         }
       }
     }
-    }
     break;
   case GRN_UVECTOR :
     if (format) {
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index