[Groonga-commit] groonga/groonga [master] modified to use GRN_DB_OBJ_SET_TYPE in grn_geo_cursor_open_in_rectangle()

Back to archive index

null+****@clear***** null+****@clear*****
2011年 10月 27日 (木) 01:26:34 JST


Daijiro MORI	2011-10-26 16:26:34 +0000 (Wed, 26 Oct 2011)

  New Revision: f416e94cca852ef1cc5349266404508af250a30f

  Log:
    modified to use GRN_DB_OBJ_SET_TYPE in grn_geo_cursor_open_in_rectangle()

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+1 -5)
===================================================================
--- lib/geo.c    2011-10-26 10:11:30 +0000 (6ebb19a)
+++ lib/geo.c    2011-10-26 16:26:34 +0000 (3ad1f7c)
@@ -935,11 +935,7 @@ grn_geo_cursor_open_in_rectangle(grn_ctx *ctx,
     goto exit;
   }
 
-  cursor->obj.header.type = GRN_CURSOR_COLUMN_GEO_INDEX;
-  cursor->obj.header.impl_flags = GRN_OBJ_ALLOCATED;
-  cursor->obj.header.flags = 0;
-  cursor->obj.header.domain = GRN_ID_NIL;
-
+  GRN_DB_OBJ_SET_TYPE(cursor, GRN_CURSOR_COLUMN_GEO_INDEX);
   cursor->pat = data.pat;
   cursor->index = index;
   cursor->diff_bit = data.diff_bit;




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