Skip to content

Commit

Permalink
[win32][test] export functions to be used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 27, 2012
1 parent d74af62 commit cabde30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions lib/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/grn-assertions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cabde30

Please sign in to comment.