[Groonga-commit] groonga/groonga at 7bf6fd0 [master] Use "is_" style

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 8 19:07:19 JST 2015


Kouhei Sutou	2015-02-08 19:07:19 +0900 (Sun, 08 Feb 2015)

  New Revision: 7bf6fd08bea4a5506aa454c73bde07d1d993c666
  https://github.com/groonga/groonga/commit/7bf6fd08bea4a5506aa454c73bde07d1d993c666

  Message:
    Use "is_" style

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+6 -6)
===================================================================
--- lib/expr.c    2015-02-08 18:57:20 +0900 (186b407)
+++ lib/expr.c    2015-02-08 19:07:19 +0900 (413c937)
@@ -3410,23 +3410,23 @@ grn_expr_exec(grn_ctx *ctx, grn_obj *expr, int nargs)
         break;
       case GRN_OP_EQUAL :
         {
-          grn_bool equal_p;
+          grn_bool is_equal;
           grn_obj *x, *y;
           POP2ALLOC1(x, y, res);
-          equal_p = grn_operator_exec_equal(ctx, x, y);
+          is_equal = grn_operator_exec_equal(ctx, x, y);
           grn_obj_reinit(ctx, res, GRN_DB_INT32, 0);
-          GRN_INT32_SET(ctx, res, equal_p ? 1 : 0);
+          GRN_INT32_SET(ctx, res, is_equal ? 1 : 0);
         }
         code++;
         break;
       case GRN_OP_NOT_EQUAL :
         {
-          grn_bool not_equal_p;
+          grn_bool is_not_equal;
           grn_obj *x, *y;
           POP2ALLOC1(x, y, res);
-          not_equal_p = grn_operator_exec_not_equal(ctx, x, y);
+          is_not_equal = grn_operator_exec_not_equal(ctx, x, y);
           grn_obj_reinit(ctx, res, GRN_DB_INT32, 0);
-          GRN_INT32_SET(ctx, res, not_equal_p ? 1 : 0);
+          GRN_INT32_SET(ctx, res, is_not_equal ? 1 : 0);
         }
         code++;
         break;
-------------- next part --------------
HTML����������������������������...
Download 



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