[Groonga-commit] groonga/groonga [master] improve variable name: cast_element -> casted_element.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 10日 (月) 10:55:58 JST


Kouhei Sutou	2011-01-10 01:55:58 +0000 (Mon, 10 Jan 2011)

  New Revision: 7cfd08c94625964cda59c14074bee3eb676c5f02

  Log:
    improve variable name: cast_element -> casted_element.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+8 -8)
===================================================================
--- lib/db.c    2011-01-10 01:50:46 +0000 (d855449)
+++ lib/db.c    2011-01-10 01:55:58 +0000 (9573605)
@@ -7507,14 +7507,14 @@ set_vector(grn_ctx *ctx, grn_obj *column, grn_id id, grn_obj *vector)
       while (n--) {
         if (v->header.domain == GRN_DB_TEXT) {
           grn_bool cast_failed = GRN_FALSE;
-          grn_obj cast_element, *element = v;
+          grn_obj casted_element, *element = v;
           if (range_id != element->header.domain) {
-            GRN_OBJ_INIT(&cast_element, GRN_BULK, 0, range_id);
-            if (grn_obj_cast(ctx, element, &cast_element, 1)) {
+            GRN_OBJ_INIT(&casted_element, GRN_BULK, 0, range_id);
+            if (grn_obj_cast(ctx, element, &casted_element, 1)) {
               cast_failed = GRN_TRUE;
               REPORT_CAST_ERROR(element);
             }
-            element = &cast_element;
+            element = &casted_element;
           }
           if (!cast_failed) {
             grn_vector_add_element(ctx, &buf,
@@ -7531,14 +7531,14 @@ set_vector(grn_ctx *ctx, grn_obj *column, grn_id id, grn_obj *vector)
       GRN_VALUE_FIX_SIZE_INIT(&buf, GRN_OBJ_VECTOR, range_id);
       while (n--) {
         grn_bool cast_failed = GRN_FALSE;
-        grn_obj cast_element, *element = v;
+        grn_obj casted_element, *element = v;
         if (range_id != element->header.domain) {
-          GRN_OBJ_INIT(&cast_element, GRN_BULK, 0, range_id);
-          if (grn_obj_cast(ctx, element, &cast_element, 1)) {
+          GRN_OBJ_INIT(&casted_element, GRN_BULK, 0, range_id);
+          if (grn_obj_cast(ctx, element, &casted_element, 1)) {
             cast_failed = GRN_TRUE;
             REPORT_CAST_ERROR(element);
           }
-          element = &cast_element;
+          element = &casted_element;
         }
         if (!cast_failed) {
           grn_bulk_write(ctx, &buf, GRN_TEXT_VALUE(element), value_size);




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