[Groonga-commit] groonga/groonga at 1d56aa7 [master] Use grn_obj_is_table()

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Aug 23 17:28:21 JST 2016


Kouhei Sutou	2016-08-23 17:28:21 +0900 (Tue, 23 Aug 2016)

  New Revision: 1d56aa7b99faad11447b388c9973d198d907625a
  https://github.com/groonga/groonga/commit/1d56aa7b99faad11447b388c9973d198d907625a

  Message:
    Use grn_obj_is_table()
    
    It's public API.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -2)
===================================================================
--- lib/db.c    2016-08-23 17:21:45 +0900 (1f5e7b9)
+++ lib/db.c    2016-08-23 17:28:21 +0900 (a7726a7)
@@ -8425,7 +8425,7 @@ grn_obj_set_info_source_validate(grn_ctx *ctx, grn_obj *obj, grn_obj *value)
     goto exit;
   }
 
-  if (!GRN_OBJ_TABLEP(lexicon_domain)) {
+  if (!grn_obj_is_table(ctx, lexicon_domain)) {
     goto exit;
   }
 
@@ -8438,7 +8438,7 @@ grn_obj_set_info_source_validate(grn_ctx *ctx, grn_obj *obj, grn_obj *value)
     if (!source) {
       continue;
     }
-    if (GRN_OBJ_TABLEP(source)) {
+    if (grn_obj_is_table(ctx, source)) {
       source_type_id = source->header.domain;
     } else {
       source_type_id = DB_OBJ(source)->range;
-------------- next part --------------
HTML����������������������������...
Download 



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