[Groonga-commit] groonga/groonga [master] Rename array_seg_value to GRN_ARRAY_VALUE_SEGMENT.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 30日 (金) 13:47:42 JST


Susumu Yata	2012-03-30 13:47:42 +0900 (Fri, 30 Mar 2012)

  New Revision: 7eb5a9bbd9f7620e85b8c401c2df428e1119a0e2

  Log:
    Rename array_seg_value to GRN_ARRAY_VALUE_SEGMENT.

  Modified files:
    lib/hash.c

  Modified: lib/hash.c (+5 -4)
===================================================================
--- lib/hash.c    2012-03-30 13:35:48 +0900 (2338f31)
+++ lib/hash.c    2012-03-30 13:47:42 +0900 (b7aa6c1)
@@ -198,7 +198,7 @@ struct grn_array_header {
 };
 
 enum {
-  array_seg_value = 0,
+  GRN_ARRAY_VALUE_SEGMENT = 0,
   array_seg_bitmap = 1
 };
 
@@ -212,7 +212,7 @@ inline static void *
 grn_array_io_entry_at(grn_ctx *ctx, grn_array *array, grn_id id, int flags)
 {
   void *value;
-  GRN_IO_ARRAY_AT(array->io, array_seg_value, id, &flags, value);
+  GRN_IO_ARRAY_AT(array->io, GRN_ARRAY_VALUE_SEGMENT, id, &flags, value);
   return value;
 }
 
@@ -272,8 +272,9 @@ grn_array_create_io_array(grn_ctx *ctx, const char *path, uint32_t value_size)
     w_of_element++;
   }
 
-  array_spec[array_seg_value].w_of_element = w_of_element;
-  array_spec[array_seg_value].max_n_segments = 1U << (30 - (22 - w_of_element));
+  array_spec[GRN_ARRAY_VALUE_SEGMENT].w_of_element = w_of_element;
+  array_spec[GRN_ARRAY_VALUE_SEGMENT].max_n_segments =
+      1U << (30 - (22 - w_of_element));
   array_spec[array_seg_bitmap].w_of_element = 0;
   array_spec[array_seg_bitmap].max_n_segments = 1U << (30 - (22 + 3));
   return grn_io_create_with_array(ctx, path, sizeof(struct grn_array_header),




Groonga-commit メーリングリストの案内
Back to archive index