Kouhei Sutou
null+****@clear*****
Tue Apr 3 18:15:03 JST 2018
Kouhei Sutou 2018-04-03 18:15:03 +0900 (Tue, 03 Apr 2018) New Revision: 31e1bd601b0ed8ae8c7b978a44cb9d6fac9e0e5a https://github.com/groonga/groonga/commit/31e1bd601b0ed8ae8c7b978a44cb9d6fac9e0e5a Message: Export grn_obj_ensure_{bulk,vector} internally Modified files: lib/db.c lib/grn_db.h Modified: lib/db.c (+2 -5) =================================================================== --- lib/db.c 2018-04-02 18:37:32 +0900 (db2e882e2) +++ lib/db.c 2018-04-03 18:15:03 +0900 (57328bf34) @@ -86,9 +86,6 @@ grn_table_cursor_next_inline(grn_ctx *ctx, grn_table_cursor *tc); grn_inline static int grn_table_cursor_get_value_inline(grn_ctx *ctx, grn_table_cursor *tc, void **value); -static void grn_obj_ensure_bulk(grn_ctx *ctx, grn_obj *obj); -static void grn_obj_ensure_vector(grn_ctx *ctx, grn_obj *obj); - grn_inline static void grn_obj_get_range_info(grn_ctx *ctx, grn_obj *obj, grn_id *range_id, grn_obj_flags *range_flags); @@ -11073,7 +11070,7 @@ grn_obj_unlink(grn_ctx *ctx, grn_obj *obj) (obj)->u.b.tail = NULL;\ } while (0) -static void +void grn_obj_ensure_vector(grn_ctx *ctx, grn_obj *obj) { if (obj->header.type != GRN_VECTOR) { grn_bulk_fin(ctx, obj); } @@ -11081,7 +11078,7 @@ grn_obj_ensure_vector(grn_ctx *ctx, grn_obj *obj) obj->header.flags &= ~GRN_OBJ_WITH_WEIGHT; } -static void +void grn_obj_ensure_bulk(grn_ctx *ctx, grn_obj *obj) { if (obj->header.type == GRN_VECTOR) { VECTOR_CLEAR(ctx, obj); } Modified: lib/grn_db.h (+3 -0) =================================================================== --- lib/grn_db.h 2018-04-02 18:37:32 +0900 (ef3a84313) +++ lib/grn_db.h 2018-04-03 18:15:03 +0900 (f971e5e5c) @@ -463,6 +463,9 @@ void grn_obj_spec_save(grn_ctx *ctx, grn_db_obj *obj); grn_rc grn_obj_reinit_for(grn_ctx *ctx, grn_obj *obj, grn_obj *domain_obj); +void grn_obj_ensure_bulk(grn_ctx *ctx, grn_obj *obj); +void grn_obj_ensure_vector(grn_ctx *ctx, grn_obj *obj); + void grn_expr_pack(grn_ctx *ctx, grn_obj *buf, grn_obj *expr); GRN_API grn_rc grn_expr_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *expr); grn_hash *grn_expr_get_vars(grn_ctx *ctx, grn_obj *expr, unsigned int *nvars); -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180403/9fb2e5db/attachment-0001.htm