[Groonga-commit] groonga/groonga at f11d070 [master] Use grn_bool for boolean return value context

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Nov 16 15:37:16 JST 2014


Kouhei Sutou	2014-11-16 15:37:16 +0900 (Sun, 16 Nov 2014)

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

  Message:
    Use grn_bool for boolean return value context

  Modified files:
    lib/db.c

  Modified: lib/db.c (+5 -5)
===================================================================
--- lib/db.c    2014-11-15 17:45:20 +0900 (c4785ba)
+++ lib/db.c    2014-11-16 15:37:16 +0900 (6ed0478)
@@ -2976,7 +2976,7 @@ grn_obj_search(grn_ctx *ctx, grn_obj *obj, grn_obj *query,
 #define GRN_TABLE_GROUP_FILTER_PREFIX    0
 #define GRN_TABLE_GROUP_FILTER_SUFFIX    (1L<<2)
 
-static int
+static grn_bool
 accelerated_table_group(grn_ctx *ctx, grn_obj *table, grn_obj *key, grn_obj *res)
 {
   if (key->header.type == GRN_ACCESSOR) {
@@ -3048,18 +3048,18 @@ accelerated_table_group(grn_ctx *ctx, grn_obj *table, grn_obj *key, grn_obj *res
               }
             }
           } else {
-            return 0;
+            return GRN_FALSE;
           }
           break;
         default :
-          return 0;
+          return GRN_FALSE;
         }
         grn_table_cursor_close(ctx, tc);
-        return 1;
+        return GRN_TRUE;
       }
     }
   }
-  return 0;
+  return GRN_FALSE;
 }
 
 grn_rc
-------------- next part --------------
HTML����������������������������...
Download 



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