null+****@clear*****
null+****@clear*****
2012年 2月 27日 (月) 13:59:44 JST
Kouhei Sutou 2012-02-27 13:59:44 +0900 (Mon, 27 Feb 2012)
New Revision: cabde308537a69cef85f52e5b121819db5e6f726
Log:
[win32][test] export functions to be used in tests
Modified files:
lib/db.h
lib/util.h
test/unit/lib/grn-assertions.c
Modified: lib/db.h (+2 -2)
===================================================================
--- lib/db.h 2012-02-27 13:53:02 +0900 (12d8d22)
+++ lib/db.h 2012-02-27 13:59:44 +0900 (9d47ca7)
@@ -116,7 +116,7 @@ grn_id grn_view_add(grn_ctx *ctx, grn_obj *view, grn_obj *table);
grn_rc grn_column_name_(grn_ctx *ctx, grn_obj *obj, grn_obj *buf);
GRN_API grn_rc grn_table_cursor_next_o(grn_ctx *ctx, grn_table_cursor *tc, grn_obj *id);
-grn_obj *grn_obj_get_value_o(grn_ctx *ctx, grn_obj *obj, grn_obj *id, grn_obj *value);
+GRN_API grn_obj *grn_obj_get_value_o(grn_ctx *ctx, grn_obj *obj, grn_obj *id, grn_obj *value);
grn_rc grn_obj_set_value_o(grn_ctx *ctx, grn_obj *obj, grn_obj *id, grn_obj *value, int flags);
typedef enum {
@@ -413,7 +413,7 @@ void grn_obj_spec_save(grn_ctx *ctx, grn_db_obj *obj);
}
void grn_expr_pack(grn_ctx *ctx, grn_obj *buf, grn_obj *expr);
-grn_rc grn_expr_inspect(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_obj *grn_expr_open(grn_ctx *ctx, grn_obj_spec *spec, const uint8_t *p, const uint8_t *pe);
grn_obj *grn_table_create_for_group(grn_ctx *ctx, const char *name, unsigned int name_size,
Modified: lib/util.h (+3 -3)
===================================================================
--- lib/util.h 2012-02-27 13:53:02 +0900 (439ea46)
+++ lib/util.h 2012-02-27 13:59:44 +0900 (1b6c4c3)
@@ -31,9 +31,9 @@ extern "C" {
GRN_API grn_rc grn_normalize_offset_and_limit(grn_ctx *ctx, int size, int *offset, int *limit);
-grn_obj *grn_inspect(grn_ctx *ctx, grn_obj *buffer, grn_obj *obj);
-grn_obj *grn_inspect_name(grn_ctx *ctx, grn_obj *buffer, grn_obj *obj);
-grn_obj *grn_inspect_type(grn_ctx *ctx, grn_obj *buffer, unsigned char type);
+GRN_API grn_obj *grn_inspect(grn_ctx *ctx, grn_obj *buffer, grn_obj *obj);
+GRN_API grn_obj *grn_inspect_name(grn_ctx *ctx, grn_obj *buffer, grn_obj *obj);
+GRN_API grn_obj *grn_inspect_type(grn_ctx *ctx, grn_obj *buffer, unsigned char type);
void grn_p(grn_ctx *ctx, grn_obj *obj);
void grn_p_geo_point(grn_ctx *ctx, grn_geo_point *point);
Modified: test/unit/lib/grn-assertions.c (+1 -1)
===================================================================
--- test/unit/lib/grn-assertions.c 2012-02-27 13:53:02 +0900 (e603d87)
+++ test/unit/lib/grn-assertions.c 2012-02-27 13:59:44 +0900 (9d277aa)
@@ -21,10 +21,10 @@
#include "grn-assertions.h"
#include <groonga_in.h>
+#include <db.h>
#include <util.h>
#include <str.h>
-grn_rc grn_expr_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *expr);
void
grn_test_assert_helper(grn_rc rc, const gchar *expression)