[Groonga-commit] groonga/groonga [master] Use the same order with the corresponding if closure

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sat Dec 29 14:51:55 JST 2012


Kouhei Sutou	2012-12-29 14:51:55 +0900 (Sat, 29 Dec 2012)

  New Revision: faaca35047ce1743e3b338a972cc01d6e07aed58
  https://github.com/groonga/groonga/commit/faaca35047ce1743e3b338a972cc01d6e07aed58

  Log:
    Use the same order with the corresponding if closure

  Modified files:
    lib/dat.cpp
    lib/hash.c
    lib/pat.c

  Modified: lib/dat.cpp (+1 -1)
===================================================================
--- lib/dat.cpp    2012-12-29 14:49:40 +0900 (728d797)
+++ lib/dat.cpp    2012-12-29 14:51:55 +0900 (7c93ae1)
@@ -307,8 +307,8 @@ grn_dat_create(grn_ctx *ctx, const char *path, uint32_t,
     dat->normalizer = grn_ctx_get(ctx, GRN_NORMALIZER_AUTO_NAME, -1);
     dat->header->normalizer = grn_obj_id(ctx, dat->normalizer);
   } else {
-    dat->header->normalizer = GRN_ID_NIL;
     dat->normalizer = NULL;
+    dat->header->normalizer = GRN_ID_NIL;
   }
   dat->encoding = encoding;
   dat->tokenizer = NULL;

  Modified: lib/hash.c (+1 -1)
===================================================================
--- lib/hash.c    2012-12-29 14:49:40 +0900 (050ec2b)
+++ lib/hash.c    2012-12-29 14:51:55 +0900 (85220c6)
@@ -1488,8 +1488,8 @@ grn_io_hash_init(grn_ctx *ctx, grn_hash *hash, const char *path,
     hash->normalizer = grn_ctx_get(ctx, GRN_NORMALIZER_AUTO_NAME, -1);
     header->normalizer = grn_obj_id(ctx, hash->normalizer);
   } else {
-    header->normalizer = GRN_ID_NIL;
     hash->normalizer = NULL;
+    header->normalizer = GRN_ID_NIL;
   }
   grn_table_queue_init(ctx, &header->queue);
 

  Modified: lib/pat.c (+1 -1)
===================================================================
--- lib/pat.c    2012-12-29 14:49:40 +0900 (cd1eb3d)
+++ lib/pat.c    2012-12-29 14:51:55 +0900 (2ae2deb)
@@ -429,8 +429,8 @@ _grn_pat_create(grn_ctx *ctx, grn_pat *pat,
     pat->normalizer = grn_ctx_get(ctx, GRN_NORMALIZER_AUTO_NAME, -1);
     header->normalizer = grn_obj_id(ctx, pat->normalizer);
   } else {
-    header->normalizer = GRN_ID_NIL;
     pat->normalizer = NULL;
+    header->normalizer = GRN_ID_NIL;
   }
   pat->io = io;
   pat->header = header;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index