[Groonga-commit] groonga/groonga at 05b31e5 [master] Use open/close for constructor/destructor names

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 4 11:10:21 JST 2013


Kouhei Sutou	2013-10-04 11:10:21 +0900 (Fri, 04 Oct 2013)

  New Revision: 05b31e539e4db604c70976c0a08d80c1e8b99dbc
  https://github.com/groonga/groonga/commit/05b31e539e4db604c70976c0a08d80c1e8b99dbc

  Message:
    Use open/close for constructor/destructor names

  Modified files:
    lib/expr.c
    lib/expr.h

  Modified: lib/expr.c (+2 -2)
===================================================================
--- lib/expr.c    2013-10-04 11:07:42 +0900 (68e9cd3)
+++ lib/expr.c    2013-10-04 11:10:21 +0900 (1939e0c)
@@ -3944,7 +3944,7 @@ get_weight(grn_ctx *ctx, grn_expr_code *ec)
 }
 
 scan_info *
-grn_scan_info_alloc(grn_ctx *ctx, int st)
+grn_scan_info_open(grn_ctx *ctx, int st)
 {
   scan_info *si = GRN_MALLOCN(scan_info, 1);
   if (si) {
@@ -3959,7 +3959,7 @@ grn_scan_info_alloc(grn_ctx *ctx, int st)
 }
 
 void
-grn_scan_info_free(grn_ctx *ctx, scan_info *si)
+grn_scan_info_close(grn_ctx *ctx, scan_info *si)
 {
   SI_FREE(si);
 }

  Modified: lib/expr.h (+2 -2)
===================================================================
--- lib/expr.h    2013-10-04 11:07:42 +0900 (cf3ddef)
+++ lib/expr.h    2013-10-04 11:10:21 +0900 (8d68e4a)
@@ -41,8 +41,8 @@ typedef enum {
 typedef struct _grn_scan_info scan_info;
 typedef grn_bool (*grn_scan_info_each_arg_callback)(grn_ctx *ctx, grn_obj *obj, void *user_data);
 
-scan_info *grn_scan_info_alloc(grn_ctx *ctx, int start);
-void grn_scan_info_free(grn_ctx *ctx, scan_info *si);
+scan_info *grn_scan_info_open(grn_ctx *ctx, int start);
+void grn_scan_info_close(grn_ctx *ctx, scan_info *si);
 void grn_scan_info_put_index(grn_ctx *ctx, scan_info *si, grn_obj *index,
                              uint32_t sid, int32_t weight);
 grn_bool grn_scan_info_check_flags(scan_info *si, int flags);
-------------- next part --------------
HTML����������������������������...
Download 



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