null+****@clear*****
null+****@clear*****
2010年 7月 29日 (木) 09:40:36 JST
Kouhei Sutou 2010-07-29 00:40:36 +0000 (Thu, 29 Jul 2010) New Revision: e819dd867050ef37d4ba451b52be78ad05719ed4 Log: add missing GRN_APIs. Modified files: lib/ctx.h lib/str.h lib/util.h Modified: lib/ctx.h (+1 -1) =================================================================== --- lib/ctx.h 2010-07-29 00:24:21 +0000 (084670f) +++ lib/ctx.h 2010-07-29 00:40:36 +0000 (4a0746f) @@ -474,7 +474,7 @@ void grn_cache_unref(const char *str, uint32_t str_size); void grn_cache_update(grn_ctx *ctx, const char *str, uint32_t str_size, grn_obj *value); void grn_cache_expire(int32_t size); void grn_cache_fin(void); -uint32_t *grn_cache_max_nentries(void); +GRN_API uint32_t *grn_cache_max_nentries(void); void grn_cache_get_statistics(grn_ctx *ctx, grn_cache_statistics *statistics); /**** receive handler ****/ Modified: lib/str.h (+1 -1) =================================================================== --- lib/str.h 2010-07-29 00:24:21 +0000 (79b8536) +++ lib/str.h 2010-07-29 00:40:36 +0000 (d62cedf) @@ -56,7 +56,7 @@ uint8_t grn_atoui8(const char *nptr, const char *end, const char **rest); int16_t grn_atoi16(const char *nptr, const char *end, const char **rest); uint16_t grn_atoui16(const char *nptr, const char *end, const char **rest); GRN_API int grn_atoi(const char *nptr, const char *end, const char **rest); -unsigned int grn_atoui(const char *nptr, const char *end, const char **rest); +GRN_API unsigned int grn_atoui(const char *nptr, const char *end, const char **rest); unsigned int grn_htoui(const char *nptr, const char *end, const char **rest); int64_t grn_atoll(const char *nptr, const char *end, const char **rest); grn_rc grn_itoa(int i, char *p, char *end, char **rest); Modified: lib/util.h (+1 -1) =================================================================== --- lib/util.h 2010-07-29 00:24:21 +0000 (7be8081) +++ lib/util.h 2010-07-29 00:40:36 +0000 (128772b) @@ -29,7 +29,7 @@ extern "C" { #endif -grn_rc grn_normalize_offset_and_limit(grn_ctx *ctx, int size, int *offset, int *limit); +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);