[Groonga-commit] groonga/groonga at 4e5c8c3 [master] Add "column_" prefix

Back to archive index

Kouhei Sutou null+****@clear*****
Thu May 9 11:31:08 JST 2013


Kouhei Sutou	2013-05-09 11:31:08 +0900 (Thu, 09 May 2013)

  New Revision: 4e5c8c3fbabe2e41e0f447dfe8d2067643eb5829
  https://github.com/groonga/groonga/commit/4e5c8c3fbabe2e41e0f447dfe8d2067643eb5829

  Message:
    Add "column_" prefix

  Modified files:
    lib/db.c

  Modified: lib/db.c (+11 -9)
===================================================================
--- lib/db.c    2013-05-09 11:26:41 +0900 (937f63c)
+++ lib/db.c    2013-05-09 11:31:08 +0900 (f0a3587)
@@ -5096,8 +5096,8 @@ call_hook_for_build(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value, int f
 }
 
 static grn_rc
-grn_obj_set_value_var_size_scalar(grn_ctx *ctx, grn_obj *obj, grn_id id,
-                                  grn_obj *value, int flags)
+grn_obj_set_value_column_var_size_scalar(grn_ctx *ctx, grn_obj *obj, grn_id id,
+                                         grn_obj *value, int flags)
 {
   grn_rc rc = GRN_INVALID_ARGUMENT;
   grn_id range = DB_OBJ(obj)->range;
@@ -5144,8 +5144,8 @@ grn_obj_set_value_var_size_scalar(grn_ctx *ctx, grn_obj *obj, grn_id id,
 }
 
 static grn_rc
-grn_obj_set_value_var_size_vector(grn_ctx *ctx, grn_obj *obj, grn_id id,
-                                  grn_obj *value, int flags)
+grn_obj_set_value_column_var_size_vector(grn_ctx *ctx, grn_obj *obj, grn_id id,
+                                         grn_obj *value, int flags)
 {
   grn_rc rc = GRN_INVALID_ARGUMENT;
   grn_id range = DB_OBJ(obj)->range;
@@ -5253,8 +5253,8 @@ grn_obj_set_value_var_size_vector(grn_ctx *ctx, grn_obj *obj, grn_id id,
 }
 
 static grn_rc
-grn_obj_set_value_fix_size(grn_ctx *ctx, grn_obj *obj, grn_id id,
-                           grn_obj *value, int flags)
+grn_obj_set_value_column_fix_size(grn_ctx *ctx, grn_obj *obj, grn_id id,
+                                  grn_obj *value, int flags)
 {
   grn_rc rc = GRN_INVALID_ARGUMENT;
   grn_id range = DB_OBJ(obj)->range;
@@ -5401,10 +5401,12 @@ grn_obj_set_value(grn_ctx *ctx, grn_obj *obj, grn_id id,
       if (call_hook(ctx, obj, id, value, flags)) { goto exit; }
       switch (obj->header.flags & GRN_OBJ_COLUMN_TYPE_MASK) {
       case GRN_OBJ_COLUMN_SCALAR :
-        rc = grn_obj_set_value_var_size_scalar(ctx, obj, id, value, flags);
+        rc = grn_obj_set_value_column_var_size_scalar(ctx, obj, id, value,
+                                                      flags);
         break;
       case GRN_OBJ_COLUMN_VECTOR :
-        rc = grn_obj_set_value_var_size_vector(ctx, obj, id, value, flags);
+        rc = grn_obj_set_value_column_var_size_vector(ctx, obj, id, value,
+                                                      flags);
         break;
       default :
         ERR(GRN_FILE_CORRUPT, "invalid GRN_OBJ_COLUMN_TYPE");
@@ -5412,7 +5414,7 @@ grn_obj_set_value(grn_ctx *ctx, grn_obj *obj, grn_id id,
       }
       break;
     case GRN_COLUMN_FIX_SIZE :
-      rc = grn_obj_set_value_fix_size(ctx, obj, id, value, flags);
+      rc = grn_obj_set_value_column_fix_size(ctx, obj, id, value, flags);
       break;
     case GRN_COLUMN_INDEX :
       // todo : how??
-------------- next part --------------
HTML����������������������������...
Download 



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