[Groonga-commit] groonga/groonga [master] [geo] grn_geo_cursor_open_in_rectangle() uses GRN_API_*.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 22日 (火) 17:15:52 JST


Kouhei Sutou	2011-11-22 08:15:52 +0000 (Tue, 22 Nov 2011)

  New Revision: 795f044772be64141f4d44544a5f14030c524ad9

  Log:
    [geo] grn_geo_cursor_open_in_rectangle() uses GRN_API_*.

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+2 -1)
===================================================================
--- lib/geo.c    2011-11-22 07:32:23 +0000 (30711dc)
+++ lib/geo.c    2011-11-22 08:15:52 +0000 (6daf7f4)
@@ -1041,6 +1041,7 @@ grn_geo_cursor_open_in_rectangle(grn_ctx *ctx,
   grn_geo_cursor_in_rectangle *cursor = NULL;
   in_rectangle_data data;
 
+  GRN_API_ENTER;
   GRN_VOID_INIT(&(data.top_left_point_buffer));
   GRN_VOID_INIT(&(data.bottom_right_point_buffer));
   if (in_rectangle_data_prepare(ctx, index, top_left_point, bottom_right_point,
@@ -1103,7 +1104,7 @@ grn_geo_cursor_open_in_rectangle(grn_ctx *ctx,
 exit :
   grn_obj_unlink(ctx, &(data.top_left_point_buffer));
   grn_obj_unlink(ctx, &(data.bottom_right_point_buffer));
-  return (grn_obj *)cursor;
+  GRN_API_RETURN((grn_obj *)cursor);
 }
 
 static inline grn_bool




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